Grokking the System Design Interview, Volume II
Vote

0% completed

​

Garbage Collection

When a file is deleted in GFS, its storage is not freed right away. This lesson looks at how GFS reclaims that space through garbage collection, and why it chooses to wait.

Garbage collection through lazy deletion

GFS does not reclaim a deleted file's physical space right away. Instead, GFS follows a lazy deletion strategy. It marks the data for removal now, and lets a background process free it later. Waiting like this buys two things. A mistaken delete stays recoverable for a while. The master can also fold storage reclamation into work it already does.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content