Re: [rfc] Ignore Fsync Calls in Laptop_Mode
From: david
Date: Fri May 27 2011 - 13:52:29 EST
On Fri, 27 May 2011, Theodore Tso wrote:
If you are willing to rewrite the *entire* database to a completely new file each
time you want to write out some data, and only delete the old database
once the new database has been written out, then you're fine. If the file is too
big you can delay the time period between a complete writeout of the
database. But then if you drop your laptop and the battery slips out, you'll
lose more data. Life is full of tradeoffs.
actually, even in this case don't you need a barrier or fsync to make sure
the new file is completely written before the old file goes away?
David Lang
--
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/