Re: Speeding up dpkg, a proposal
On Thu, Mar 3, 2011 at 8:33 AM, Marius Vollmer <marius.vollmer@nokia.com> wrote:
> And in the big picture, all we need is some guarantee that renames are
> comitted in order, and after the content of the file that is being
> renamed. I have the impression that all reasonable filesystems give
> that guarantee now, no?
No, they took shortcuts in the implementation and commit the rename
before the source file.
> Hmm, right. We could keep a list of all files that need fsyncing, and
> then fsync them all just before writing the checkpoint.
Instead of fsync you might want to use the async Linux specific sync options.
--
Olaf
Reply to: