1Fall 2008, Chapter 12 Disk Hardware Arm can move in and out Read / write head can access a ring of data as the disk rotates Disk consists of one or more.

Slides:



Advertisements
Similar presentations
Overview of Mass Storage Structure
Advertisements

Silberschatz, Galvin and Gagne Operating System Concepts Disk Scheduling Disk IO requests are for blocks, by number Block requests come in an.
I/O Management and Disk Scheduling
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
CS 6560: Operating Systems Design
Disk Scheduling Based on the slides supporting the text 1.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto Disks and RAID.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
Mass-Storage Structure
Based on the slides supporting the text
Disks.
1 Disk Scheduling Chapter 14 Based on the slides supporting the text.
12: IO Systems1 I/O SYSTEMS This Chapter is About Processor I/O Interfaces: Connections exist between processors, memory, and IO devices. The OS must manage.
Disks CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
Secondary Storage Management Hank Levy. 8/7/20152 Secondary Storage • Secondary Storage is usually: –anything outside of “primary memory” –storage that.
Operating Systems COMP 4850/CISG 5550 Disks, Part II Dr. James Money.
Moving-head Disk Mechanism Rotation Speeds: 60 to 200 rotations per second Head Crash: read-write head makes contact with the surface.
12.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 12: Mass-Storage Systems.
Disk and I/O Management
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 14: Mass-Storage Systems Disk Structure Disk Scheduling Disk Management Swap-Space.
Mass storage Structure Unit 5 (Chapter 14). Disk Structures Magnetic disks are faster than tapes. Disk drives are addressed as large one- dimensional.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
1 Operating Systems Part VI: Mass- Storage Structure.
1 Lecture 8: Secondary-Storage Structure 2 Disk Architecture Cylinder Track SectorDisk head rpm.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Disk Structure Disk drives are addressed as large one- dimensional arrays of logical blocks, where the logical block is the smallest unit of transfer.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 13+14: I/O Systems and Mass- Storage Structure I/O Hardware Application I/O.
Chapter 12: Mass-Storage Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 12: Mass-Storage Systems Overview of Mass.
Page 110/12/2015 CSE 30341: Operating Systems Principles Network-Attached Storage  Network-attached storage (NAS) is storage made available over a network.
Chapter 12: Mass-Storage Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 12: Mass-Storage.
1 File System Implementation and Disk Management  disk configuration and typical access times  selecting disk geometry  evolution of UNIX file system.
NETW 3005 Mass Storage (How discs work). Notice I was unaware just how much was missing in the printed notes. As a partial remedy for that, the lecture.
CS 6502 Operating Systems Dr. J.. Garrido Device Management (Lecture 7b) CS5002 Operating Systems Dr. Jose M. Garrido.
CE Operating Systems Lecture 20 Disk I/O. Overview of lecture In this lecture we will look at: Disk Structure Disk Scheduling Disk Management Swap-Space.
I/O Management and Disk Structure Introduction to Operating Systems: Module 14.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 14: Mass-Storage Systems Disk Structure Disk Scheduling Disk Management Swap-Space.
Silberschatz, Galvin and Gagne ©2009 Edited by Khoury, 2015 Operating System Concepts – 9 th Edition, Chapter 10: Mass-Storage Structure.
1.  Disk Structure Disk Structure  Disk Scheduling Disk Scheduling  FCFS FCFS  SSTF SSTF  SCAN SCAN  C-SCAN C-SCAN  C-LOOK C-LOOK  Selecting a.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 13 Mass-Storage Systems Slide 1 Chapter 13 Mass-Storage Systems.
Chapter 14: Mass-Storage
Chapter 14: Mass-Storage Systems Disk Structure. Disk Scheduling. RAID.
1 Chapter 13 Mass-Storage Structure. 2 Disk Structure Disk drives are addressed as large 1- dimensional arrays of logical blocks, where the logical block.
M ASS S TORAGE S TRUCTURES Lecture: Operating System Concepts Lecturer: Pooja Sharma Computer Science Department, Punjabi University, Patiala.
Presentation-4 Group-A1 Professor Mohamed Khalil Anita Kanuganti Hemanth Rao.
Part IV I/O System Chapter 12: Mass Storage Structure.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 11: File System Implementation.
Mass Storage Structure
Chapter 10: Mass-Storage Systems
Operating System (013022) Dr. H. Iwidat
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Chapter 12: Mass-Storage Structure
Operating System I/O System Monday, August 11, 2008.
Disk Scheduling Algorithms
Mass-Storage Structure
DISK SCHEDULING FCFS SSTF SCAN/ELEVATOR C-SCAN C-LOOK.
Chapter 14 Based on the slides supporting the text
Chapter 12: Mass-Storage Systems
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Overview Continuation from Monday (File system implementation)
Disks and scheduling algorithms
Secondary Storage Management Hank Levy
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Mass-Storage Systems (Disk Scheduling)
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Presentation transcript:

