CS 537 Notes, Section #24: Unix and DEMOS Disk Allocation


Storage Management: For a given file, how the does OS find the blocks contained in that file? The data structure that decribes the contents of file is generically called a file descriptor. We will see several other names, as we study about file systems.

The file descriptor information has to be stored on disk, so it will stay around even when the OS does not.


UNIX inode layout

The Typical Unix Inode


UNIX inode structure


The Demos File System

Demos was an operating system written especially for high performance systems, originally the Cray 1. Its design continues to influence systems today.

The Demos solution: allocates files contiguously, has more compact file descriptors, uses more CPU time. (refer to contiguous allocation picture in section 26).


Demos File Descriptor Structure

Even if it is possible to allocate in groups, how do you know when to do it? Use past history: if file is already big, it will probably get bigger.



Copyright © 1997, 2002, 2008 Barton P. Miller
Non-University of Wisconsin students and teachers are welcome to print these notes their personal use. Further reproduction requires permission of the author.