linux-nilfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Garbage Collection Method
@ 2012-01-26 13:08 Gordan Bobic
       [not found] ` <4F215039.4000904-UpbECiGlrmGsTnJN9+BGXg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Gordan Bobic @ 2012-01-26 13:08 UTC (permalink / raw)
  To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

Hi,

Quick question about the garbage collector and what it reclaims and in 
what order.

1) Does it scan blocks from the tail of the file system forward 
sequentially?

2) Does it reclaim blocks regardless of how dirty they are? Or does it 
execute reclaiming on order of maximum dirtyness first in order to 
reduce churn (and flash wear when used on flash media)?

3) What happens when it encounters a block that isn't dirty? Does it 
skip it and reclaim the next dirty block, leaving a "hole"? Or does it 
reclaim everything up to a reclaimable block to make the free space 
contiguous?

4) Assuming this isn't already how it works, how difficult would it be 
to modify the reclaim policy (along with associated book-keeping 
requirements) to reclaim blocks in the order of dirtiest-block-first?

5) If a suitable book-keeping bitmap was in place for 4), could this not 
be used for accurate df reporting?

TIA.

Gordan
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-27 19:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-26 13:08 Garbage Collection Method Gordan Bobic
     [not found] ` <4F215039.4000904-UpbECiGlrmGsTnJN9+BGXg@public.gmane.org>
2012-01-27 16:00   ` Christian Smith
     [not found]     ` <20120127160004.GK750-Ng8wz+J301SNY5Lh21HnMTHS2PGA244I9dF7HbQ/qKg@public.gmane.org>
2012-01-27 16:26       ` Gordan Bobic
     [not found]         ` <4F22D02F.1060208-UpbECiGlrmGsTnJN9+BGXg@public.gmane.org>
2012-01-27 18:47           ` Christian Smith
     [not found]             ` <20120127184759.GM750-Ng8wz+J301SNY5Lh21HnMTHS2PGA244I9dF7HbQ/qKg@public.gmane.org>
2012-01-27 19:28               ` Gordan Bobic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).