lkml.org 
[lkml]   [2011]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rfc] Ignore Fsync Calls in Laptop_Mode
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


\
 
 \ /
  Last update: 2011-05-27 19:55    [W:0.108 / U:1.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site