Chapter 11 File Systems and Directories. Chapter Goals Files, directories, and file systems Text and Binary files Disk-scheduling algorithms 11-2.

Slides:



Advertisements
Similar presentations
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
Advertisements

Chapter 4 : File Systems What is a file system?
Disk Scheduling Based on the slides supporting the text 1.
Disk scheduling examples. Problem parameters: u Disk has 100 cylinders, labeled u Time to move from cylinder A to cylinder B is a linear function.
OPERATING SYSTEMS CS3530 Summer 2014 OPERATING SYSTEMS CS3530 Summer 2014 Input/Output System Chapter 9.
Chapter 11 File Systems and Directories Nell Dale John Lewis.
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
University of Pennsylvania 10/24/00CSE 3801 Disk Scheduling CSE 380 Lecture Note 11a Insup Lee.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Based on the slides supporting the text
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (4) File Management & Input/Out Systems 10/14/2008 Yang Song (Prepared.
11/7/06 1 Hofstra University - CSC005 Chapter 11 File Systems and Directories.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
Chapter 12 – Disk Performance Optimization Outline 12.1 Introduction 12.2Evolution of Secondary Storage 12.3Characteristics of Moving-Head Disk Storage.
1 Disk Scheduling Chapter 14 Based on the slides supporting the text.
04/21/2004CSCI 315 Operating Systems Design1 Disk Scheduling.
1 Today I/O Systems Storage. 2 I/O Devices Many different kinds of I/O devices Software that controls them: device drivers.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
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
Chapter 11 File Systems and Directories Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
1 Lecture 8: Secondary-Storage Structure 2 Disk Architecture Cylinder Track SectorDisk head rpm.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Disk & disk scheduling.
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.
Chapter 12: Mass-Storage Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 12: Mass-Storage.
Disks and Storage Systems
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.
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.
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
Describe the purpose of files, file systems, and directories Distinguish between text and binary files Identify various file types by their extensions.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
CPS120: Introduction to Computer Science File Systems and Directories Nell Dale John Lewis.
File system.
A little hardware; a little software CS 139 – 08/29/07.
Operating Systems Lecture 15 Disk Scheduling Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard. Zhiqing Liu School of Software.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
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 11 File Systems and Directories. 2 File Systems (Chapter 11.1) File: 1. A named collection of related data. 2.smallest amount of information that.
Chapter 14: Mass-Storage
Chapter 14: Mass-Storage Systems Disk Structure. Disk Scheduling. RAID.
Lecture Topics: 12/1 File System Implementation –Space allocation –Free Space –Directory implementation –Caching Disk Scheduling File System/Disk Interaction.
Chapter 9 I/O System. 2 Input/Output System I/O Major objectives are: Take an application I/O request and send it to the physical device. Then, take whatever.
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
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.
Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow,
Operating System Architecture
Ch. 8 File Structures Sequential files. Text files. Indexed files.
Disk Scheduling Algorithms
Chapter 14 Based on the slides supporting the text
Operating Systems (CS 340 D)
File Systems and Directories
Overview Continuation from Monday (File system implementation)
Week 1: File Systems and Directories
Chapter 11 I/O Management and Disk Scheduling
Learning Intention I will learn how computers store text.
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

Chapter 11 File Systems and Directories

Chapter Goals Files, directories, and file systems Text and Binary files Disk-scheduling algorithms 11-2

File Systems 11-3

File Systems How do we make this: 5-18 Look like this?

File Systems File – A named collection of related data – A sequence of bytes File system – The logical view that an operating system provides – Physically, information on the disk is scattered Directory or Folder – A named group of files 11-5

Directory Trees Directory tree – A logical view of a file system; – uses a tree structure to represent organization of a file system Root The directory at the highest level 11-6

The Disk – A Physical View Data is stored in blocks One file may be spread across several blocks 5-18

Directory Trees - A Logical View 11-8

File Types 11-9

2 File Types 1) Text 2) Binary Depends on: – Are the bytes ASCII Characters or not? 11-10

Text and Binary Files Text file – Each byte represents an ASCII character Binary file – Each byte or group of bytes represents something other than a character – The specific meaning of the format of bytes must be understood by the program using the file 11-11

Disk Scheduling 11-12

Disk Scheduling The File System is a shared resource Many programs ask the operating system for access to the disk Disk scheduling The technique that the operating system uses to determine which disks access requests to satisfy first 11-13

Disk Scheduling The File System must be accessed in an efficient manner As a computer deals with multiple processes over a period of time, a list of requests to access the disk builds up 11-14

Disk Scheduling How should we move the head to service requests? Figure 5.5 The organization of a magnetic disk 5-18

Disk Scheduling Algorithms First-Come, First-Served (FCFS) Shortest-seek-time-first (SSTF) Scan (aka Elevator Algorithm) 11-16

FCFS First-Come, First-Served Requests are serviced in the order they arrive in the list, without regard to the current position of the heads Problem: Inefficient – The disk heads are moving too much

SSTF Shortest-seek-time-first (SSTF) The closest item in the list is services first Problem: Starvation – New requests may be closer than older requests, so older requests never get serviced.

Scan Scan (aka Elevator Algorithm) Like an elevator Travels from top to bottom, servicing requests along the way Problems?? Problems may exist for special cases