CS FundamentalsHardGATE CS
A log-structured file system (LFS) writes all modifications sequentially to a log. What is its main background cost?
- A. Seeking for every small write
- B. Rebuilding the FAT after each write
- C. Segment cleaning (garbage collection) to reclaim space held by obsolete blocks
- D. It cannot store directories
Correct answer: C. Segment cleaning (garbage collection) to reclaim space held by obsolete blocks
LFS turns random writes into sequential ones, but live data scattered in old segments must be copied forward to free whole segments; cleaning cost grows with disk utilisation. SSD FTLs face the same issue.
More Operating Systems questions
- Why do SSDs need the TRIM command and wear levelling, unlike hard disks?
- For an SSD, which disk-scheduling algorithm is usually chosen by the OS (e.g. Linux 'none' or 'noop'), and why?
- A RAID 5 array of 5 disks loses one disk. During the rebuild, which statement is correct?
- An inode stores the file size, block pointers, permissions, owner and timestamps. Which of these is NOT stored in the inode in a classic…
- A directory has 3 entries named a, b and c that are hard links to the same inode, and the directory itself has 2 subdirectories. What are…
- Which statement about mounting is correct?