SlideShare a Scribd company logo
1 of 33
DBMS
File Organization for Conventional DBMS
Bishal Ghimire
bishal.ghimire@gmail.com
Storage Devices and its Characteristics
Storage Hierarchy
• Primary Storage is the top level and is made up of
CPU registers, CPU cache and memory which are
the only components that are directly accessible to
the systems CPU. The CPU can continuously read
data stored in these areas and execute all
instructions as required quickly in a uniform
manner. Secondary Storage differs from primary
storage in that it is not directly accessible by the
CPU. A system uses input/output (I/O) channels to
connect to the secondary storage which control the
data flow through a system when required and on
request
Storage Hierarchy
• Secondary storage is non-volatile so does not
lose data when it is powered down so
consequently modern computer systems tend to
have a more secondary storage than primary
storage. All secondary storage today consist of
hard disk drives (HDD), usually set up in a RAID
configuration, however older installations also
included removable media such us magneto
optical or MO
Storage Hierarchy
• Tertiary Storage is mainly used as backup and
archival of data and although based on the
slowest devices can be classed as the most
important in terms of data protection against a
variety of disasters that can affect an IT
infrastructure. Most devices in this segment are
automated via robotics and software to reduce
management costs and risk of human error and
consist primarily of disk & tape based back up
devices
Storage Hierarchy
• Offline Storage is the final category and is
where removable types of storage media sit such
as tape cartridges and optical disc such as CD
and DVD. Offline storage is can be used to
transfer data between systems but also allow for
data to be secured offsite to ensure companies
always have a copy of valuable data in the event
of a disaster.
Memory Hierarchy
Digital data devices
Hard disk internal structure
Hard disk internal structure
Hard disk internal structure
Checksum
Checksum
• Checksums are used to ensure the integrity of
data portions for data transmission or storage. A
checksum is basically a calculated summary of
such a data portion.
• Network data transmissions often produce
errors, such as toggled, missing or duplicated
bits.
• Some checksum algorithms are able to recover
(simple) errors by calculating where the
expected error must be and repairing it.
Parity Bits
Disk Subsystem
• Multiple disks connected to a computer system
through a controller
▫ Controllers functionality (checksum, bad sector
remapping) oftencarried out by individual disks;
reduces load on controller
• Disk interface standards families
▫ ATA(AT adaptor) range of standards
▫ SATA(Serial ATA)
▫ SCSI(Small Computer System Interconnect) range
of standards
▫ SAS(Serial Attached SCSI)
▫ Several variants of each standard (different speeds
and capabilities)
Disk Subsystem
• Disks usually connected directly to computer system
• In Storage Area Networks (SAN), a large number of disks are
connected by a high-speed network to a number of servers
• In Network Attached Storage (NAS) networked storage
provides a file system interface using networked file system
protocol, instead of providing a disk system interface
RAID - redundant array of independent
disks
• RAID is short for redundant array
of independent (or inexpensive) disks. It is a
category of disk drives that employ two or more
drives in combination for fault tolerance and
performance. RAID disk drives are used
frequently on servers but aren't generally
necessary for personal computers. RAID allows
you to store the same data redundantly (in
multiple paces) in a balanced way to improve
overall storage performance.
• Level 0: Striped Disk Array without Fault Tolerance
Provides data striping(spreading out blocks of each
file across multiple disk drives) but no redundancy.
This improves performance but does not deliver
fault tolerance. If one drive fails then all data in the
array is lost.
• Level 1: Mirroring and Duplexing
Provides disk mirroring. Level 1 provides twice the
read transaction rate of single disks and the same
write transaction rate as single disks.
• Level 2: Error-Correcting Coding
Not a typical implementation and rarely used, Level
2 stripes data at the bit level rather than the block
level.
• Level 3: Bit-Interleaved Parity
Provides byte-level striping with a dedicated parity
disk. Level 3, which cannot service simultaneous
multiple requests, also is rarely used.
• Level 4: Dedicated Parity Drive
A commonly used implementation of RAID, Level 4
provides block-level striping (like Level 0) with a
parity disk. If a data disk fails, the parity data is used
to create a replacement disk. A disadvantage to
Level 4 is that the parity disk can create write
bottlenecks.
• Level 5: Block Interleaved Distributed Parity
Provides data striping at the byte level and also
stripe error correction information. This results in
excellent performance and good fault tolerance.
Level 5 is one of the most popular implementations
of RAID.
Performance Measures of Disks
• Access time: the time from when a read or write request is issued
to when data transfer begins. To access data on a given sector of a
disk, the arm first must move so that it is positioned over the correct
track, and then must wait for the sector to appear under it as the
disk rotates. The time for repositioning the arm is called seek time,
and it increases with the distance the arm must move. Typical seek
time range from 2 to 30 milliseconds. Average seek time is the
average of the seek time, measured over a sequence of (uniformly
distributed) random requests, and it is about one third of the worst-
case seek time.
• Once the seek has occurred, the time spent waiting for the sector to
be accesses to appear under the head is called rotational latency
time. Average rotational latency time is about half of the time for a
full rotation of the disk. (Typical rotational speeds of disks ranges
from 60 to 120 rotations per second).
• The access time is then the sum of the seek time and the latency and
ranges from 10 to 40 milli-sec.
Performance Measures of Disks
• data transfer rate, the rate at which data can be
retrieved from or stored to the disk. Current disk
systems support transfer rate from 1 to 5
megabytes per second.
• reliability, measured by the mean time to
failure. The typical mean time to failure of disks
today ranges from 30,000 to 800,000 hours
(about 3.4 to 91 years).
Optimization of Disk-Block Access
• Data is transferred between disk and main
memory in units called blocks.
• A block is a contiguous sequence of bytes from
a single track of one platter.
• Block sizes range from 512 bytes to several
thousand.
• The lower levels of file system manager covert
block addresses into the hardware-level cylinder,
surface, and sector number
• Access to data on disk is several orders of magnitude
slower than is access to data in main memory.
Optimization techniques besides buffering of blocks
in main memory. Scheduling: If several blocks
from a cylinder need to be transferred, we may save
time by requesting them in the order in which they
pass under the heads. A commonly used disk-arm
scheduling algorithm is the elevator algorithm.
• File organization. Organize blocks on disk in a
way that corresponds closely to the manner that we
expect data to be accessed. For example, store
related information on the same track, or physically
close tracks, or adjacent cylinders in order to
minimize seek time. IBM mainframe OS's provide
programmers fine control on placement of files but
increase programmer's burden.
• Nonvolatile write buffers. Use nonvolatile
RAM (such as battery-back-up RAM) to speed
up disk writes drastically (first write to
nonvolatile RAM buffer and inform OS that
writes completed).
• Log disk. Another approach to reducing write
latency is to use a log disk, a disk devoted to
writing a sequential log. All access to the log disk
is sequential, essentially eliminating seek time,
and several consecutive blocks can be written at
once, making writes to log disk several times
faster than random writes.
Optical Disks
DBMS File Organization and Storage Devices Explained

