[Bug 601299] [NEW] btrfs fsync() is extremely slow

Launchpad Bug Tracker 601299 at bugs.launchpad.net
Wed Dec 10 20:07:19 UTC 2014


You have been subscribed to a public bug:

Installation and upgrades on btrfs are *extremely* slow.  This is
because dpkg makes extensive fsync() calls to make sure that a power
loss in the middle of an operation does not leave the system in a broken
state.  These calls have a significant performance penalty on other
filesystems ( such as ext[234] ), but on btrfs, the penalty is multiple
orders of magnitude.

As a workaround, you can use the eatmydata package/command around dpkg
/apt-get to disable the fsync() calls and restore good performance
during upgrades, at the risk of hosing the system if it crashes.  The
apt-btrfs-snapshot package will have apt make a snapshot before it
begins an upgrade so that if things do go wrong, you can at least roll
back to the snapshot.

** Affects: dpkg (Ubuntu)
     Importance: Low
         Status: Triaged

** Affects: dpkg (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: bot-stop-nagging dpkg filesystem kernel-request-3.2.0-22.35 precise utopic
-- 
btrfs fsync() is extremely slow
https://bugs.launchpad.net/bugs/601299
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to dpkg in Ubuntu.



More information about the foundations-bugs mailing list