SlideShare a Scribd company logo
2
Most read
3
Most read
12
Most read
Prepared By:
Mehta Ishani
1300407010030
File models and file accessing
models
Contents
2
File models
Unstructured and structured files
Mutable and immutable files
File accessing models
Accessing remote files
Unit of data transfer
Unstructured files
3
Simplest model
File – unstructured sequence of data
No substructure
Contents – un interpreted sequence of bytes
Unix, MS-Dos
Modern OS used this model because sharing of files is easier
in compared with structured file model
Since file has no structure then different applications can
interpret the contents of files in many different ways.
Structured files
4
Rarely used
File – ordered sequence of records
Files – different types, different size and different properties
Record – smallest unit of data that can be accessed
Two categories
Files with non indexed records
Files with indexed records
Structured files
5
Files with non indexed records
File records is accessed by specifying it’s position within file
For ex. Fifth record from beginning, second record from end
Files with indexed records
Records have one or more key fields that can be addressed by
specifying values
File is maintained as B-tree or other suitable data structure or
hash table to locate records quickly
File attributes
6
Information describing that files
Has name and value
Contains information such has owner, size, access
permission, date of creation, date of last modification and
date of last access
User can read the value of any attribute but can’t change
modify it
Maintained and used by directory service because they are
subject to different access control
Mutable files
7
Used by most existing os
Update performed on files overwrites on old contents to
produce new contents
File is represented as a single stored sequence and that is
altered by each update operation
Immutable files
8
Cedar files system
File can not be modified once it has been created except to
be deleted
 file versioning approach is used, a new version of file is
created when change is made rather than updating same file
In practice storage space may be reduced by keeping only
differences rather than created whole file again
Sharing is much easier because it supports caching and
replication which eliminates the problem of keeping multiple
consistent copies
Immutable files
9
Suffering from two issues
Increased use of disk space
Increased disk allocation activity
CFS uses keep parameter as the no. of most current version
of file to be retained.
Accessing remote files
10
One of the following model is used when request to access
remote file
Remote service model
Data catching model
Remote service model
11
Processing of client request is performed at server’s node
Client request is delivered to server and server machine
performs on it and returns replies to client
Request and replies transferred across network as message
File server interface and communication protocol must be
designed carefully so as to minimize the overhead of
generating the messages
Every remote file access results in traffic
Data catching model
12
Reduced the amount of network traffic by taking advantage
of locality feature
If requested data is not present locally then copied it from
server’s node to client node and catching there
LRU is used to keep the cache size bounded
Cache Consistency problem
Unit of data transfer
13
Refers to fraction of file data that is transferred to and from
client as a result of single read write operation
Four data transfer models
File level transfer model
Block level transfer model
Byte level transfer model
Record level transfer model
File level transfer model
14
When the operation required file data, the whole file is
moved
Advantages are
Efficient because network protocol overhead is required only
once
Better scalability because it requires fewer access to file server
and reduce server load and network traffic
Disk access routines on server can be better optimized
Offers degree of resiliency to server and network failure
Drawbacks is it requires sufficient storage space
Ex are amoeba, CFS, Andrew file system
Block level transfer model
15
file data transfer take place in units of data blocks
A file block is contiguous portion of file and fixed in length
Advantage is does not required large storage space
Drawback is more network traffic and more network
protocol overhead
Poor performance
Ex are Sun microsystem’s NFS, Apollo domain file system
Byte level transfer model
16
File data transfer take place in units of bytes
Provides maximum flexibility
Difficulty in cache management
Record level transfer model
17
Suitable with structured files
File data transfer take place in unit of records
Ex. RSS(research storage system)
18

More Related Content

PPT
Basic command ppt
PDF
10 Ways Your Boss Kills Employee Motivation
PPTX
14 Tips for Using OKR Goals
DOCX
Chandrasekhar b.tech fresher resume
PPTX
2. Distributed Systems Hardware & Software concepts
PPTX
Introducing the Salesforce platform
PDF
Stock Price Trend Forecasting using Supervised Learning
PPT
distributed shared memory
Basic command ppt
10 Ways Your Boss Kills Employee Motivation
14 Tips for Using OKR Goals
Chandrasekhar b.tech fresher resume
2. Distributed Systems Hardware & Software concepts
Introducing the Salesforce platform
Stock Price Trend Forecasting using Supervised Learning
distributed shared memory

What's hot (20)