More Related Content

What's hot

Storage and File Structure in DBMS
Storage and File Structure in DBMSStorage and File Structure in DBMS
Storage and File Structure in DBMSA. S. M. Shafi
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage mediaSrinath Sri
 
storage & file strucure in dbms
storage & file strucure in dbmsstorage & file strucure in dbms
storage & file strucure in dbmssachin2690
 
Mass storage device
Mass storage deviceMass storage device
Mass storage deviceRaza Umer
 
Introduction to Storage technologies
Introduction to Storage technologiesIntroduction to Storage technologies
Introduction to Storage technologiesKaivalya Shah
 
storage and file structure
storage and file structurestorage and file structure
storage and file structureSheshan Sheniwal
 
db
dbdb
dbAisu
 
FILE STRUCTURE IN DBMS
FILE STRUCTURE IN DBMSFILE STRUCTURE IN DBMS
FILE STRUCTURE IN DBMSAbhishek Dutta
 
Mass Storage Devices
Mass Storage DevicesMass Storage Devices
Mass Storage DevicesPrabu U
 
Types of secondary storage devices ppt
Types of secondary storage devices pptTypes of secondary storage devices ppt
Types of secondary storage devices pptSurkhab Shelly
 

What's hot (19)

Storage and File Structure in DBMS
Storage and File Structure in DBMSStorage and File Structure in DBMS
Storage and File Structure in DBMS
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage media
 
storage & file strucure in dbms
storage & file strucure in dbmsstorage & file strucure in dbms
storage & file strucure in dbms
 
Mass storage device
Mass storage deviceMass storage device
Mass storage device
 
Introduction to Storage technologies
Introduction to Storage technologiesIntroduction to Storage technologies
Introduction to Storage technologies
 
storage and file structure
storage and file structurestorage and file structure
storage and file structure
 
db
dbdb
db
 
