The document discusses different techniques for managing free space in a file system: linked list, grouping, bit vector, and counting. A linked list tracks individual free blocks. Grouping stores multiple block addresses in each list node. A bit vector uses an array of bits where each bit represents a disk block. Counting stores the starting block and number of free blocks in each cluster. The techniques vary in space efficiency, ability to find contiguous free blocks, and overhead.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
193 views19 pages
Free Space Management
The document discusses different techniques for managing free space in a file system: linked list, grouping, bit vector, and counting. A linked list tracks individual free blocks. Grouping stores multiple block addresses in each list node. A bit vector uses an array of bits where each bit represents a disk block. Counting stores the starting block and number of free blocks in each cluster. The techniques vary in space efficiency, ability to find contiguous free blocks, and overhead.
Exercise • What will be size of the bit vector, considering the following parameters: – Disk size: 100 GB – Block size: 4 KB Solution # of blocks: 100 * 1024 * 1024 KB / 4 KB = 25 * 1024 * 1024
Size of bit vector: 25 * 1024 * 1024 bits
= (25 * 1024 * 1024) / 8 bytes = 3.12 MB Counting • Each entry of the free-list provides information about a cluster of free blocks
• An entry contains two integers: starting block
no, and no of free blocks Counting ... • Counting is better than bit-vector when free blocks are available in the form of large clusters
• (Exercise in the online session)
A Note about FAT • There is no need to use a separate free-list