



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CMPSCI 377 Operating Systems Fall 2005
Lecturer: Emery Berger Scribes: Billy Dean and Zeid Rusan
Last time: Distributed Computing
Today we’re going to learn about Distributed File Systems:
When files are accessed remotely, first the local system calls to get the remote file have to be changed into RPCs (Remote Procedure Calls).
Remote Caching on a Local Disk:
Remote Caching on Local Memory:
Write-through
22-2 Lecture 22: December 8
Write-back:
Cache consistency:
Client initiated consistency checks the consistency at every file access or at given intervals. Server initiated consistency checks the consistency on a timer
Defines a set of Remote Procedure Call operations for remote access to files
NFS changes all requests into RPCs
Tip: In Linux, the /tmp directory is mounted locally. So you can copy files you want to compile into there first to get faster compiles.
Sun’s NFS:
22-4 Lecture 22: December 8
Note: Making Inodes bigger or adding more indirection will give you bigger file capacity, but indirection requires too much hopping.
Unix’s command /fsck is a FS check: It detects and repairs structural problems, etc by marching though the entire disk looking for faults in all the Metadata. It is run after power outages etc But...:
The main problem: We have non-atomic writes which then have to recover.
A solution:
Journaling is great for Metadata.
Schedules periodic compaction, places Inode map to keep track of all locations. You roll back to the last Inode map if something happens.
Examples: ”Sprite” LFS, ReiserFS and X3 File systems: Data is safe and it is faster:
Lecture 22: December 8 22-
LFS structure: