lkml.org 
[lkml]   [2009]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
FromNick Piggin <>
SubjectRe: Ext4 and the "30 second window of death"
DateFri, 3 Apr 2009 05:56:40 +1100
On Friday 03 April 2009 05:38:34 Matthew Garrett wrote:
> On Fri, Apr 03, 2009 at 05:34:59AM +1100, Nick Piggin wrote:
>
> > Shouldn't applications have a mode to avoid spinning up the disk if it is
> > so important?
>
> They do. It's called "Don't use fsync() unless your data needs to be on
> disk". I'm not sure why you'd ever want an application to be in anything
> but this mode.
>

Well you might decide you are willing to sacrifice timely storage of
logs, or reducing backups in your editor or something. But obviously
the kernel can't decide which of those fsyncs is safe to omit (or
turn into a barrier) while staying within the advertised semantics of
the app. Application obviously can.



\
 
 \ /
  Last update: 2009-04-02 20:59    [from the cache]
©2003-2010