pbuilder performance

Barry Warsaw barry at python.org
Tue Nov 20 22:04:11 UTC 2012


On Nov 17, 2012, at 07:10 PM, Dmitrijs Ledkovs wrote:

>eatmydata - reduces IO by faking fsync which speeds up dpkg install a
>lot (note this may result in e.g. test-suite failures which rely on
>fsync)

I've used this occasionally, though it's not part of my (already fast enough)
build environment.

>apt-cacher-ng starts a local proxy on your machine, which can be used
>as an apt-proxy or even as a "full" mirror, if it doesn't have
>packages cached it simply gets them over the network. For a common set
>of regular builds that greatly speeds up things.

+1

>use sbuild, it's faster. there is a handy mk-sbuild utility in
>ubuntu-dev-tools that can create schroots for you (it even has a handy
>eatmydata option).

+1

sbuild has a lot of other great benefits, including very easy configuration
for dropping into the chroot when builds fail (and w/configuration, even when
they succeed).  Also, the buildds use a modified version of sbuild, so this
does supposedly get you closer to the environment packages are actually built
on.

This is the page I usually recommend for creating an sbuild setup.  You
generally don't need the UMT instructions.

https://wiki.ubuntu.com/SecurityTeam/BuildEnvironment

You might also find this page useful:

http://www.wefearchange.org/2011/09/sbuild-with-local-newer-dependencies.html

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20121120/c232b9b6/attachment.sig>


More information about the Ubuntu-devel-discuss mailing list