PPT
Client Centric Consistency Model
PDF
Resource management
PPTX
file sharing semantics by Umar Danjuma Maiwada
PPTX
file system in operating system
PPT
Clock synchronization in distributed system
PPT
File replication
PPTX
Distributed concurrency control
PPT
Chapter 11 - File System Implementation
PPT
Contiguous Memory Allocation.ppt
ODP
Distributed shared memory shyam soni
PPTX
Message passing in Distributed Computing Systems
PPTX
distributed Computing system model
PPTX
Flynn's Taxonomy
PPTX
Message and Stream Oriented Communication
PPTX
Distributed file system
PPTX
Communication in client server system.pptx
PDF
operating system structure
PPTX
Replication in Distributed Systems
PPT
program flow mechanisms, advanced computer architecture
Client Centric Consistency Model
Resource management
file sharing semantics by Umar Danjuma Maiwada
file system in operating system
Clock synchronization in distributed system
File replication
Distributed concurrency control
Chapter 11 - File System Implementation
Contiguous Memory Allocation.ppt
Distributed shared memory shyam soni
Message passing in Distributed Computing Systems
distributed Computing system model
Flynn's Taxonomy
Message and Stream Oriented Communication
Distributed file system
Communication in client server system.pptx
operating system structure
Replication in Distributed Systems
program flow mechanisms, advanced computer architecture
Ad

Viewers also liked (20)

PPT
Chapter 17 - Distributed File Systems
ODP
Distributed File System
 
PPT
Chapter 8 distributed file systems
PDF
Distributed Systems Naming
PDF
Distributed File Systems: An Overview
PPT
Distributed File Systems
PPT
Distributed File Systems
PPT
3. distributed file system requirements
PPT
4.file service architecture
PDF
Introduction to distributed file systems
PPT
Name services
PPT
resource management
PPTX
File management
PPT
File system
DOC
Unit 1 architecture of distributed systems
PPT
Korean War
PPT
Distributed file systems
PPT
PPT
Chapter 17 - Distributed File Systems
Distributed File System
 
Chapter 8 distributed file systems
Distributed Systems Naming
Distributed File Systems: An Overview
Distributed File Systems
Distributed File Systems
3. distributed file system requirements
4.file service architecture
Introduction to distributed file systems
Name services
resource management
File management
File system
Unit 1 architecture of distributed systems
Korean War
Distributed file systems
Ad

Similar to File models and file accessing models (20)

PDF
distributes systemss and its power point
PPTX
Distributed file systems chapter 9
PDF
CS9222 ADVANCED OPERATING SYSTEMS
PPTX
Dos unit 4
PPT
Distributed File System.ppt
PPT
Dfs (Distributed computing)
PPTX
Ds
PPTX
Ds
PPT
OPERATING SYSTEM
PPT
Unit 3 file management
PPT
DISTRIBUTED FILE SYSTEM- Design principles, consistency models
PPT
Introduction to distributed file systems
PPT
Os10
PPTX
Operating System File Management Unit v.pptx
PPTX
DFSNov1.pptx
DOCX
Block Level Storage Vs File Level Storage
PPT
PPT
Ch16 OS
 
PDF
CH11.pdf
distributes systemss and its power point
Distributed file systems chapter 9
CS9222 ADVANCED OPERATING SYSTEMS
Dos unit 4
Distributed File System.ppt
Dfs (Distributed computing)
Ds
Ds
OPERATING SYSTEM
Unit 3 file management
DISTRIBUTED FILE SYSTEM- Design principles, consistency models
Introduction to distributed file systems
Os10
Operating System File Management Unit v.pptx
DFSNov1.pptx
Block Level Storage Vs File Level Storage
Ch16 OS
 
CH11.pdf

More from ishmecse13 (14)

PDF
Search engine and web crawler
PPTX
Web services concepts, protocols and development
PDF
Web services concepts, protocols and development
PPTX
Web services
PPTX
Wap wml
PDF
Wap architecture and wml script
PPT
Solving travelling salesman problem using firefly algorithm
PPTX
Object oriented concepts with java
PPTX
Kerberos using public key cryptography
PPTX
Hierarchical clustering
PDF
Case study on cyber crime
PPTX
Branch and bound technique
PDF
Branch and bound technique
PPTX
Cyber crime and cyber laws
Search engine and web crawler
Web services concepts, protocols and development
Web services concepts, protocols and development
Web services
Wap wml
Wap architecture and wml script
Solving travelling salesman problem using firefly algorithm
Object oriented concepts with java
Kerberos using public key cryptography
Hierarchical clustering
Case study on cyber crime
Branch and bound technique
Branch and bound technique
Cyber crime and cyber laws