Mass storage structure
Mass storage structureMass storage structure
Mass storage structure
 
FILE STRUCTURE IN DBMS
FILE STRUCTURE IN DBMSFILE STRUCTURE IN DBMS
FILE STRUCTURE IN DBMS
 
Mass Storage Devices
Mass Storage DevicesMass Storage Devices
Mass Storage Devices
 
Types of secondary storage devices ppt
Types of secondary storage devices pptTypes of secondary storage devices ppt
Types of secondary storage devices ppt
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Storage Technologies
Storage TechnologiesStorage Technologies
Storage Technologies
 
Ch11
Ch11Ch11
Ch11
 
Pandi
PandiPandi
Pandi
 
Secondary storage devices
Secondary storage devicesSecondary storage devices
Secondary storage devices
 
Module5 secondary storage
Module5 secondary storageModule5 secondary storage
Module5 secondary storage
 
Kavi
KaviKavi
Kavi
 
Kavi
KaviKavi
Kavi
 

Viewers also liked

Ch 1-final-file organization from korth
Ch 1-final-file organization from korthCh 1-final-file organization from korth
Ch 1-final-file organization from korthRupali Rana
 
File organization 1
File organization 1File organization 1
File organization 1Rupali Rana
 
File Organization
File OrganizationFile Organization
File OrganizationManyi Man
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMSkoolkampus
 
Algorithm and Programming (Sequential Structure)
Algorithm and Programming (Sequential Structure)Algorithm and Programming (Sequential Structure)
Algorithm and Programming (Sequential Structure)Adam Mukharil Bachtiar
 
Ie Storage, Multimedia And File Organization
Ie   Storage, Multimedia And File OrganizationIe   Storage, Multimedia And File Organization
Ie Storage, Multimedia And File OrganizationMISY
 
Disk structure & File Handling
Disk structure & File HandlingDisk structure & File Handling
Disk structure & File HandlingMomina Idrees
 
Gps file structure explained
Gps file structure explainedGps file structure explained
Gps file structure explainedJaap Oosterhoff
 
File Structure Concepts
File Structure ConceptsFile Structure Concepts
File Structure ConceptsDileep Kodira
 
Discussion : File structure of Meteor Apps
Discussion : File structure of Meteor AppsDiscussion : File structure of Meteor Apps
Discussion : File structure of Meteor AppsSangwon Lee
 
register file structure of PIC controller
register file structure of PIC controllerregister file structure of PIC controller
register file structure of PIC controllerNirbhay Singh
 
File organization and processing
File organization and processingFile organization and processing
File organization and processingburhan123456
 
Concept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnersConcept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnerswellingtonoboh
 
File organization techniques
File organization techniquesFile organization techniques
File organization techniquesMeghlal Khan
 

Viewers also liked (20)

File organization
File organizationFile organization
File organization
 
Ch 1-final-file organization from korth
Ch 1-final-file organization from korthCh 1-final-file organization from korth
Ch 1-final-file organization from korth
 
File organization
File organizationFile organization
File organization
 
File organization 1
File organization 1File organization 1
File organization 1
 
File Organization
File OrganizationFile Organization
File Organization
 
File management
File managementFile management
File management
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
 
File system
File systemFile system
File system
 
CS215 - Lec 2 file organization
CS215 - Lec 2   file organizationCS215 - Lec 2   file organization
CS215 - Lec 2 file organization
 
Algorithm and Programming (Sequential Structure)
Algorithm and Programming (Sequential Structure)Algorithm and Programming (Sequential Structure)
Algorithm and Programming (Sequential Structure)
 
Ie Storage, Multimedia And File Organization
Ie   Storage, Multimedia And File OrganizationIe   Storage, Multimedia And File Organization
Ie Storage, Multimedia And File Organization
 
Disk structure & File Handling
Disk structure & File HandlingDisk structure & File Handling
Disk structure & File Handling
 
Gps file structure explained
Gps file structure explainedGps file structure explained
Gps file structure explained
 
CS215 - Lec 9 indexing and reclaiming space in files
CS215 - Lec 9  indexing and reclaiming space in filesCS215 - Lec 9  indexing and reclaiming space in files
CS215 - Lec 9 indexing and reclaiming space in files
 
File Structure Concepts
File Structure ConceptsFile Structure Concepts
File Structure Concepts
 
Discussion : File structure of Meteor Apps
Discussion : File structure of Meteor AppsDiscussion : File structure of Meteor Apps
Discussion : File structure of Meteor Apps
 