1Fall 2008, Chapter 12 Disk Hardware Arm can move in and out Read / write head can access a ring of data as the disk rotates Disk consists of one or more platters Each platter is divided into rings of data, called tracks, and each track is divided into sectors One particular platter, track, and sector is called a block

2Fall 2008, Chapter 12 Disk Hardware (cont.) Typical disk a while back (Compaq 40GB Ultra ATA RPM = $369): cylinders, 16 heads, 63 sectors / track 16 platters * tracks/platter * 63 sectors/track * 4048 bytes/sector * 1/1024^3 GB/byte = 63GB unformatted 7200 rpm spindle speed, 8 ms average seek time, 100 MBps data transfer rate Trends in disk technology Disks get smaller, for similar capacity Faster data transfer, lighter weight Disk keep storing data more densely Faster data transfer Density improves faster than mechanical limitations (seek time, rotational delay) Disks keep getting cheaper (2x increase in capacity per $)

3Fall 2008, Chapter 12 Improving Disk Performance Keep some structures in memory Active inodes, file tables Efficient free space management Bitmaps Careful allocation of disk blocks Contiguous allocation where possible Direct / indirect blocks Good choice of block size Cylinder groups Keep some disk space in reserve Disk management Cache of disk blocks Disk scheduling

4Fall 2008, Chapter 12 Improving Performance Using a Disk Cache Have OS (not hardware) manage a disk block cache to improve performance Use part of main memory as a cache When OS reads a file from disk, it copies those blocks into the cache Before OS reads a file from disk, it checks the cache to see if any of the blocks are there (if so, uses cached copy) Replacement policies for the blocks: Same options as paging FIFO, LRU using clock / second chance Easy to implement exact LRU OS just records time along with everything else it has to update when a block is read But — sequential access degrades LRU Solution: free-behind policy for large sequentially-accessed files — as block is read, remove previous one from cache

5Fall 2008, Chapter 12 Improving Performance with Disk Head Scheduling Permute the order of the disk requests From the order that they arrive in Into an order that reduces the distance of seeks Examples: Head just moved from lower-numbered track to get to track 30 Request queue: 61, 40, 18, 78 Algorithms: First-come first-served (FCFS) Shortest Seek Time First (SSTF) SCAN (0 to 100, 100 to 0, …) C-SCAN (0 to 100, 0 to 100, …)

6Fall 2008, Chapter 12 Disk Head Scheduling (cont.) FCFS Handle in order of arrival SSTF Select request that requires the smallest seek from current track

7Fall 2008, Chapter 12 Disk Head Scheduling (cont.) SCAN (Elevator algorithm) Move the head 0 to 100, 100 to 0, picking up requests as it goes LOOK (variation on SCAN) Don’t go to end unless necessary

8Fall 2008, Chapter 12 Disk Head Scheduling (cont.) C-SCAN (Circular SCAN) Move the head 0 to 100, picking up requests as it goes, then big seek to 0 C-LOOK (variation on C-SCAN) Don’t go to end unless necessary

9Fall 2008, Chapter 12 Comparison of Disk Head Scheduling Methods SSTF is common and has a natural appeal SCAN and C-SCAN perform better for systems that place a heavy load on the disk Performance depends on the number and types of requests Requests for disk service can be influenced by the file-allocation method. The disk-scheduling algorithm should be written as a separate module of the operating system, allowing it to be replaced as necessary Either SSTF or LOOK is a reasonable choice for the default algorithm

10Fall 2008, Chapter 12 Disk Management Disk formatting Physical formatting — dividing disk into sectors: header, data area, trailer Most disks are preformatted, although special utilities can reformat them After formatting, must partition the disk, then write the data structures for the file system (logical formatting) Boot block contains the “bootstrap” program for the computer System also contains a ROM with a bootstrap loader that loads this program Disk system should ignore bad blocks When disk is formatted, a scan detects bad blocks and tells disk system not to assign those blocks to files Disk may also do this as disk is used

11Fall 2008, Chapter 12 Disk Management (cont.) Swap space management Swap space in normal file system Swap space in separate partition One big file — don’t need whole file system, directories, etc. Only need manager to allocate/deallocate blocks (optimized for speed) Disk reliability Data normally assumed to be persistent Disk striping — data broken into blocks, successive blocks stored on separate drives Mirroring — keep a “shadow” or “mirror” copy of the entire disk Stable storage — data is never lost during an update — maintain two physical blocks for each logical block, and both must be same for a write to be successful