Okay, quick and dirty workaround that proves its an fsync issue:
//nosync.c:
void sync() { }
int fsync(int fildes) { return 0; }
//build it:
gcc -shared -fPIC -O2 -g nosync.c -o /usr/local/lib/libnosync.so
//use it as preload with dpkg/apt
LD_PRELOAD=/usr/local/lib/libnosync.so apt-get install $package
dpkg should work 'rather' quickly now
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/607632
Title:
DPKG is very slow when using BTRFS
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs