1 Reminders Project 3 due tomorrow in lecture turnin + report Today’s office hours in 006 changed to 5:30-6:30 Project 4 out soon, due last day of classes.

Slides:



Advertisements
Similar presentations
Disk Storage SystemsCSCE430/830 Disk Storage Systems CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng Zhu (U. Maine) Fall,
Advertisements

Overview of Mass Storage Structure
Problems in IO & File System CS 1550 Recitation November 4 th /6 th, 2002 The questions in this slide are from Andrew S. Tanenbaum's textbook page 375,
CSE 451: Operating Systems Section 7 File Systems; Project 3.
Input/Output Management and Disk Scheduling
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.
Project 4 Work with a real file system Given: Goals:
Lecture 17 I/O Optimization. Disk Organization Tracks: concentric rings around disk surface Sectors: arc of track, minimum unit of transfer Cylinder:
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
1 Administrivia Project 4 due in a week Turnin only, no report Homework 4 due next Wednesday EC Today: Project 4 and file system stuff EC questions?
1 Administrivia Project 4 out today, due next Friday (March 10) Design exercise only Today: Project 4 and file system stuff.
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
CS4432: Database Systems II Lecture 2 Timothy Sutherland.
Disks.
1 Today I/O Systems Storage. 2 I/O Devices Many different kinds of I/O devices Software that controls them: device drivers.
CMPT 300: Operating Systems I
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Secondary Storage Management Hank Levy. 8/7/20152 Secondary Storage • Secondary Storage is usually: –anything outside of “primary memory” –storage that.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
Disk and I/O Management
CENG334 Introduction to Operating Systems Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY URL:
Device Management. So far… We have covered CPU and memory management Computing is not interesting without I/Os Device management: the OS component that.
CS 153 Design of Operating Systems Spring 2015 Lecture 20: File Systems.
CS 6560 Operating System Design Lecture 13 Finish File Systems Block I/O Layer.
Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.
Operating Systems CMPSC 473 I/O Management (4) December 09, Lecture 25 Instructor: Bhuvan Urgaonkar.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Disk & disk scheduling.
IT 344: Operating Systems Winter 2010 Module 13 Secondary Storage Chia-Chi Teng CTB 265.
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.
UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department
Operating Systems CMPSC 473 I/O Management (3) December 07, Lecture 24 Instructor: Bhuvan Urgaonkar.
OPERATING SYSTEMS IO SYSTEMS. Categories of I/O Devices Human readable –Used to communicate with the user –Printers –Video display terminals Display Keyboard.
Disk Scheduling CS Introduction to Operating Systems.
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.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 13 Mass-Storage Systems Slide 1 Chapter 13 Mass-Storage Systems.
Device Management Mark Stanovich Operating Systems COP 4610.
Disk Average Seek Time. Multi-platter Disk platter Disk read/write arm read/write head.
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
CSE 451: Operating Systems Winter 2012 Secondary Storage Mark Zbikowski Gary Kimura.
Device Management Andy Wang Operating Systems COP 4610 / CGS 5765.
1 Lecture 16: Data Storage Wednesday, November 6, 2006.
1 Section 8: File Systems Project 3. 2 Questions?
CSE 451: Operating Systems Spring 2010 Module 12.5 Secondary Storage John Zahorjan Allen Center 534.
Chapter 10: Mass-Storage Systems
Secondary Storage Secondary storage typically: Characteristics:
CS703 - Advanced Operating Systems
IT 344: Operating Systems Winter 2008 Module 13 Secondary Storage
Lecture 45 Syed Mansoor Sarwar
Disks and Files DBMS stores information on (“hard”) disks.
CSE 153 Design of Operating Systems Winter 2018
CSE 451: Operating Systems Winter 2006 Module 13 Secondary Storage
CSE 451: Operating Systems Autumn 2003 Lecture 12 Secondary Storage
CSE 451: Operating Systems Winter 2007 Module 13 Secondary Storage
CSE 451: Operating Systems Spring 2006 Module 13 Secondary Storage
Secondary Storage Management Brian Bershad
Persistence: hard disk drive
CSE 451: Operating Systems Secondary Storage
CSE 451: Operating Systems Winter 2003 Lecture 12 Secondary Storage
CSE 451 Fall 2003 Section 11/20/2003.
CSE 451: Operating Systems Winter 2009 Module 12 Secondary Storage
CSE 451: Operating Systems Spring 2005 Module 13 Secondary Storage
Secondary Storage Management Hank Levy
CSE451 File System Introduction and Disk Drivers Autumn 2002
CSE 451: Operating Systems Autumn 2004 Secondary Storage
CSE 451: Operating Systems Winter 2004 Module 13 Secondary Storage
Chapter 11: Mass-Storage Systems
Operating Systems 2019 Spring by Euiseong Seo
CSE 451: Operating Systems Spring 2007 Module 11 Secondary Storage
Presentation transcript:

