how to speed up mock?

Clark Williams williams at redhat.com
Mon Jan 18 16:52:05 UTC 2010


On Mon, 18 Jan 2010 18:34:44 +0200
Ville Skyttä <ville.skytta at iki.fi> wrote:

> On Monday 18 January 2010, Clark Williams wrote:
> 
> > 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.
> 
> Many packages already pass %{?_smp_mflags} to make (and pretty much all Fedora 
> packages should, unless there's a problem with it documented in the specfile).  
> So instead of modifying specfiles, one can do something like this in 
> /etc/mock/site-defaults.cfg:
> 
> config_opts['macros']['%_smp_mflags'] = '-j3'
> -- 

Ooooh, I completely forgot about that. Good idea!

Although, I generally use N*2 for build systems (where N == #cores) so
that each core is kept busy.

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/52afab1b/attachment.bin 


More information about the devel mailing list