Download presentation
Presentation is loading. Please wait.
1
Consistency in NFS and AFS
2
Network File System (NFS) Uses client caching to reduce network load Built on top of RPC Server cache: X Client A cache: XClient B cache: X
3
NFS Weak Consistency Protocol Write-through caching: A write updates the server immediately Other clients poll the server periodically for changes No guarantees for multiple writers
4
Andrew File System (AFS) Developed at CMU Design principles –Files are cached on each client’s disks NFS caches only in clients’ memory –Callbacks: The server records who has the copy of a file –Write-back cache on file close. The server then tells all clients that own an old copy. –Session semantics: Updates are only visible on close
5
NFS Summary + Simple and highly portable - May become inconsistent sometimes –Does not happen very often
6
AFS Illustrated Server cache: X Client AClient B
7
AFS Illustrated Server cache: X Client AClient B read X callback list of X client A
8
AFS Illustrated Server cache: X Client A cache: XClient B read X callback list of X client A
9
AFS Illustrated Server cache: X Client A cache: XClient B read X callback list of X client A
10
AFS Illustrated Server cache: X Client A cache: XClient B read X callback list of X client A client B
11
AFS Illustrated Server cache: X Client A cache: XClient B cache: X read X callback list of X client A client B
12
AFS Illustrated Server cache: X Client A cache: XClient B cache: X write X, X X
13
AFS Illustrated Server cache: X Client A cache: XClient B cache: X close X X X
14
AFS Illustrated Server cache: X Client A cache: XClient B cache: X close X X X
15
AFS Illustrated Server cache: X Client A cache: XClient B cache: X close X
16
AFS Illustrated Server cache: X Client A cache: XClient B cache: X open X X
17
AFS Illustrated Server cache: X Client A cache: XClient B cache: X open X X
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.