linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* checkpoints to often
@ 2011-03-31 14:30 krzf83@gmail.com 
  2011-03-31 14:35 ` Chris Mason
  0 siblings, 1 reply; 2+ messages in thread
From: krzf83@gmail.com  @ 2011-03-31 14:30 UTC (permalink / raw)
  To: linux-btrfs

There should be a way to make automatic checkpoints less frequent. On
the busy ssd I have about 7 cp every second. If it were for example
once every 5 minutes then one could set garbage removal every few
days.
Also garbage removal should have option to clean only if like 90% of
drive is used. there is no need to remove cp-s when there is still
many GB of space left.

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

* Re: checkpoints to often
  2011-03-31 14:30 checkpoints to often krzf83@gmail.com 
@ 2011-03-31 14:35 ` Chris Mason
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Mason @ 2011-03-31 14:35 UTC (permalink / raw)
  To: krzf83@gmail.com; +Cc: linux-btrfs

Excerpts from krzf83@gmail.com's message of 2011-03-31 10:30:51 -0400:
> There should be a way to make automatic checkpoints less frequent. On
> the busy ssd I have about 7 cp every second. If it were for example
> once every 5 minutes then one could set garbage removal every few
> days.
> Also garbage removal should have option to clean only if like 90% of
> drive is used. there is no need to remove cp-s when there is still
> many GB of space left.

I'm wondering how you're measuring check points?  Btrfs does a
transaction commit ever 30 seconds, so finding 7 commits per second
seems strange.

We do have a lighter weight commit that is done for fsyncs, but this is
not a full check point.

There's no garbage removal in btrfs, we use reference counting instead
of a traditional log structured design.

-chris

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

end of thread, other threads:[~2011-03-31 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-31 14:30 checkpoints to often krzf83@gmail.com 
2011-03-31 14:35 ` Chris Mason

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).