how to speed up mock?

Clark Williams williams at redhat.com
Mon Jan 18 16:22:03 UTC 2010


On Mon, 18 Jan 2010 15:38:56 +0100
Farkas Levente <lfarkas at lfarkas.org> wrote:

> hi,
> we use mock for local package build, but it's very slow. now we install 
> a new host just for mock with 8core, ram disks etc. it seems it still 
> slow. first of all most of the time mock use only one 1 core of the cpu. 
> is there any way to speed up different part of the mock build process?
> thanks in advance.

If you're seeing long times setting up chroots, make sure you're not
disabling the root-caching logic. Once it creates a chroot and tars it
up, setup times go from minutes to seconds. 

If package build times are your problem, you may want to modify the
make command used by the specfiles. Mock just does what the specfile
says to do (i.e. it just does an rpmbuild), so you might want to add a
'-j16' to the make command line to tell make to manage 16 parallel
builds. 

Clark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20100118/9438a90c/attachment.bin 


More information about the devel mailing list