



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
During the course of work of the Operating Systems, Distributed Computation, we learn the core of the programming. The main points disucss in these lecture slides are:Distributed File Systems, Naming and Transparency, Remote File Access, Stateful Versus Stateless Service, File Replication, Location Transparency, Location Independence, Naming Schemes, Approaches to Naming Files
Typology: Slides
1 / 27
This page cannot be seen from the preview
Don't miss anything!




















17: Distributed File 1
Docsity.com
17: Distributed File 2
Docsity.com
17: Distributed File 4
Clients, servers, and storage are dispersed across machines. Configuration and implementation may vary -
a) Servers may run on dedicated machines, OR b) Servers and clients can be on the same machines. c) The OS itself can be distributed (with the file system a part of that distribution. d) A distribution layer can be interposed between a conventional OS and the file system.
Clients should view a DFS the same way they would a centralized FS; the distribution is hidden at a lower level.
Performance is concerned with throughput and response time.
Docsity.com
17: Distributed File 5
Naming is the mapping between logical and physical objects.
Location transparency -
a) The name of a file does not reveal any hint of the file's physical storage location. b) File name still denotes a specific, although hidden, set of physical disk blocks. c) This is a convenient way to share data. d) Can expose correspondence between component units and machines.
Docsity.com
17: Distributed File 7
The ANDREW DFS AS AN EXAMPLE:
NAMING SCHEMES:
There are three main approaches to naming files:
Docsity.com
17: Distributed File 8
Docsity.com
17: Distributed File 10
Reduce network traffic by retaining recently accessed disk blocks in a cache, so that repeated accesses to the same information can be handled locally.
If required data is not already cached, a copy of data is brought from the server to the user.
Perform accesses on the cached copy.
Files are identified with one master copy residing at the server machine,
Copies of (parts of) the file are scattered in different caches.
Cache Consistency Problem -- Keeping the cached copies consistent with the master file.
Docsity.com
17: Distributed File 11
A remote service ((RPC) has these characteristic steps:
a) The client makes a request for file access. b) The request is passed to the server in message format. c) The server makes the file access. d) Return messages bring the result back to the client.
This is equivalent to performing a disk access for each request.
Docsity.com
17: Distributed File 13
What should be cached? << blocks <---> files >>.
Bigger sizes give a better hit rate; Smaller give better transfer times.
— Better reliability.
— The possibility of diskless work stations, — Greater speed,
Since the server cache is in memory, it allows the use of only one mechanism.
Docsity.com
17: Distributed File 14
A write through cache has good reliability. But the user must wait for writes to get
to the server. Used by NFS.
Delayed write - write requests complete more rapidly. Data may be written over the previous cache write, saving a remote write. Poor reliability on a crash.
Docsity.com
17: Distributed File 16
The basic issue is, how to determine that the client-cached data is consistent with what's on the server.
The client asks the server if the cached data is OK. What should be the frequency of "asking"? On file open, at fixed time interval, ...?
Possibilities: A and B both have the same file open. When A closes the file, B "discards" its copy. Then B must start over.
The server is notified on every open. If a file is opened for writing, then disable caching by other clients for that file.
Get read/write permission for each block; then disable caching only for particular blocks.
Docsity.com
17: Distributed File 17
Docsity.com
17: Distributed File 19
Performance is better for stateful.
Fault Tolerance: A stateful server loses everything when it crashes.
Docsity.com
17: Distributed File 20
Replication management should be "location-opaque".
"Demand replication" is like whole-file caching; reading a file causes it to be cached locally. Updates are done only on the primary file at which time all other copies are invalidated.
Docsity.com