[systemd-devel] [PATCH] [RFCv6] Add sync timer to journal server
lennart at poettering.net
Mon Mar 25 09:02:03 PDT 2013
On Sat, 23.03.13 23:54, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:
> On Sat, Mar 23, 2013 at 09:26:59PM +0200, Oleksii Shevchuk wrote:
> > > > Add option to force journal sync with fdatasync. Disabled by default.
> > > Hi Oleksii,
> > > why is it off by default?
> > Hi Zbyszek,
> > After discussion i am unsure about defaults for that option.
> > Maybe only who cares should enable it?
> IIUC, the point of this patch is to avoid losing the journal after
> a crash during the time when journal is idle. This seems like a
> generally desirable property. So we should make it work (without
> too much overhead) for the majority of
> hardware/logging-intensity/power-saving-rules configurations,
> and enable it by default.
> On IRC Kay suggested 1-5 min. I think that this sounds about right.
> Once the patch is in, I guess we can gather some statistics from
> people and tune the settings.
I'd propose to turn it on, and set it to a conservative value, otherwise
people might wine too quickly reagrding spinning up hard disks... 5min
or 10min sounds OK.
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel