[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Speeding up dpkg, a proposal



Hi,

On Thursday 03,March,2011 12:02 AM, Marius Vollmer wrote:
> [...]
> - Instead, we move all packages that are to be unpacked into
>   half-installed / reinstreq before touching the first one, and put a
>   big sync() right before carefully writing /var/lib/dpkg/status.

Could we somehow avoid using sync()? sync() syncs all mounted filesystems, which
isn't exactly very friendly when you have a few slow-syncing filesystems like
btrfs (or even NFS) mounted. I recall my schroots that ran on tmpfs unpacking
exceptionally slowly due to this issue until I stuck libeatmydata (or a variant
of it) onto the schroots' dpkgs.

I actually recall there being some things mentioned about FS_IOC_SYNCFS (lkml
thread[1], dpkg-devel thread[2]) for faster per-filesystem syncing, but that
seems to have died of natural causes last year.

> [...]


[1] http://thread.gmane.org/gmane.linux.file-systems/44628
[2] http://lists.debian.org/debian-dpkg/2010/11/msg00069.html

-- 
Kind regards,
Loong Jin

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: