DPKG is very slow when using BTRFS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dpkg
Installed using the Maverick daily build from 19th July (32 bit)
UPDATE: Confirmed also in release, both 64 and 32 bit
Installed using a root partition formatted as BTRFS
Noted that DPKG was noticeably slower and took longer for every operation than the same system with an ext4 partition.
UPDATE: ext3, ext2 partitions are roughly the same speed as ext4. Only btrfs is slower.
Examples of slowness include:
* apt-get update takes a very long time, particularly at the end after downloading the package lists
* Installing packages takes 2 to 3 times as long as on ext4/3/2
* Particularly unpacking the deb file, this takes the longest. Basically any IO operations are slower.
tags: | added: dpkg |
tags: | added: btrfs |
Changed in dpkg (Ubuntu): | |
status: | Confirmed → Incomplete |
status: | Incomplete → Opinion |
status: | Opinion → Confirmed |
All the slowness can be attributed to dpkg's use of sync and fsync. I created a PPA that removes those calls, and dpkg is fast again.
https:/ /launchpad. net/~brian- rogers/ +archive/ btrfs
Of course, this takes away safety in the event of a crash or power failure. It'd be a good idea to keep a snapshot around and know how to use the snapshot in case your package database gets corrupted in a crash.