The document summarizes Anand M. Khandare's seminar on implementing a file structure in an operating system. It discusses various topics related to file systems including file system structure, allocation methods like contiguous, linked and indexed allocation, free space management techniques, disk structure, disk scheduling algorithms, disk management, RAID concepts, and I/O systems. It provides details on each topic with examples and diagrams.
1. SEMINAR ON
OPERATING SYSTEM
Topic : Implementing a
file Structure
By..
Anand M. Khandare
M.Sc. - I
2. CONTENT :
File System Structure
Allocation Methods
Free Space Management
Disk Structure
Disk Scheduling Algorithm
Disk Management
RAID (concept)
I/O System
Anand 10/18/14
2
3. FILE SYSTEM STRUCTURE
File structure
Logical storage unit
Collection of related information
File system resides on secondary storage (disks)
Provided user interface to storage, mapping logical to
physical
Provides efficient and convenient access to disk by allowing
data to be stored, located retrieved easily
Disk provides in-place rewrite and random access
I/O transfers performed in blocks of sectors (usually 512
bytes)
Anand 10/18/14
File control block – storage structure consisting of
information about a file
Device driver controls the physical device
File system organized into layers 3
5. ALLOCATION METHODS
Why Allocation Method ?
Utilization Of Disk Space Effectively
To Increase the Accession Speed
Major Method of Allocation:
Contiguous
Linked
Indexes
Anand 10/18/14
5
6. Contiguous Allocation
A Set Of Contiguous Block
Example : IMB VM/CMS
Access :
Sequential
Direct
Anand 10/18/14
6
8. PROBLEMS
Finding Space For new File?
Chosen To manage free space determine ,
how this task complete ?
Solutions : First fit And Best Fit
External Fragmentation
Solution: Floppy Disk
Time consuming Operation
solution : Preallocation , Modified Contiguous
Anand 10/18/14
Allocation Scheme 8
9. LINKED ALLOCATION
Solved All problems of Contiguous allocation
Linked list of disk block
Contains a Pointer.
Block Size 512 bytes
Initially Pointer is nil .
No external Fragmentation
Anand 10/18/14
9
11. PROBLEMS
Used only for sequential Access file
A pointer require a disk Space About 0.78%
Solution:
1. collections of block in clusters .
2. FAT
What happen when Pointer were lost or
damage?
Solution: Sore the file name and relative block
number in each block
Anand 10/18/14
11
12. INDEXED ALLOCATION METHODS
Fragmentation And Size declaration Problem in
contiguous can`t solve with out FAT.
Bringing all pointers At ONE locations.
Each file one Index block
Support Direct access.
Linked scheme
Multilevel index
Combined Scheme
Anand 10/18/14
12
16. FREE-SPACE MANAGEMENT
Reuse the space
Reuse is not physically possible.
Free Space list
Different way to Management
Bit Vector
Linked list
Grouping
Counting
Anand 10/18/14
16
17. BIT VECTOR OR BIT MAP
1 And 0
traversing bit by bit
0 1 2 n-1
…
bit[i] =
1 Þ block[i] free
0 Þ block[i] occupied
Anand 10/18/14
17
18. LINKED FREE SPACE LIST ON DISK
Link together all the free disk , blocks , keeping
pointer to first free block in special location on
the disk And catching it in the memory
It is efficient as compare to bit vector
In FAT method incorporates free block
accounting
Anand 10/18/14
18
21. DISK STRUCTURE
Large one dimensional array of logical block
Logical block – Smallest unit of transfer
(512 byte)
CLV( Constant Linear Velocity)
CD-ROM
DVD-ROM
CAV(Constant Angular Velocity)
HDD
Anand 10/18/14
21
22. DISK SCHEDULING
Why Disk Scheduling ?
Use the hardware efficiently
Fast access time
Large disk Bandwidth
“Bandwidth” is total no of byte transferred ,divided by
the total time between the first request for service
and completion of the last transfer.
Way for Disk Scheduling
Anand 10/18/14
FCFS Scheduling
SSTF Scheduling
SCAN Scheduling
C- SCAN Scheduling
LOOK 22
23. FCFS SCHEDULING
First Come First Serve
Simple to manipulate
Does not provide fastest service
10/18/14
Anand
23
24. SSTF SCHEDULING
Shortest Seek Time First
Select the request with the minimum seek time
SSTF may cause starvation of some requests
10/18/14
Anand
24
25. SCAN SCHEDULING
Variant of SCAN design to provide
It immediately returns beginning of the disk
SCAN algorithm Sometimes called the elevator algorithm
10/18/14
Anand
25
26. C- SCAN SCHEDULING
Provides a more uniform wait time than SCAN
Reverse of SCAN
10/18/14
Anand
26
27. LOOK SCHEDULING
Combination of SCAN and C- SCAN
They look for request before continuing to move
in the given direction
10/18/14
Anand
27
28. DISK MANAGEMENT
Disk initialization
Booting from Disk
Bad Block Recovery
Boot block
Disk Formatting
Low Level
Physical/high level
10/18/14
Anand
28
29. BOOT BLOCK
Contain The machine Code
Loaded in RAM
We can Select boot device
Boot Start up in ROM
A disk that has boot partition is called system
Disk/Boot Disk
10/18/14
Anand
29
31. SWAP-SPACE MANAGEMENT
“Swap-space” Virtual memory uses disk space as
an extension of main memory
Moving Entire process Between disk And Main
Memory
Modern operating system implementation
Low Level Task
Swap Space use
Swap space Location
raw
10/18/14
Anand
31
32. RAID
Redundant Array Of Inexpensive Disks
Data storage virtualization technology
Purposes of data redundancy or performance
improvement
An error protection scheme
10/18/14
Anand
32
33. I/O SYSTEMS
Main job of computer
I/O Hardware
I/O Services provided by the OS
Control I/O operation and divices
10/18/14
Anand
33
34. I/O HARDWARE
Storage Devices
Transmission devices
Human interface device
Communicate via signal
10/18/14
Anand
34
35. INTERRUPTS
signal to the processor emitted by hardware or
software
Hardware Interrupt
Software Interrupt
Interrupts Request Line
Interrupts Handler
10/18/14
Anand
35
36. DMA
Direct memory access (DMA) is a feature of
computerized systems that allows certain
hardware subsystems to access main system
memory independently of the central processing
unit
10/18/14
Anand
36
37. APPLICATION OF I/O INTERFACE
I/O is the communication between an
information processing system (such as a
computer) and the outside world, possibly a
human or another information processing
system. Inputs are the signals or data received by
the system and outputs are the signals or data
sent from it
10/18/14
Anand
37