CSE 451: Operating Systems Winter Module 22 Distributed File Systems

Slides:



Advertisements
Similar presentations
CS-550: Distributed File Systems [SiS]1 Resource Management in Distributed Systems: Distributed File Systems.
Advertisements

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
1DT057 DISTRIBUTED INFORMATION SYSTEM DISTRIBUTED FILE SYSTEM 1.
Consistency in NFS and AFS. Network File System (NFS) Uses client caching to reduce network load Built on top of RPC Server cache: X Client A cache: XClient.
File System Implementation
Other File Systems: LFS and NFS. 2 Log-Structured File Systems The trend: CPUs are faster, RAM & caches are bigger –So, a lot of reads do not require.
Distributed File SystemsCS-502 Fall Distributed File Systems CS-502 Operating Systems Fall 2006 (Slides include materials from Operating System Concepts,
NFS. The Sun Network File System (NFS) An implementation and a specification of a software system for accessing remote files across LANs. The implementation.
University of Pennsylvania 11/21/00CSE 3801 Distributed File Systems CSE 380 Lecture Note 14 Insup Lee.
CSE 451: Operating Systems Spring 2012 Module 23 Distributed File Systems Ed Lazowska Allen Center 570.
Distributed File SystemsCS-4513, D-Term Distributed File Systems CS-4513 Distributed Computing Systems (Slides include materials from Operating System.
File Systems (2). Readings r Silbershatz et al: 11.8.
Distributed File Systems Sarah Diesburg Operating Systems CS 3430.
Distributed File Systems Concepts & Overview. Goals and Criteria Goal: present to a user a coherent, efficient, and manageable system for long-term data.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Distributed File Systems Steve Ko Computer Sciences and Engineering University at Buffalo.
Distributed File Systems 1 CS502 Spring 2006 Distributed Files Systems CS-502 Operating Systems Spring 2006.
Distributed Systems. Interprocess Communication (IPC) Processes are either independent or cooperating – Threads provide a gray area – Cooperating processes.
Distributed File Systems
1DT057 DISTRIBUTED INFORMATION SYSTEM DISTRIBUTED FILE SYSTEM 1.
Chapter 20 Distributed File Systems Copyright © 2008.
What is a Distributed File System?? Allows transparent access to remote files over a network. Examples: Network File System (NFS) by Sun Microsystems.
Introduction to DFS. Distributed File Systems A file system whose clients, servers and storage devices are dispersed among the machines of a distributed.
Distributed File SystemsCS-502 Fall Distributed File Systems CS-502 Operating Systems (Slides include materials from Operating System Concepts, 7.
Presented By: Samreen Tahir Coda is a network file system and a descendent of the Andrew File System 2. It was designed to be: Highly Highly secure Available.
ITEC 502 컴퓨터 시스템 및 실습 Chapter 11-2: File System Implementation Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
Sun Network File System Presentation 3 Group A4 Sean Hudson, Syeda Taib, Manasi Kapadia.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition File System Implementation.
GLOBAL EDGE SOFTWERE LTD1 R EMOTE F ILE S HARING - Ardhanareesh Aradhyamath.
Distributed File Systems Group A5 Amit Sharma Dhaval Sanghvi Ali Abbas.
Chapter Five Distributed file systems. 2 Contents Distributed file system design Distributed file system implementation Trends in distributed file systems.
1 Section 9: Project 3 – The Buffer Cache Network File Systems.
DISTRIBUTED FILE SYSTEMS
Distributed File Systems
File System Implementation
Chapter 12: File System Implementation
NFS and AFS Adapted from slides by Ed Lazowska, Hank Levy, Andrea and Remzi Arpaci-Dussea, Michael Swift.
CSE 451: Operating Systems Winter 2006 Module 20 Remote Procedure Call (RPC) Ed Lazowska Allen Center
IT344 – Operating Systems Winter 2011, Dale Rowe.
Outline Midterm results summary Distributed file systems – continued
Today: Coda, xFS Case Study: Coda File System
Multiple Processor Systems
CSE 451: Operating Systems Winter Module 22 Distributed File Systems
Chapter 11: File System Implementation
CSE 451: Operating Systems Winter 2007 Module 20 Remote Procedure Call (RPC) Ed Lazowska Allen Center
CSE 451: Operating Systems Spring 2005 Module 20 Distributed Systems
CSE 451: Operating Systems Autumn Module 22 Distributed File Systems
Distributed File Systems
DISTRIBUTED FILE SYSTEMS
Distributed File Systems
Exercises for Chapter 8: Distributed File Systems
CSE 451: Operating Systems Winter 2004 Module 19 Remote Procedure Call (RPC) Ed Lazowska Allen Center
CSE 451: Operating Systems Spring Module 21 Distributed File Systems
DESIGN AND IMPLEMENTATION OF THE SUN NETWORK FILESYSTEM
Distributed File Systems
CSE 451: Operating Systems Autumn 2009 Module 21 Remote Procedure Call (RPC) Ed Lazowska Allen Center
Multiple Processor and Distributed Systems
CSE 451: Operating Systems Distributed File Systems
CSE 451: Operating Systems Autumn Module 24 Virtual Machine Monitors
Chapter 15: File System Internals
Today: Distributed File Systems
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
Outline Review of Quiz #1 Distributed File Systems 4/20/2019 COP5611.
CSE 451: Operating Systems Winter 2004 Module 19 Distributed Systems
CS703 - Advanced Operating Systems
Distributed File Systems
CSE 451: Operating Systems Autumn Module 22 Distributed File Systems
CSE 451: Operating Systems Autumn 2010 Module 21 Remote Procedure Call (RPC) Ed Lazowska Allen Center
CSE 451: Operating Systems Winter 2007 Module 21 Distributed Systems
Distributed File Systems
Network File System (NFS)
Presentation transcript:

CSE 451: Operating Systems Winter 2004 Module 22 Distributed File Systems Ed Lazowska lazowska@cs.washington.edu Allen Center 570 1

Distributed File Systems The most common distributed services: printing email files Basic idea of distributed file systems: support network-wide sharing of files and devices (disks) Generally provide a “traditional” view – a centralized shared file system – but with a distributed implementation 2/24/2019 © 2004 Ed Lazowska & Hank Levy

© 2004 Ed Lazowska & Hank Levy Issues What is the basic abstraction remote file system? open, close, read, write, … remote disk? read block, write block Naming how are files named? are those names location transparent? is the file location visible to the user? are those names location independent? do the names change if the file moves? do the names change if the user moves? 2/24/2019 © 2004 Ed Lazowska & Hank Levy

© 2004 Ed Lazowska & Hank Levy Caching caching exists for performance reasons where are file blocks cached? on the file server? on the client machine? both? Sharing and coherency what are the semantics of sharing? what happens when a cached block/file is modified how does a node know when its cached blocks are out of date? 2/24/2019 © 2004 Ed Lazowska & Hank Levy

© 2004 Ed Lazowska & Hank Levy Replication replication can exist for performance and/or availability can there be multiple copies of a file in the network? if multiple copies, how are updates handled? what if there’s a network partition and clients work on separate copies? Performance what is the cost of remote operation? what is the cost of file sharing? how does the system scale as the number of clients grows? what are the performance limitations: network, CPU, disks, protocols, data copying? 2/24/2019 © 2004 Ed Lazowska & Hank Levy

Example: SUN Network File System (NFS) The Sun Network File System (NFS) has become a common standard for distributed UNIX file access NFS runs over LANs (even over WANs – slowly) Basic idea: allow a remote directory to be “mounted” (spliced) onto a local directory, giving access to that remote directory and all its descendants as if they were part of the local hierarchy Pretty much exactly like a “local mount” or “link” on UNIX except for implementation and performance … no, we didn’t really learn about these, but they’re obvious  2/24/2019 © 2004 Ed Lazowska & Hank Levy

© 2004 Ed Lazowska & Hank Levy For instance: I mount /u4/lazowska on Node1 onto /students/foo on Node2 users on Node2 can then access this directory as /students/foo if I had a file /usr/lazowska/myfile, users on Node2 see it as /students/foo/myfile Just as, on a local system, I might link /homes/gws/lazowska/www as /u4/lazowska/mywww to allow easy access to my web data from my home directory 2/24/2019 © 2004 Ed Lazowska & Hank Levy

© 2004 Ed Lazowska & Hank Levy NFS implementation NFS defines a set of RPC operations for remote file access: searching a directory reading directory entries manipulating links and directories reading/writing files Every node may be both a client and server 2/24/2019 © 2004 Ed Lazowska & Hank Levy

NFS defines new layers in the Unix file system The virtual file system (VFS) provides a standard interface, using v-nodes as file handles. A v-node describes either a local or remote file. System Call Interface Virtual File System UFS NFS RPCs to other (server) nodes (local files) (remote files) RPC requests from remote clients, and server responses buffer cache / i-node table 2/24/2019 © 2004 Ed Lazowska & Hank Levy

© 2004 Ed Lazowska & Hank Levy NFS caching / sharing On an open, the client asks the server whether its cached blocks are up to date. Once a file is open, different clients can write it and get inconsistent data. Modified data is flushed back to the server every 30 seconds. 2/24/2019 © 2004 Ed Lazowska & Hank Levy

Example: CMU’s Andrew File System (AFS) Developed at CMU to support all of its student computing Consists of workstation clients and dedicated file server machines (differs from NFS) Workstations have local disks, used to cache files being used locally (originally whole files, now 64K file chunks) (differs from NFS) Andrew has a single name space – your files have the same names everywhere in the world (differs from NFS) Andrew is good for distant operation because of its local disk caching: after a slow startup, most accesses are to local disk 2/24/2019 © 2004 Ed Lazowska & Hank Levy

© 2004 Ed Lazowska & Hank Levy AFS caching/sharing Need for scaling required reduction of client-server message traffic Once a file is cached, all operations are performed locally On close, if the file has been modified, it is replaced on the server The client assumes that its cache is up to date, unless it receives a callback message from the server saying otherwise on file open, if the client has received a callback on the file, it must fetch a new copy; otherwise it uses its locally-cached copy (differs from NFS) 2/24/2019 © 2004 Ed Lazowska & Hank Levy

Example: Berkeley Sprite File System Unix file system developed for diskless workstations with large memories at UCB (differs from NFS, AFS) Considers memory as a huge cache of disk blocks memory is shared between file system and VM Files are permanently stored on servers servers have a large memory that acts as a cache as well Several workstations can cache blocks for read-only files If a file is being written by more than 1 machine, client caching is turned off – all requests go to the server (differs from NFS, AFS) 2/24/2019 © 2004 Ed Lazowska & Hank Levy

© 2004 Ed Lazowska & Hank Levy Summary There are a number of issues to deal with: what is the basic abstraction naming caching sharing and coherency replication performance No right answer! Different systems make different tradeoffs! 2/24/2019 © 2004 Ed Lazowska & Hank Levy

© 2004 Ed Lazowska & Hank Levy Performance is always an issue always a tradeoff between performance and the semantics of file operations (e.g., for shared files). Caching of file blocks is crucial in any file system maintaining coherency is a crucial design issue. Newer systems are dealing with issues such as disconnected operation for mobile computers 2/24/2019 © 2004 Ed Lazowska & Hank Levy