CS FundamentalsHardGATE CS

A log-structured file system (LFS) writes all modifications sequentially to a log. What is its main background cost?

  1. A. Seeking for every small write
  2. B. Rebuilding the FAT after each write
  3. C. Segment cleaning (garbage collection) to reclaim space held by obsolete blocks
  4. 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

Exams that ask this topic