[lkml]   [2009]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Ext4 and the "30 second window of death"
On Tuesday 31 March 2009 14:25:40 Theodore Tso wrote:
> On Sun, Mar 29, 2009 at 12:24:21PM +0200, Alberto Gonzalez wrote:
> > Hi,
> >
> > - I use Ext4 as my filesystem (default in next Fedora release).
> Fedora will have the patches so that applications that do
> replace-via-truncate (a bad idea, these applications are buggy, and
> will lose data sometimes even with ext3), or replace-via-rename
> without the fsync(), will force the blocks out to disk with the
> commit.
> > - Let's say I've been working on my book for the last 14 months and I've
> > written about 400 pages on an ODF file.
> Openoffice, being a portable application, that has to work on other
> operating systems and filesystems (for example, like Solaris's UFS),
> does do open/write/close/fsync/rename. So you're safe if you're using
> OpenOffice (and emacs, and vim).

Ah, good to know, that's quite a relief for normal users like me who were
getting lost with this discussion. But one other doubt:

You've proposed that in laptop mode, fsync's should be held until next write
cycle (say every 30 seconds) so that the disk is not spun up unnecessarily,
wasting battery and shortening it's lifespan too. I absolutely agree with
this, and as a trade-off I'm ok with losing my last paragraph even if I did hit
Ctrl+S to save it a few seconds before a crash. But again, with Ext4 will I
just lose that last paragraph or the whole book in this case?


> Best regards,
> - Ted

 \ /
  Last update: 2009-03-31 14:55    [W:0.125 / U:3.504 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site