All of lore.kernel.org
 help / color / mirror / Atom feed
* BTRFS in laptop-mode
@ 2013-05-14  8:32 Adam Ryczkowski
  2013-05-14 13:23 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Ryczkowski @ 2013-05-14  8:32 UTC (permalink / raw)
  To: linux-btrfs

Welcome,

What are perspectives on BTRFS complying with laptop-mode and stop 
writing to disk every 30 sec?

The thread was asked several years before 
(http://mailman.samwel.tk/pipermail/laptop-mode/2012-February/000520.html), 
but time went by and maybe the situation became a little more on the 
bright side...? With kernel 3.8.11 I can still see with lm-profiler a 
lot of "btrfs-transacti" and ""btrfs-submit-1" events, roughly once 
every 30 sec.

Is there any tunable switch, that can delay such writes to, say, 15 
minutes, or better yet: until the disk started spinning anyway?

-- 

Adam Ryczkowski
+48505919892 <callto:+48505919892>
Skype:sisteczko <skype:sisteczko>


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

* Re: BTRFS in laptop-mode
  2013-05-14  8:32 BTRFS in laptop-mode Adam Ryczkowski
@ 2013-05-14 13:23 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2013-05-14 13:23 UTC (permalink / raw)
  To: Adam Ryczkowski; +Cc: linux-btrfs

On Tue, May 14, 2013 at 10:32:43AM +0200, Adam Ryczkowski wrote:
> What are perspectives on BTRFS complying with laptop-mode and stop writing
> to disk every 30 sec?

> Is there any tunable switch, that can delay such writes to, say, 15 minutes,
> or better yet: until the disk started spinning anyway?

30 seconds is the regular transaction commit interval. Tweaking the
value is easy (via a mount option to make it clearly visible):

http://lxr.free-electrons.com/source/fs/btrfs/disk-io.c#L1691

but has implications about data safety in case of a long delay in
combination with a crash.


david

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

end of thread, other threads:[~2013-05-14 13:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-14  8:32 BTRFS in laptop-mode Adam Ryczkowski
2013-05-14 13:23 ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.