diff options
author | David James <davidjames@chromium.org> | 2011-05-06 21:53:31 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-05-07 21:24:57 -0700 |
commit | dffb2901d349a66bdbba30423c358da7c9938e47 (patch) | |
tree | eafa1d54ba2f5326c65900934baba229b9dc924f /bin/quickpkg | |
parent | 8601ea2b80208491b471f37710b35813fd341c28 (diff) | |
download | portage-dffb2901d349a66bdbba30423c358da7c9938e47.tar.gz portage-dffb2901d349a66bdbba30423c358da7c9938e47.tar.bz2 portage-dffb2901d349a66bdbba30423c358da7c9938e47.zip |
Use finer grained locks for install.
Narrow scope of merge locks to improve performance.
Instead of locking the DB for the entire package merge, just lock it
when we actually need to do so. Also add locks around conf_mem_file
updating and pkg_* phases.
Locking in pkg_* phases can be turned off with
FEATURES="no-ebuild-locks" if you use ebuilds that are careful not
to mess with each other during theses phases. The default is to leave
this locking enabled.
Given this new locking, I've improved the scheduler to run merge jobs
in parallel.
Time required for merging 348 packages with --usepkgonly:
- Before patch: 29m50s
- After patch: 10m2s
- After patch w/o locks: 7m9s
Change-Id: I63588c4cc59fa6fe2f8327ea1e4a9e71b241d4fe
Review URL: http://gerrit.chromium.org/gerrit/498
Diffstat (limited to 'bin/quickpkg')
0 files changed, 0 insertions, 0 deletions