Mass Storage. 2. What are the difference between Primary storage and secondary storage devices? Primary Storage is Devices. Secondary Storage devices

Similar documents
Operating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy

1. What is the difference between primary storage and secondary storage?

Chapter 6 Storage Management File-System Interface 11.1

Department of Computer Engineering University of California at Santa Cruz. File Systems. Hai Tao

CS6401- Operating System QUESTION BANK UNIT-IV

Free Space Management

Chapter 12: Secondary-Storage Structure. Operating System Concepts 8 th Edition,

OPERATING SYSTEMS CS3502 Spring Input/Output System Chapter 9

Mass-Storage Structure

File System Management

Overview of Mass Storage Structure

UNIT 4 Device Management

Chapter 14: Mass-Storage Systems. Disk Structure

MODULE 4. FILE SYSTEM AND SECONDARY STORAGE

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 420, York College. November 21, 2006

Chapter 11: File System Implementation. Objectives

Chapter 12: Mass-Storage Systems. Operating System Concepts 8 th Edition,

OPERATING SYSTEMS CS3502 Spring Input/Output System Chapter 9

19 File Structure, Disk Scheduling

Operating Systems. Operating Systems Professor Sina Meraji U of T

CPSC 421 Database Management Systems. Lecture 11: Storage and File Organization

CSE 451: Operating Systems Winter Lecture 12 Secondary Storage. Steve Gribble 323B Sieg Hall.

Outlook. File-System Interface Allocation-Methods Free Space Management

Principles of Operating Systems

Today: Secondary Storage! Typical Disk Parameters!

ICS Principles of Operating Systems

V. File System. SGG9: chapter 11. Files, directories, sharing FS layers, partitions, allocations, free space. TDIU11: Operating Systems

BBM371- Data Management. Lecture 2: Storage Devices

Chapter 14: Mass-Storage Systems

EIDE, ATA, SATA, USB,

Silberschatz, et al. Topics based on Chapter 13

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

V. Mass Storage Systems

Mass-Storage Systems

Chapter 12: Mass-Storage Systems. Operating System Concepts 8 th Edition,

Chapter 10: Mass-Storage Systems

EECS 482 Introduction to Operating Systems

Module 13: Secondary-Storage

Chapter 13: Mass-Storage Systems. Disk Scheduling. Disk Scheduling (Cont.) Disk Structure FCFS. Moving-Head Disk Mechanism

Chapter 13: Mass-Storage Systems. Disk Structure

CSE 451: Operating Systems Winter Secondary Storage. Steve Gribble. Secondary storage

File Management By : Kaushik Vaghani

I/O 1. Devices and I/O. key concepts device registers, device drivers, program-controlled I/O, DMA, polling, disk drives, disk head scheduling

File-System. File Concept. File Types Name, Extension. File Attributes. File Operations. Access Methods. CS307 Operating Systems

Tape pictures. CSE 30341: Operating Systems Principles

Contents. Memory System Overview Cache Memory. Internal Memory. Virtual Memory. Memory Hierarchy. Registers In CPU Internal or Main memory

Disks, Memories & Buffer Management

Disks & Files. Yanlei Diao UMass Amherst. Slides Courtesy of R. Ramakrishnan and J. Gehrke

MASS-STORAGE STRUCTURE

Disc Allocation and Disc Arm Scheduling?

Introduction to File Structures

There is a general need for long-term and shared data storage: Files meet these requirements The file manager or file system within the OS

CHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

Part IV I/O System. Chapter 12: Mass Storage Structure

Module 13: Secondary-Storage Structure

Operating Systems. No. 9 ศร ณย อ นทโกส ม Sarun Intakosum

Chapter 10: Mass-Storage Systems

Outlines. Chapter 2 Storage Structure. Structure of a DBMS (with some simplification) Structure of a DBMS (with some simplification)

Disk Scheduling. Based on the slides supporting the text

Database Technology. Topic 7: Data Structures for Databases. Olaf Hartig.

Chapter 14: Mass-Storage Systems

Chapter 11: File System Interface Capítulo 10 no livro adotado!

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

CSE 120: Principles of Operating Systems. Lecture 10. File Systems. November 6, Prof. Joe Pasquale

CS720 - Operating Systems

I/O 1. Devices and I/O. key concepts device registers, device drivers, program-controlled I/O, DMA, polling, disk drives, disk head scheduling

Professor: Pete Keleher! Closures, candidate keys, canonical covers etc! Armstrong axioms!

File Systems. Before We Begin. So Far, We Have Considered. Motivation for File Systems. CSE 120: Principles of Operating Systems.

Secondary Storage (Chp. 5.4 disk hardware, Chp. 6 File Systems, Tanenbaum)

Introduction. Secondary Storage. File concept. File attributes

Disks and I/O Hakan Uraz - File Organization 1

CSE 120: Principles of Operating Systems. Lecture 10. File Systems. February 22, Prof. Joe Pasquale

CS3600 SYSTEMS AND NETWORKS

File System Interface and Implementation

UNIT V SECONDARY STORAGE MANAGEMENT

CSE 120. Operating Systems. March 27, 2014 Lecture 17. Mass Storage. Instructor: Neil Rhodes. Wednesday, March 26, 14

Chapter 12: Mass-Storage

Chapter 5. File and Memory Management

TDDB68 Concurrent Programming and Operating Systems. Lecture: File systems

Chapter 12: Mass-Storage Systems. Operating System Concepts 8 th Edition

Chapter 11: Mass-Storage Systems

EI 338: Computer Systems Engineering (Operating Systems & Computer Architecture)

