On 11/24/2010 09:46 AM, Alan Franzoni wrote:
I'm trying to get our koji instance faster; since we build a lot of
packages, we'd like to reduce the latency.
There're some things that usually make mock faster: the options I
tinkered with and seem to improve performance are root_cache,
yum_cache and tmpfs.
All of those are disabled by default when generating mock config
through koji, and there seems no way to override them:
As Jon pointed out, koji is rather paranoid about reproducibility and
avoids certain mock features for that reason.
However, I should point out that mock does support a "site-wide
configuration file" (/etc/mock/site-defaults.cfg). The default site
config for mock does nothing, but you could conceivably set options
there on your builders. A few caveats though:
1) this may be playing with fire a bit
2) you're likely going to damage/break reproducibility
3) you'll want to keep such settings consistent across all your builders.
So here come the questions:
1) Am i missing anything?
2) are all those options intentionally locked out?
3) would a patch which let them be configured be accepted into your git repo?
4) any other way to speedup mock?
As long as you're going down the path of non-reproducibility, you could
also enable the mock ccache plugin in the site config.