Re: fsync/MAP_SHARED slowdown

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rik van Riel
Date: Thursday, March 20, 2008 - 3:17 pm

On Thu, 20 Mar 2008 13:12:16 -0700
Brian Harring <ferringb@gmail.com> wrote:


The kernel now includes an implicit msync for each fsync.

In short, before the change an fsync would not find all the dirty pages
of the file, because some of the dirty bits might be "hiding" in the
page tables, while the current kernel actually finds those dirty bits
and writes all dirty data to disk.

Would you rather have the fast fsync, or the one that actually writes
all the dirty data to disk? :)

-- 
All Rights Reversed
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
fsync/MAP_SHARED slowdown, Brian Harring, (Thu Mar 20, 1:12 pm)
Re: fsync/MAP_SHARED slowdown, Rik van Riel, (Thu Mar 20, 3:17 pm)