Recently uploaded (20)

PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Construction Project Organization Group 2.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Digital Logic Computer Design lecture notes
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PDF
composite construction of structures.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Well-logging-methods_new................
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
DOCX
573137875-Attendance-Management-System-original
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
Automation-in-Manufacturing-Chapter-Introduction.pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Construction Project Organization Group 2.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Digital Logic Computer Design lecture notes
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
OOP with Java - Java Introduction (Basics)
composite construction of structures.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
Well-logging-methods_new................
R24 SURVEYING LAB MANUAL for civil enggi
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Safety Seminar civil to be ensured for safe working.
Embodied AI: Ushering in the Next Era of Intelligent Systems
573137875-Attendance-Management-System-original
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Current and future trends in Computer Vision.pptx
Internet of Things (IOT) - A guide to understanding

File models and file accessing models

  • 1. Prepared By: Mehta Ishani 1300407010030 File models and file accessing models
  • 2. Contents 2 File models Unstructured and structured files Mutable and immutable files File accessing models Accessing remote files Unit of data transfer
  • 3. Unstructured files 3 Simplest model File – unstructured sequence of data No substructure Contents – un interpreted sequence of bytes Unix, MS-Dos Modern OS used this model because sharing of files is easier in compared with structured file model Since file has no structure then different applications can interpret the contents of files in many different ways.
  • 4. Structured files 4 Rarely used File – ordered sequence of records Files – different types, different size and different properties Record – smallest unit of data that can be accessed Two categories Files with non indexed records Files with indexed records
  • 5. Structured files 5 Files with non indexed records File records is accessed by specifying it’s position within file For ex. Fifth record from beginning, second record from end Files with indexed records Records have one or more key fields that can be addressed by specifying values File is maintained as B-tree or other suitable data structure or hash table to locate records quickly
  • 6. File attributes 6 Information describing that files Has name and value Contains information such has owner, size, access permission, date of creation, date of last modification and date of last access User can read the value of any attribute but can’t change modify it Maintained and used by directory service because they are subject to different access control
  • 7. Mutable files 7 Used by most existing os Update performed on files overwrites on old contents to produce new contents File is represented as a single stored sequence and that is altered by each update operation
  • 8. Immutable files 8 Cedar files system File can not be modified once it has been created except to be deleted  file versioning approach is used, a new version of file is created when change is made rather than updating same file In practice storage space may be reduced by keeping only differences rather than created whole file again Sharing is much easier because it supports caching and replication which eliminates the problem of keeping multiple consistent copies
  • 9. Immutable files 9 Suffering from two issues Increased use of disk space Increased disk allocation activity CFS uses keep parameter as the no. of most current version of file to be retained.
  • 10. Accessing remote files 10 One of the following model is used when request to access remote file Remote service model Data catching model
  • 11. Remote service model 11 Processing of client request is performed at server’s node Client request is delivered to server and server machine performs on it and returns replies to client Request and replies transferred across network as message File server interface and communication protocol must be designed carefully so as to minimize the overhead of generating the messages Every remote file access results in traffic
  • 12. Data catching model 12 Reduced the amount of network traffic by taking advantage of locality feature If requested data is not present locally then copied it from server’s node to client node and catching there LRU is used to keep the cache size bounded Cache Consistency problem
  • 13. Unit of data transfer 13 Refers to fraction of file data that is transferred to and from client as a result of single read write operation Four data transfer models File level transfer model Block level transfer model Byte level transfer model Record level transfer model
  • 14. File level transfer model 14 When the operation required file data, the whole file is moved Advantages are Efficient because network protocol overhead is required only once Better scalability because it requires fewer access to file server and reduce server load and network traffic Disk access routines on server can be better optimized Offers degree of resiliency to server and network failure Drawbacks is it requires sufficient storage space Ex are amoeba, CFS, Andrew file system
  • 15. Block level transfer model 15 file data transfer take place in units of data blocks A file block is contiguous portion of file and fixed in length Advantage is does not required large storage space Drawback is more network traffic and more network protocol overhead Poor performance Ex are Sun microsystem’s NFS, Apollo domain file system
  • 16. Byte level transfer model 16 File data transfer take place in units of bytes Provides maximum flexibility Difficulty in cache management
  • 17. Record level transfer model 17 Suitable with structured files File data transfer take place in unit of records Ex. RSS(research storage system)
  • 18. 18