FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 05-29-2012, 11:03 PM
Farkas Levente
 
Default how to speed up mock

hi,
i've to ask it again what i already asked a few times. is there any way
to speed up mock build?
here is a simple example when i build gstreamer-plugins-bad-free on
rhel-6.2:
-----------------------
2012-05-30 00:45:24,367 - Mock Version: 1.1.22
2012-05-30 00:45:24,377 - State Changed: unpacking root cache
2012-05-30 00:45:27,610 - State Changed: cleaning yum metadata
2012-05-30 00:45:27,639 - State Changed: running yum
2012-05-30 00:45:30,914 - State Changed: unlock buildroot
2012-05-30 00:45:31,026 - State Changed: setup
2012-05-30 00:50:09,980 - State Changed: build
2012-05-30 00:52:34,094 - State Changed: end
-----------------------
as you can see it takes about 5 minutes to setup the buildroot
environment, while it takes 2.5 minutes to build it. so it's still 2
times more the extra stuff compared to the build. even in a case of a
'long' build package (some other package build less then a minutes).

disk space and cache size is not a problem.

any kind of tipp would be welcome.
thanks in advance.
regards.

--
Levente "Si vis pacem para bellum!"
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 05-30-2012, 01:24 AM
Sérgio Basto
 
Default how to speed up mock

On Qua, 2012-05-30 at 01:03 +0200, Farkas Levente wrote:
> hi,
> i've to ask it again what i already asked a few times. is there any way
> to speed up mock build?
> here is a simple example when i build gstreamer-plugins-bad-free on
> rhel-6.2:
> -----------------------
> 2012-05-30 00:45:24,367 - Mock Version: 1.1.22
> 2012-05-30 00:45:24,377 - State Changed: unpacking root cache
> 2012-05-30 00:45:27,610 - State Changed: cleaning yum metadata
> 2012-05-30 00:45:27,639 - State Changed: running yum
> 2012-05-30 00:45:30,914 - State Changed: unlock buildroot
> 2012-05-30 00:45:31,026 - State Changed: setup
> 2012-05-30 00:50:09,980 - State Changed: build
> 2012-05-30 00:52:34,094 - State Changed: end
> -----------------------
> as you can see it takes about 5 minutes to setup the buildroot
> environment, while it takes 2.5 minutes to build it. so it's still 2
> times more the extra stuff compared to the build. even in a case of a
> 'long' build package (some other package build less then a minutes).
>
> disk space and cache size is not a problem.
>
> any kind of tipp would be welcome.
> thanks in advance.
> regards.

mock -r fedora-16-x86_64 --rebuild (...).src.rpm --no-clean


--
Sérgio M. B.

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 05-30-2012, 08:48 AM
Paul Howarth
 
Default how to speed up mock

On 05/30/2012 12:03 AM, Farkas Levente wrote:

hi,
i've to ask it again what i already asked a few times. is there any way
to speed up mock build?
here is a simple example when i build gstreamer-plugins-bad-free on
rhel-6.2:
-----------------------
2012-05-30 00:45:24,367 - Mock Version: 1.1.22
2012-05-30 00:45:24,377 - State Changed: unpacking root cache
2012-05-30 00:45:27,610 - State Changed: cleaning yum metadata
2012-05-30 00:45:27,639 - State Changed: running yum
2012-05-30 00:45:30,914 - State Changed: unlock buildroot
2012-05-30 00:45:31,026 - State Changed: setup
2012-05-30 00:50:09,980 - State Changed: build
2012-05-30 00:52:34,094 - State Changed: end
-----------------------
as you can see it takes about 5 minutes to setup the buildroot
environment, while it takes 2.5 minutes to build it. so it's still 2
times more the extra stuff compared to the build. even in a case of a
'long' build package (some other package build less then a minutes).

disk space and cache size is not a problem.

any kind of tipp would be welcome.


Are you using the tmpfs plugin? That improves things significantly if
you can spare the RAM. Here's the mock config options I use:


config_opts['plugin_conf']['tmpfs_enable'] = True
config_opts['plugin_conf']['tmpfs_opts']['required_ram_mb'] = 4096
config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '2048m'


Paul.
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 03:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org