register file structure of PIC controller
register file structure of PIC controllerregister file structure of PIC controller
register file structure of PIC controller
 
File organization and processing
File organization and processingFile organization and processing
File organization and processing
 
Concept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnersConcept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learners
 
File organization techniques
File organization techniquesFile organization techniques
File organization techniques
 

Similar to DBMS File Organization and Storage Devices Explained

Similar to DBMS File Organization and Storage Devices Explained (20)

19IS305_U4_LP10_LM10-22-23.pdf
19IS305_U4_LP10_LM10-22-23.pdf19IS305_U4_LP10_LM10-22-23.pdf
19IS305_U4_LP10_LM10-22-23.pdf
 
UNIT III.pptx
UNIT III.pptxUNIT III.pptx
UNIT III.pptx
 
Unit 4 DBMS.ppt
Unit 4 DBMS.pptUnit 4 DBMS.ppt
Unit 4 DBMS.ppt
 
OSCh14
OSCh14OSCh14
OSCh14
 
OS_Ch14
OS_Ch14OS_Ch14
OS_Ch14
 
Ch14 OS
Ch14 OSCh14 OS
Ch14 OS
 
Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage Structure
 
Os7
Os7Os7
Os7
 
DAS RAID NAS SAN
DAS RAID NAS SANDAS RAID NAS SAN
DAS RAID NAS SAN
 
Viknesh
VikneshViknesh
Viknesh
 
Storage Media and File Organisation.pptx
Storage Media and File Organisation.pptxStorage Media and File Organisation.pptx
Storage Media and File Organisation.pptx
 
Db
DbDb
Db
 
Cs8493 unit 4
Cs8493 unit 4Cs8493 unit 4
Cs8493 unit 4
 
DownloadClassSessionFile (44).pdf
DownloadClassSessionFile (44).pdfDownloadClassSessionFile (44).pdf
DownloadClassSessionFile (44).pdf
 
Storage Networking and Overview ppt.pdf
Storage Networking and Overview ppt.pdfStorage Networking and Overview ppt.pdf
Storage Networking and Overview ppt.pdf
 
I/O System and Case study
I/O System and Case studyI/O System and Case study
I/O System and Case study
 
Mass storagestructure pre-final-formatting
Mass storagestructure pre-final-formattingMass storagestructure pre-final-formatting
Mass storagestructure pre-final-formatting
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Os
OsOs
Os
 
Storage Management
Storage ManagementStorage Management
Storage Management
 

More from Bishal Ghimire

Counseling Ethics in Astrology for better Mental Health
Counseling Ethics in Astrology for better Mental HealthCounseling Ethics in Astrology for better Mental Health
Counseling Ethics in Astrology for better Mental HealthBishal Ghimire
 
Agile Intro to Manifesto - Values 1 - Interaction over Process
Agile Intro to Manifesto - Values 1 - Interaction over ProcessAgile Intro to Manifesto - Values 1 - Interaction over Process
Agile Intro to Manifesto - Values 1 - Interaction over ProcessBishal Ghimire
 
Earthquake in Nepal 2015
Earthquake in Nepal 2015Earthquake in Nepal 2015
Earthquake in Nepal 2015Bishal Ghimire
 
09.02 normalization example
09.02 normalization example09.02 normalization example
09.02 normalization exampleBishal Ghimire
 
07.03 cartesian product
07.03 cartesian product07.03 cartesian product
07.03 cartesian productBishal Ghimire
 
07.02 relational union intersection
07.02 relational union intersection07.02 relational union intersection
07.02 relational union intersectionBishal Ghimire
 
07.01 relational algebra
07.01 relational algebra07.01 relational algebra
07.01 relational algebraBishal Ghimire
 
07.01 relational algebra
07.01 relational algebra07.01 relational algebra
07.01 relational algebraBishal Ghimire
 
06.01 sql select distinct
06.01 sql select distinct06.01 sql select distinct
06.01 sql select distinctBishal Ghimire
 
02.02 querying relational database
02.02 querying relational database02.02 querying relational database
02.02 querying relational databaseBishal Ghimire
 
02.01 relational databases
02.01 relational databases02.01 relational databases
02.01 relational databasesBishal Ghimire
 
01.01 introduction to database
01.01 introduction to database01.01 introduction to database
01.01 introduction to databaseBishal Ghimire
 
00.00 fundamentals of database management syllabus
00.00 fundamentals of database management syllabus00.00 fundamentals of database management syllabus
00.00 fundamentals of database management syllabusBishal Ghimire
 