CS420: Operating Systems. Mass Storage Structure

Chapter 11: File-System Interface

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Secondary Storage : Outline

STORING DATA: DISK AND FILES

File. File System Implementation. Operations. Permissions and Data Layout. Storing and Accessing File Data. Opening a File

Storage and File Structure. Classification of Physical Storage Media. Physical Storage Media. Physical Storage Media

File System Interface: Overview. Objective. File Concept UNIT-IV FILE SYSTEMS

Chapter 10: Mass-Storage Systems. Operating System Concepts 9 th Edition

Lecture 18: Memory Systems. Spring 2018 Jason Tang

Chapter 10: Mass-Storage Systems

22 File Structure, Disk Scheduling

Chapter 11: File-System Interface. File Concept. File Structure

File Systems: Interface and Implementation

Computer Organization

ECE331: Hardware Organization and Design

Chapter 5 Input/Output

CHAPTER 12: MASS-STORAGE SYSTEMS (A) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

Transcription:

1. What are the logical organization of a file? Mass Storage 2. What are the difference between Primary storage and secondary storage devices? Primary Storage is Devices Secondary Storage devices - Limited, Volatile, Expensive - Extendible, Persistent, Cheap - Fast (accessed directly from the - Slow (data must be copied to main memory) CPU) - Access time in msec. - Access time in nanoseconds. 3. What are the difference between serial devices and Direct Access Storage Devices? Direct Access Storage Devices (DASDs) - Offer high storage capacity and low cost - Store data as magnetized areas on magnetic platters surfaces - Examples: - Magnetic Disks, Hard Disks, Optical Disks - CD-ROM, DVD-ROM Serial Devices - Magnetic Tapes 4. Describe the physical structure of magnetics disk? Magnetic disks support direct access and It consisted of: Disk blocks Tracks Platters Cylinder

Sectors Disk heads Disk Controller Seek Time and Rotational delay 5. How to calculate disk capacity? Drive capacity = number of cylinders cylinder capacity Number of cylinders = number of tracks in a surface Cylinder capacity = number of surfaces track capacity Track capacity = number of sector per track bytes per sector 6. How many cylinders to store a file with 20,000 fixed length records of 256 bytes each on a disk with 512 bytes per sector, 40 sectors per disk and 11 tracks per cylinder? Answer: - The file is 20,000 * 256 = 5,120,000 bytes - 5,120,000 / 512 = 10,000 sectors - 10,000 / 40 = 250 tracks - 250 / 11 = 22.72 cylinders - If 22.72 physically contiguous cylinders are not available then the file will have to be spread out over the disk (fragmentation) 7. List tow methods used to organize data on magnetic disks? Data can be organized on disk in two different ways: Sectors User defined blocks. 8. How can data organized on magnetic disks using sectors? 1. Physically Placement of sectors

2. Clusters (fixed number of contiguous sectors) The file is viewed as a set of clusters of sectors. 3. Extent The whole file stored on one extent the file stored on more than one extent 9. How can data organized on magnetic disks using Blocks? Disk tracks are divided into user defined blocks with variable size. 10. List at least four disk scheduling algorithms? a. First Come First Served b. Shortest Seek Time First (SSTF) c. SCAN (elevator algorithm) d. CCAN e. C-LOOK

11. Disk requests come into the disk driver for cylinders: 95, 180, 34, 119, 11, 123, 62, 64 in that order. The disk has 200 total cylinders and the disk head is currently positioned over cylinder 50. What is the sequence of reads and total seek time using each of the following algorithms? a. First Come First Served 50-95 + 95-180 + 180-34 + 34-119 + 119-11 + 11-123 + 123-62 + 62-64 Total: 45+85+146+85+108+112+61+2 = 640 Total: 236 b. Shortest Seek Time First (SSTF) Total: 230 c. SCAN d. C-SCAN e. C-Look C-SCAN had a total movement of 187, but this scan (C-LOOK) reduced it down to 157 tracks.

12. Another Example Example: 55, 58, 39, 18, 90, 160, 150, 38, 184 13. See the example in the lecture 14. List Many different types of information may be stored in a file? a. Source programs: sequence of subroutines, functions, declaration and exec statements. b. Object programs: a sequence of bytes organized into blocks understandable by the system s linker. c. Executable programs, a series of code sections that the loader can bring into memory and execute. d. numeric data, e. Text - a sequence of characters organized into lines (and possibly pages). f. payroll records, g. graphic images, h. Sound recordings, and so on. 15. List at least 4 file attributes that identify files? A file s attributes vary from one operating system to another but typically consist of these: a. Name only information kept in human-readable form b. Identifier unique tag (number) identifies file within file system c. Type needed for systems that support different types d. Location pointer to file location on device e. Size current file size f. Protection controls who can do reading, writing, executing g. Time, date, and user identification data for protection, security, and usage monitoring 16. List the different operations that can be applied on a file? a. Create file b. Write to a file c. Read from a file d. Reposition within file (File Seek) e. Delete f. Truncate a file

g. Open(Fi) h. Close (Fi) i. Appending new information to the end of an existing file. j. Renaming an existing file. k. Create a copy of a file to another location l. Get and set file attributes. 17. What are the elements that constitute a File Control Block? 18. List the different methods used for accessing data in a file? a. Serial Access Each record is stored, one after the other, with no logical order. Suited to magnetic tape b. Sequential Access Records are kept in some pre-defined order Suited to magnetic tape c. Random Access or direct access Records are accessed directly.suitable for magnetic disks d. Indexed Sequential Like an index in the back of a book, contains pointers to the various blocks.