Re: suite wide config options?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/01/2011 09:30 PM, Guillem Jover wrote:
> Yes, only dpkg and dselect read configuration files. But then what
> would that option be? The only commonish one is admindir.
I'm adding an option to disable all fsync() family calls. Initially I
added it as a --force-no-syncs option to dpkg, but then realized that
there are many syncs in the lib section used by the other binaries as
well, so they need a way to enable the option. How about an
environment variable? This may fit in well with apt anyhow, as it can
set the variable if it was able to make a btrfs snapshot before it
starts running dpkg et al.
My preliminary testing shows some impressive results. Comparing ext4,
btrfs, stock dpkg, dpkg run with --force-unsafe-io ( set in dpkg.cfg )
dpkg run with libeatmydata, and dpkg with my --force-no-syncs patch so
far, I get the following times for Ubuntu 11.10 install and then
upgrade ( after separate download ):
Stock:
Ext4: 6m23s / 6m46s
btrfs: 13m43s / gave up
- --force-unsafe-io:
Ext4: ( didn't bother )
btrfs: 9m20s / 142m
Libeatmydata:
Ext4: 2m35s / 58s
btrfs: 7m20s / 2m55s
- --force-no-syncs:
Ext4: 7m1s / 4m17s
btrfs: 2m36s / 3m12s
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk6woH8ACgkQJ4UciIs+XuLViQCfY3ccB7NY5KBha+tzVPPu3qNv
0EEAnR6RAsJ3rlZvF0mDoAXCGVFuOEso
=/meh
-----END PGP SIGNATURE-----
Reply to: