SlideShare a Scribd company logo
1 of 41
SEMINAR ON 
OPERATING SYSTEM 
Topic : Implementing a 
file Structure 
By.. 
Anand M. Khandare 
M.Sc. - I
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
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
LAYERED FILE SYSTEM 
Anand 10/18/14 
4
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
Contiguous Allocation 
 A Set Of Contiguous Block 
 Example : IMB VM/CMS 
 Access : 
 Sequential 
 Direct 
Anand 10/18/14 
6
CONTIGUOUS ALLOCATION OF DISK 
SPACE 
Anand 10/18/14 
7
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
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
LINKED ALLOCATION 
Anand 10/18/14 
10
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
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
EXAMPLE OF INDEXED 
ALLOCATION 
Anand 10/18/14 
13
PROBLEMS 
 In the case if file if the file is small then you are 
create one index? 
Anand 10/18/14 
14
REUSE 
The concept of 
Reusing in 
Computer 
Science 
Anand 10/18/14 
15
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
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
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
EXAMPLE 
Anand 10/18/14 
19
DISK STRUCTURE 
Anand 10/18/14 
20
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
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
FCFS SCHEDULING 
 First Come First Serve 
 Simple to manipulate 
 Does not provide fastest service 
10/18/14 
Anand 
23
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
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
C- SCAN SCHEDULING 
 Provides a more uniform wait time than SCAN 
 Reverse of SCAN 
10/18/14 
Anand 
26
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
DISK MANAGEMENT 
 Disk initialization 
 Booting from Disk 
 Bad Block Recovery 
 Boot block 
 Disk Formatting 
 Low Level 
 Physical/high level 
10/18/14 
Anand 
28
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
DIAGRAMMATIC 
REPRESENTATION : 
10/18/14 
Anand 
30
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
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
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
I/O HARDWARE 
 Storage Devices 
 Transmission devices 
 Human interface device 
 Communicate via signal 
10/18/14 
Anand 
34
INTERRUPTS 
 signal to the processor emitted by hardware or 
software 
 Hardware Interrupt 
 Software Interrupt 
 Interrupts Request Line 
 Interrupts Handler 
10/18/14 
Anand 
35
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
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
KERNEL OF I/O SUB SYSTEM 
10/18/14 
Anand 
38
REFERENCES 
 Wikipidia.com 
 Operating System Principle 
 by.. 
ABRAHAM SILBERSCHATZ 
GREG GAGNE 
PETERBAER GALVIN 
10/18/14 
Anand 
39
10/18/14 
Anand 
40
10/18/14 
Anand 
41

More Related Content

What's hot

Storage management in operating system
Storage management in operating systemStorage management in operating system
Storage management in operating systemDeepikaT13
 
Operating Systems Part III-Memory Management
Operating Systems Part III-Memory ManagementOperating Systems Part III-Memory Management
Operating Systems Part III-Memory ManagementAjit Nayak
 
Driver development – memory management
Driver development – memory managementDriver development – memory management
Driver development – memory managementVandana Salve
 
Secondary storage tutorial
Secondary storage tutorialSecondary storage tutorial
Secondary storage tutorialMarvin Burke
 
I/O System and Case study
I/O System and Case studyI/O System and Case study
I/O System and Case studymalarselvi mms
 
Windows xp
Windows xpWindows xp
Windows xp02_joy
 
Board support package_on_linux
Board support package_on_linuxBoard support package_on_linux
Board support package_on_linuxVandana Salve
 
storage and file structure
storage and file structurestorage and file structure
storage and file structureSheshan Sheniwal
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsWayne Jones Jnr
 
Ch02 early system memory management
Ch02 early system  memory managementCh02 early system  memory management
Ch02 early system memory managementJacob Cadeliña
 
Linux memorymanagement
Linux memorymanagementLinux memorymanagement
Linux memorymanagementpradeepelinux
 
Process management
Process managementProcess management
Process managementMohd Arif
 

What's hot (20)

file management
 file management file management
file management
 
Chapter 8 - Main Memory
Chapter 8 - Main MemoryChapter 8 - Main Memory
Chapter 8 - Main Memory
 
Storage management in operating system
Storage management in operating systemStorage management in operating system
Storage management in operating system
 
Operating Systems Part III-Memory Management
Operating Systems Part III-Memory ManagementOperating Systems Part III-Memory Management
Operating Systems Part III-Memory Management
 
OSCh14
OSCh14OSCh14
OSCh14
 
Disk management
Disk managementDisk management
Disk management
 
Ch8
Ch8Ch8
Ch8
 
Driver development – memory management
Driver development – memory managementDriver development – memory management
Driver development – memory management
 
Chapter 22 - Windows XP
Chapter 22 - Windows XPChapter 22 - Windows XP
Chapter 22 - Windows XP
 
Secondary storage tutorial
Secondary storage tutorialSecondary storage tutorial
Secondary storage tutorial
 
OSCh21
OSCh21OSCh21
OSCh21
 
I/O System and Case study
I/O System and Case studyI/O System and Case study
I/O System and Case study
 
Windows xp
Windows xpWindows xp
Windows xp
 
Board support package_on_linux
Board support package_on_linuxBoard support package_on_linux
Board support package_on_linux
 
storage and file structure
storage and file structurestorage and file structure
storage and file structure
 
Ch13
Ch13Ch13
Ch13
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
Ch02 early system memory management
Ch02 early system  memory managementCh02 early system  memory management
Ch02 early system memory management
 
Linux memorymanagement
Linux memorymanagementLinux memorymanagement
Linux memorymanagement
 
Process management
Process managementProcess management
Process management
 

Viewers also liked

Seminar 4 introduction slides
Seminar 4 introduction slidesSeminar 4 introduction slides
Seminar 4 introduction slidesNuBizHRMWE
 
7.09 Excell Center Horse Trip
7.09 Excell Center Horse Trip7.09 Excell Center Horse Trip
7.09 Excell Center Horse Tripaspiranet
 
Reference Letter - James Gray Otto Bock Plant Manager
Reference Letter - James Gray Otto Bock Plant ManagerReference Letter - James Gray Otto Bock Plant Manager
Reference Letter - James Gray Otto Bock Plant ManagerStephen Barnes
 
1st Portfolio Development Idea: Photographer's Portfolio Website Layout
1st Portfolio Development Idea: Photographer's Portfolio Website Layout1st Portfolio Development Idea: Photographer's Portfolio Website Layout
1st Portfolio Development Idea: Photographer's Portfolio Website LayoutQian Rong
 
20080214 Personality Development Small Group Activity
20080214   Personality Development   Small Group Activity20080214   Personality Development   Small Group Activity
20080214 Personality Development Small Group Activityviswanadham vangapally
 
Managing people and organizations ppt
Managing people and organizations pptManaging people and organizations ppt
Managing people and organizations pptTatjanadlyaseminara
 
Introduction to Knowledge Management
Introduction to Knowledge ManagementIntroduction to Knowledge Management
Introduction to Knowledge ManagementMiera Idayu
 
Functions and formulas of ms excel
Functions and formulas of ms excelFunctions and formulas of ms excel
Functions and formulas of ms excelmadhuparna bhowmik
 

Viewers also liked (14)

Portfolio Development
Portfolio DevelopmentPortfolio Development
Portfolio Development
 
Seminar 4 introduction slides
Seminar 4 introduction slidesSeminar 4 introduction slides
Seminar 4 introduction slides
 
7.09 Excell Center Horse Trip
7.09 Excell Center Horse Trip7.09 Excell Center Horse Trip
7.09 Excell Center Horse Trip
 
Reference Letter - James Gray Otto Bock Plant Manager
Reference Letter - James Gray Otto Bock Plant ManagerReference Letter - James Gray Otto Bock Plant Manager
Reference Letter - James Gray Otto Bock Plant Manager
 
1st Portfolio Development Idea: Photographer's Portfolio Website Layout
1st Portfolio Development Idea: Photographer's Portfolio Website Layout1st Portfolio Development Idea: Photographer's Portfolio Website Layout
1st Portfolio Development Idea: Photographer's Portfolio Website Layout
 
Reflection on my seminar ANAND
Reflection on my seminar ANANDReflection on my seminar ANAND
Reflection on my seminar ANAND
 
QGIS training class 3
QGIS training class 3QGIS training class 3
QGIS training class 3
 
QGIS training class 2
QGIS training class 2QGIS training class 2
QGIS training class 2
 
QGIS training class 1
QGIS training class 1QGIS training class 1
QGIS training class 1
 
20080214 Personality Development Small Group Activity
20080214   Personality Development   Small Group Activity20080214   Personality Development   Small Group Activity
20080214 Personality Development Small Group Activity
 
Managing people and organizations ppt
Managing people and organizations pptManaging people and organizations ppt
Managing people and organizations ppt
 
Introduction to Knowledge Management
Introduction to Knowledge ManagementIntroduction to Knowledge Management
Introduction to Knowledge Management
 
PERSONALITY DEVELOPMENT
PERSONALITY DEVELOPMENTPERSONALITY DEVELOPMENT
PERSONALITY DEVELOPMENT
 
Functions and formulas of ms excel
Functions and formulas of ms excelFunctions and formulas of ms excel
Functions and formulas of ms excel
 

Similar to Implementing File Structure Seminar

Similar to Implementing File Structure Seminar (20)

Cs8493 unit 4
Cs8493 unit 4Cs8493 unit 4
Cs8493 unit 4
 
Massstorage
MassstorageMassstorage
Massstorage
 
operating system
operating systemoperating system
operating system
 
CH10.pdf
CH10.pdfCH10.pdf
CH10.pdf
 
presentations
presentationspresentations
presentations
 
Ie Storage, Multimedia And File Organization
Ie   Storage, Multimedia And File OrganizationIe   Storage, Multimedia And File Organization
Ie Storage, Multimedia And File Organization
 
Kavi
KaviKavi
Kavi
 
Kavi
KaviKavi
Kavi
 
Ch10
Ch10Ch10
Ch10
 
Disk Scheduling
Disk SchedulingDisk Scheduling
Disk Scheduling
 
Understanding operating systems 5th ed ch07
Understanding operating systems 5th ed ch07Understanding operating systems 5th ed ch07
Understanding operating systems 5th ed ch07
 
IMD 203 - Ch08
IMD 203 - Ch08IMD 203 - Ch08
IMD 203 - Ch08
 
I/O System and Case study
I/O System and Case studyI/O System and Case study
I/O System and Case study
 
Asif Jamal disk (it)
Asif Jamal disk (it)Asif Jamal disk (it)
Asif Jamal disk (it)
 
Hard disk
Hard diskHard disk
Hard disk
 
File Management in Operating Systems
File Management in Operating SystemsFile Management in Operating Systems
File Management in Operating Systems
 
Os
OsOs
Os
 
m+storeMemory storage
m+storeMemory storagem+storeMemory storage
m+storeMemory storage
 
OS_Ch14
OS_Ch14OS_Ch14
OS_Ch14
 
Ch14 OS
Ch14 OSCh14 OS
Ch14 OS
 

Implementing File Structure Seminar

  • 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
  • 4. LAYERED FILE SYSTEM Anand 10/18/14 4
  • 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
  • 7. CONTIGUOUS ALLOCATION OF DISK SPACE Anand 10/18/14 7
  • 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
  • 10. LINKED ALLOCATION Anand 10/18/14 10
  • 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
  • 13. EXAMPLE OF INDEXED ALLOCATION Anand 10/18/14 13
  • 14. PROBLEMS  In the case if file if the file is small then you are create one index? Anand 10/18/14 14
  • 15. REUSE The concept of Reusing in Computer Science Anand 10/18/14 15
  • 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
  • 20. DISK STRUCTURE Anand 10/18/14 20
  • 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
  • 30. DIAGRAMMATIC REPRESENTATION : 10/18/14 Anand 30
  • 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
  • 38. KERNEL OF I/O SUB SYSTEM 10/18/14 Anand 38
  • 39. REFERENCES  Wikipidia.com  Operating System Principle  by.. ABRAHAM SILBERSCHATZ GREG GAGNE PETERBAER GALVIN 10/18/14 Anand 39