1 Reminders Project 3 due tomorrow in lecture turnin + report Today’s office hours in 006 changed to 5:30-6:30 Project 4 out soon, due last day of classes Homework 5 due the day after Thanksgiving  Today: Questions Some file system stuff A bit about project 4…

2 Project 3 – last questions?

3 Disk scheduling Recall disk scheduling algorithms FCFS SSTF (shortest seek time first) SCAN/LOOK (elevator) C-SCAN/C-LOOK (“typewriter”) Who implements this? Linux: look in drivers/block/elevator.c

4 Disk scheduling example Given: 500 cylinder disk Blocks 0…499 Drive head at cylinder 14 Previous request 12 Queue of requests: 8, 147, 91, 177, 94, 150, 102, 9, 130 Find total distance disk arm moves with each of the algorithms

5 FIFO Start at 14 8, 147, 91, 177, 94, 150, 102, 9, 130

6 FIFO Start at 14 8, 147, 91, 177, 94, 150, 102, 9, 130 (14-8)+(147-8)+(147-91)+(177-91)… Around 688

7 Shortest Seek Time First Start at 14 8, 147, 91, 177, 94, 150, 102, 9, 130

8 Shortest Seek Time First Start at 14 8, 147, 91, 177, 94, 150, 102, 9, 130 Head path: 9, 8, 91, 94, 102, 130, 147, 150, (91-8) = 165 (<< 688)

9 C-LOOK Start at 14 (was at 12 before 14) 8, 147, 91, 177, 94, 150, 102, 9, 130

10 C-LOOK Start at 14 (was at 12 before 14) 8, 147, 91, 177, 94, 150, 102, 9, 130 Head path (it’s moving right!): 91, 94, 102, 130, 147, 150, 177, 8, 9 (91-14) (177-8)+1 = 333

11 More disk stuff Why not consider the rotational latency in any of disk scheduling algorithms? Why does SSTF favor middle cylinders? Cost of typical disk access? Time to transfer a 4K block 300GB Seagate Barracuda : Internal Transfer Rate (Mbits/sec) 760 Max. External Transfer Rate (Mbytes/sec) 100 Avg. Sustained Transfer Rate (Mbytes/sec) > Average Seek (msec) 8 Average Latency (msec) 4.16 Multisegmented Cache 8192 Spindle Speed (RPM)7200

12 Project 4 Work with a real file system Given: cse451fs: simplified file system for Linux Goals: Understand how it works Modify implementation to: Increase maximum size of files (currently 13KB) Allow for longer file names (currently 30 chars)

13 Linux FS layers Disk drivers Buffer cache User apps VFS ext2ext3vfatcse451fs  Common FS interface  $ for disk blocks

14 File systems in Linux Implement a standard interface file_operations read/write/seek files read directory inode_operations create / lookup / unlink / mkdir / rmdir / rename super_operations read/write inodes address_space_operations readpage/writepage for memory-mapped IO file_system_operations read in superblock

15 FS Storage File system is layered on top of a block device Device provides ordered list of blocks Blocks are cached in the buffer cache File systems access blocks through: getblk() - gets a cached block bread() - reads a block mark_buffer_dirty() / brelse() - marks buffer as changed and releases to kernel (which does the writing)

16 Project 4 Setup Build kernel module for cse451fs Transfer it to VMWare On VMWare, use Linux ramdisk to test your file system. i.e. create a fake disk in memory, create your FS on top, mount, test.