how to speed up mock?

Farkas Levente lfarkas at lfarkas.org
Sun Apr 3 12:38:53 UTC 2011


On Sun, Apr 3, 2011 at 14:17, Harald Hoyer <harald.hoyer at gmail.com> wrote:
> Am 03.04.11 13:17, schrieb Remi Collet:
>> Le 03/04/2011 12:31, Farkas Levente a écrit :
>>
>>>>>> the real bottleneck is not the rpmbuild itself (with ccache it cab be
>>>>>> very fast), but the mock surroundings. suppose there is build which
>>>>>> takes about 2 minutes and in mock it takes about 5 minutes:-(
>>
>> I use for a while a full /dev/shm mock configuration which is really
>> fast (minimum overhead of ~10"), read:
>>
>> http://blog.famillecollet.com/post/2011/01/11/new-builder-new-mock-configuration
>>
>> Of course I need a big /dev/shm (6Gio here)
>>
>> Remi.
>
> config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc14x/"
>
> Oh.. /dev/shm is the wrong place here, I think... Should better be /tmp
> with a tmpfs mounted on.

may be some kind of docs for mock config would be useful for everyone...


-- 
  Levente                               "Si vis pacem para bellum!"


More information about the devel mailing list