CS 111 Lecture 14

Ben Harounian, Dana Sadgat, Malavika Ravi

File Systems


File systems have the following criteria that need to be satisfied in order to operate effectively and efficiently:

Organization


Robustness


A Hybrid Data Structure is a file system that lives on RAM and in Disk

Performance


File system performance is achieved through virtual memory

Commit Records


Concept - You are allowed to write data onto the disk, but it doesn't count until "Simon Says" it does. The basic outline is as follows:

Note: Atomicity for a big write is built from many small atomic writes

All-or-Nothing Operations

We create a pattern, from BEGIN to END, which looks atomic at the next higher level:
BEGIN

END

Journaling


When using journaling, we use a different method than in the commit records, namely:

Problems


Could potentially take a long time (if we have a big journal).

We could lose power on reboot!

What if the system does ABORT, then a power failure occurs?

Performance


Journals - 2 Kinds


Performance…again


Valid XHTML 1.1 Valid CSS!