More from Bishal Ghimire (17)

Counseling Ethics in Astrology for better Mental Health
Counseling Ethics in Astrology for better Mental HealthCounseling Ethics in Astrology for better Mental Health
Counseling Ethics in Astrology for better Mental Health
 
Agile Intro to Manifesto - Values 1 - Interaction over Process
Agile Intro to Manifesto - Values 1 - Interaction over ProcessAgile Intro to Manifesto - Values 1 - Interaction over Process
Agile Intro to Manifesto - Values 1 - Interaction over Process
 
Earthquake in Nepal 2015
Earthquake in Nepal 2015Earthquake in Nepal 2015
Earthquake in Nepal 2015
 
09.02 normalization example
09.02 normalization example09.02 normalization example
09.02 normalization example
 
07.05 division
07.05 division07.05 division
07.05 division
 
07.04 joins
07.04 joins07.04 joins
07.04 joins
 
07.03 cartesian product
07.03 cartesian product07.03 cartesian product
07.03 cartesian product
 
07.02 relational union intersection
07.02 relational union intersection07.02 relational union intersection
07.02 relational union intersection
 
07.01 relational algebra
07.01 relational algebra07.01 relational algebra
07.01 relational algebra
 
07.01 relational algebra
07.01 relational algebra07.01 relational algebra
07.01 relational algebra
 
09.01 normalization
09.01 normalization09.01 normalization
09.01 normalization
 
06.02 sql alias
06.02 sql alias06.02 sql alias
06.02 sql alias
 
06.01 sql select distinct
06.01 sql select distinct06.01 sql select distinct
06.01 sql select distinct
 
02.02 querying relational database
02.02 querying relational database02.02 querying relational database
02.02 querying relational database
 
02.01 relational databases
02.01 relational databases02.01 relational databases
02.01 relational databases
 
01.01 introduction to database
01.01 introduction to database01.01 introduction to database
01.01 introduction to database
 
00.00 fundamentals of database management syllabus
00.00 fundamentals of database management syllabus00.00 fundamentals of database management syllabus
00.00 fundamentals of database management syllabus
 

