Help shape GoConqr. What should we add next?

Flashcards

MASS STORAGE AND FILE IO

Eric Wojcik English 27 cards

Cards in this deck (27)

  1. 1In terms of mass storage, OS is responsible for:Free space management
    Storage Allocation
    Disk Scheduling
  2. 2Disk SchedulingOs responsible for using hardware efficiently which means access times and disk bandwidth
    ACCESS TIMES [two components]
    -> Seek time: time for disk arm to move to the head of the cylinder
    ->Rotational Latency: additional time waiting for disk to rotate to desired sector
  3. 3Disk StructureThis is the lowest level of the file system. Disk drives are addressed 1-D arrays
    ->Arrays are mapped onto sectors of the disk sequentially
    -> Mappings iterate through track, then rest of tracks on cylinder, then rest of cylinders from outer most -> inner most.
  4. 4Disk BandwidthTotal number of bytes transferred - total time between first request and completion of last request.
  5. 5Disk RequestsA process that requests disk IO requires the following:
    -IO for input and output
    -disk addresses for transfer
    -num of sectors to be transferred
    [in terms of multiprogramming]
    Disk requests placed on a queue and OS chooses which pending request to serve next via Disk Scheduling Algorithm
  6. 6FCSFFirst come first serve - fair but does not provide fast performance
  7. 7SSTFShortest Seek Time first - selects request with min seek time (in relation to current position)
    aka current is 53
    55 or 67, choose 55
  8. 8SCANDisk arm starts at one end (direction determined by prev request) moves to other end, when hit end reverse and service requests on the way back
  9. 9C-SCANHead moves from one side to another BUT when hit end, will immediately go back to opposite end without serving any requests
    (remember with q if say between 1 and 199, do it exactly as that)
  10. 10C-LOOKExactly like C-SCAN but the scope is limited to the MIN request value and the MAX request value. Not useful if queue is constantly receiving new requests that could potentially be out of scope
  11. 11Disk Formatting LOW LEVEL FORMATTINGDisk divided into sectors that disk controller can read and write.
    Low level fills sectors with special data struct:
    header, data area (512 bytes), trailer
    Header and trailer contain info used by disk controller
  12. 12To actually have files on disk, OS records data via following:Partition Disk: Into one ore more groups of cylinders
    Logical Formatting: Making a file system, OS stores intial file sys structs on disk
  13. 13BAD BLOCKS Handling Bad Blocks>Handle manually in IDE controller - scan disks for bad blocks and report findings to corresponding FAT; done during logical formatting
    >Maintain list of bad blocks on disk starting from low level formatting
  14. 14BAD BLOCKS SCISIUses sector sparing or forwarding to move to bad blocks; SCISI disk controller puts contents of bad sector onto spare sector
  15. 15BOOT BLOCK BootstrapInitial program required to run the computer. Initialises all aspects of the system including CPU registers, device controller, contents of main memory
    Process: finds kernel on the disk and loads it into memory, jumps to specific addr to start os execution
  16. 16BOOT BLOCK Bootstrap LoaderSmall program in ROM used to bring full bootstrap program from disk
  17. 17SWAP SPACE ManagementVirtual memory uses disk space as an extension of main memory. This is another task of OS - provide best throughput for virtual sys.
    Located within seperate disk partition
  18. 18Use of swap space>Used to hold entire process image include code and data segments
    >Used to store pages that have been pushed out of memory
    Size of swap space - better to overestimate as if you underestimate, may result in aborted processes and sys may crash
  19. 19IO HardwareList of devices that comp operates:
    -Human Interface (screen, mouse, keyboard)
    -Storage Devices (network cards)
  20. 20IO SUBSYSTEM OF KERNELSeparates kernel from complexity of managing IO
  21. 21Role of OS when comes to IO managementManage and control IO ops and devices
    Provide simplest interface possible for rest of system
    Optimise IO for max security
  22. 22IO SUBSYSTEM OF KERNEL [IO Scheduling]Used to improve overall system performance
    >share data across processes fairly
    >reduce any waiting time
  23. 23IO SUBSYSTEM OF KERNEL [Buffering]Memory that stores data being transferred between two entities. Used for when there is a speed mismatch (sys receiving file from modem which is slow, to disk which is fast)
    OR when there is size mismatch - bits collect to form bytes.
    AND maintain copy semantics
  24. 24IO SUBSYSTEM OF KERNEL [Caching]Part of extremely fast, small memory that holds copies of data for faster access of said data.
    Diff between buff and cache:
    -Buffer may hold the only copy of that data
    -Cache stores a faster copy of data that is also stored elsewhere; important to improving access time of freq accessed data
  25. 25IO SUBSYSTEM OF KERNEL [Spooling]A buffer that holds the output of a single device, cannot interleave data streams
    >Each apps output spooled to a disk file
  26. 26IO SUBSYSTEM OF KERNEL [Device Reservation]Provides exclusive access to devices. Uses system call for device allocation
  27. 27Improving IO performance-Reduce total number of context switches
    -Reduce number of times device data copied into memory
    -Increase concurrency of DMA controllers

Information

Description
Flashcards on MASS STORAGE AND FILE IO, created by Eric Wojcik on 17/06/2018.
Created by
Eric Wojcik
Views
0
Rating

Feedback

What is it about?

What should we add next?