Re: Speeding up dpkg, a proposal
On 3/3/2011 1:32 PM, Phillip Susi wrote:
> Don't you mean it MAY be initiated if the cache decides there is enough
> memory pressure? I don't know of any other call besides fsync and
> friends to force the writeback so before that is called, it could ( and
> likely is if you have plenty of memory ) still be sitting in the cache
> and the disk queue idle.
Nevermind, I figured out what you meant. This new
writeback_init/barrier() code that uses sync_file_range. I hadn't seen
that before. That should do quite well for an individual archive, so I
guess the next thing to do is try to get the calls to
tar_deferred_extract() delayed until after multiple archives are unpacked.