Re: Ext4 and the "30 second window of death"

From: Matthew Garrett
Date: Wed Apr 01 2009 - 11:12:40 EST


On Wed, Apr 01, 2009 at 06:20:50AM +0100, Sitsofe Wheeler wrote:

> Just out of curiosity, when laptop mode is happening is there a
> guarantee that writes to other files won't be reordered to before the
> fsync?

laptop-mode does two things - tweak the dirty page semantics slightly
(not in an interestingly relevant way) and call sys_sync() a few seconds
after something hits disk rather than cache. In contrast to Ted's
suggestion that laptop-mode reduces data integrity, it actually enhances
it by opportunistically ensuring that data hits disk. It's the
lengthening of the commit intervals that usually accompanies it that
increases the risk of data loss.

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/