DBMS File Organization and Storage Devices Explained

  • 1. DBMS File Organization for Conventional DBMS Bishal Ghimire bishal.ghimire@gmail.com
  • 2. Storage Devices and its Characteristics
  • 3. Storage Hierarchy • Primary Storage is the top level and is made up of CPU registers, CPU cache and memory which are the only components that are directly accessible to the systems CPU. The CPU can continuously read data stored in these areas and execute all instructions as required quickly in a uniform manner. Secondary Storage differs from primary storage in that it is not directly accessible by the CPU. A system uses input/output (I/O) channels to connect to the secondary storage which control the data flow through a system when required and on request
  • 4. Storage Hierarchy • Secondary storage is non-volatile so does not lose data when it is powered down so consequently modern computer systems tend to have a more secondary storage than primary storage. All secondary storage today consist of hard disk drives (HDD), usually set up in a RAID configuration, however older installations also included removable media such us magneto optical or MO
  • 5. Storage Hierarchy • Tertiary Storage is mainly used as backup and archival of data and although based on the slowest devices can be classed as the most important in terms of data protection against a variety of disasters that can affect an IT infrastructure. Most devices in this segment are automated via robotics and software to reduce management costs and risk of human error and consist primarily of disk & tape based back up devices
  • 6. Storage Hierarchy • Offline Storage is the final category and is where removable types of storage media sit such as tape cartridges and optical disc such as CD and DVD. Offline storage is can be used to transfer data between systems but also allow for data to be secured offsite to ensure companies always have a copy of valuable data in the event of a disaster.
  • 9. Hard disk internal structure
  • 10. Hard disk internal structure
  • 11. Hard disk internal structure
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 20. Checksum • Checksums are used to ensure the integrity of data portions for data transmission or storage. A checksum is basically a calculated summary of such a data portion. • Network data transmissions often produce errors, such as toggled, missing or duplicated bits. • Some checksum algorithms are able to recover (simple) errors by calculating where the expected error must be and repairing it.
  • 22. Disk Subsystem • Multiple disks connected to a computer system through a controller ▫ Controllers functionality (checksum, bad sector remapping) oftencarried out by individual disks; reduces load on controller • Disk interface standards families ▫ ATA(AT adaptor) range of standards ▫ SATA(Serial ATA) ▫ SCSI(Small Computer System Interconnect) range of standards ▫ SAS(Serial Attached SCSI) ▫ Several variants of each standard (different speeds and capabilities)
  • 23. Disk Subsystem • Disks usually connected directly to computer system • In Storage Area Networks (SAN), a large number of disks are connected by a high-speed network to a number of servers • In Network Attached Storage (NAS) networked storage provides a file system interface using networked file system protocol, instead of providing a disk system interface
  • 24. RAID - redundant array of independent disks • RAID is short for redundant array of independent (or inexpensive) disks. It is a category of disk drives that employ two or more drives in combination for fault tolerance and performance. RAID disk drives are used frequently on servers but aren't generally necessary for personal computers. RAID allows you to store the same data redundantly (in multiple paces) in a balanced way to improve overall storage performance.
  • 25. • Level 0: Striped Disk Array without Fault Tolerance Provides data striping(spreading out blocks of each file across multiple disk drives) but no redundancy. This improves performance but does not deliver fault tolerance. If one drive fails then all data in the array is lost. • Level 1: Mirroring and Duplexing Provides disk mirroring. Level 1 provides twice the read transaction rate of single disks and the same write transaction rate as single disks. • Level 2: Error-Correcting Coding Not a typical implementation and rarely used, Level 2 stripes data at the bit level rather than the block level.
  • 26. • Level 3: Bit-Interleaved Parity Provides byte-level striping with a dedicated parity disk. Level 3, which cannot service simultaneous multiple requests, also is rarely used. • Level 4: Dedicated Parity Drive A commonly used implementation of RAID, Level 4 provides block-level striping (like Level 0) with a parity disk. If a data disk fails, the parity data is used to create a replacement disk. A disadvantage to Level 4 is that the parity disk can create write bottlenecks. • Level 5: Block Interleaved Distributed Parity Provides data striping at the byte level and also stripe error correction information. This results in excellent performance and good fault tolerance. Level 5 is one of the most popular implementations of RAID.
  • 27. Performance Measures of Disks • Access time: the time from when a read or write request is issued to when data transfer begins. To access data on a given sector of a disk, the arm first must move so that it is positioned over the correct track, and then must wait for the sector to appear under it as the disk rotates. The time for repositioning the arm is called seek time, and it increases with the distance the arm must move. Typical seek time range from 2 to 30 milliseconds. Average seek time is the average of the seek time, measured over a sequence of (uniformly distributed) random requests, and it is about one third of the worst- case seek time. • Once the seek has occurred, the time spent waiting for the sector to be accesses to appear under the head is called rotational latency time. Average rotational latency time is about half of the time for a full rotation of the disk. (Typical rotational speeds of disks ranges from 60 to 120 rotations per second). • The access time is then the sum of the seek time and the latency and ranges from 10 to 40 milli-sec.
  • 28. Performance Measures of Disks • data transfer rate, the rate at which data can be retrieved from or stored to the disk. Current disk systems support transfer rate from 1 to 5 megabytes per second. • reliability, measured by the mean time to failure. The typical mean time to failure of disks today ranges from 30,000 to 800,000 hours (about 3.4 to 91 years).
  • 29. Optimization of Disk-Block Access • Data is transferred between disk and main memory in units called blocks. • A block is a contiguous sequence of bytes from a single track of one platter. • Block sizes range from 512 bytes to several thousand. • The lower levels of file system manager covert block addresses into the hardware-level cylinder, surface, and sector number
  • 30. • Access to data on disk is several orders of magnitude slower than is access to data in main memory. Optimization techniques besides buffering of blocks in main memory. Scheduling: If several blocks from a cylinder need to be transferred, we may save time by requesting them in the order in which they pass under the heads. A commonly used disk-arm scheduling algorithm is the elevator algorithm. • File organization. Organize blocks on disk in a way that corresponds closely to the manner that we expect data to be accessed. For example, store related information on the same track, or physically close tracks, or adjacent cylinders in order to minimize seek time. IBM mainframe OS's provide programmers fine control on placement of files but increase programmer's burden.
  • 31. • Nonvolatile write buffers. Use nonvolatile RAM (such as battery-back-up RAM) to speed up disk writes drastically (first write to nonvolatile RAM buffer and inform OS that writes completed). • Log disk. Another approach to reducing write latency is to use a log disk, a disk devoted to writing a sequential log. All access to the log disk is sequential, essentially eliminating seek time, and several consecutive blocks can be written at once, making writes to log disk several times faster than random writes.