From: "Mike Audia" <mikey_a@gmx.com>
To: dsterba@suse.cz, "Zach Brown" <zab@redhat.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Is the checkpoint interval adjustable?
Date: Fri, 02 Aug 2013 16:58:42 -0400 [thread overview]
Message-ID: <20130802205842.157580@gmx.com> (raw)
> From: David Sterba
> There were a few requests to tune the interval. This finally made me to
> finish the patch and will send it in a second.
Thank you, David and to others who kindly replied to my post. I will try your patch rather than modifying the code
> > > Are there any unforeseen and effects of doing this? Thank you for
> > > the consideration.
> >
> > I don't *think* that there should be. One way of looking at it is that
> > both 30 and 300 seconds are an *eternity* for cpu, memory, and storage.
> > Any trouble that you could get in to in 300 seconds some other machine
> > could trivially get in to in 30 with beefier hardware.
>
> That's a good point and lowers my worries a bit, though it would be
> interesting to see in what way a beefy machine blows with 300 seconds
> set.
I have my system booting to a BTRFS root partition. Let's say I'm using a value of 300 for my checkpoint interval. Does this mean that if I do a TON of filesystem writes (say I update my system which pulls down a bunch of system file updates for example), and I copy over several gigs of data from a backup, all _between_ checkpoints and for some reason, my system freezes forcing me to ungracefully restart... is EVERYTHING since the last checkpoint is lost? Upon a reboot, will BTRFS just mount up to the last good checkpoiint automatically or will I have a broken system and need to add the `-o recovery` option while I mount it manualy from a chroot?
Another naive question: if I shutdown the system between checkpoints, systemd should umount my partitions. Does the syncing of cached data occur after the graceful umount?
next reply other threads:[~2013-08-02 20:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-02 20:58 Mike Audia [this message]
2013-08-03 8:33 ` Is the checkpoint interval adjustable? Duncan
-- strict thread matches above, loose matches on Subject: below --
2013-07-31 22:10 Mike Audia
2013-07-31 22:56 ` Zach Brown
2013-08-01 15:40 ` David Sterba
2013-08-01 17:59 ` Zach Brown
[not found] ` <20130731225640.GO32145@lenny. home.zabbo.net>
2013-08-01 3:11 ` Duncan
2013-07-31 20:02 Mike Audia
2013-07-31 20:54 ` Zach Brown
2013-08-03 17:28 ` Kai Krakow
2013-08-03 17:37 ` Torbjørn
2013-08-04 0:58 ` Kai Krakow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130802205842.157580@gmx.com \
--to=mikey_a@gmx.com \
--cc=dsterba@suse.cz \
--cc=linux-btrfs@vger.kernel.org \
--cc=zab@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.