From: eroen <eroen@falcon.eroen.eu>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: --jobs is ignored for unmerging?
Date: Fri, 21 Feb 2014 15:56:17 +0100 [thread overview]
Message-ID: <20140221155617.3c6f81f0@falcon.eroen.eu> (raw)
In-Reply-To: <le7muq$vo0$1@ger.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1537 bytes --]
On Fri, 21 Feb 2014 16:14:00 +0200, Nikos Chantziaras
<realnc@gmail.com> wrote:
> I recently needed to unmerge Netbeans and KDE from a machine. So
> removed the top-level packages of those, and then ran:
>
> emerge -a --depclean --jobs 20
>
> However, "--jobs" is being ignored. So I'm sitting there, watching
> hundreds of packages being unmerged one by one, taking a long time :-/
>
> Is this normal? Shouldn't the --jobs option result in emerge
> unmerging multiple packages at the same time?
>
From emerge(1)[1]:
-j [JOBS], --jobs[=JOBS]
Specifies the number of packages to build
simultaneously. (...)
In the past, unmerging was almost entirely IO bound, and running
several in parallel would have (at best) no significant speedup. I
suspect the (fairly recent) preserve-libs feature and detection of
unmodified configuration files introduced some cpu-intensive parts,
which might be parallelizeable to some extent if you sacrifice some of
the recoverability of an aborted unmerge.
If you can benchmark low IO utilization during unmerges, I suggest you
open a feature request bug on <bugs.gentoo.org> requesting parallel
unmerge. :-)
In the mean time, you might be able to speed the process up somewhat by
setting FEATURES="-merge-sync" in the environment when you do unmerges.
(see make.conf(5)[2])
1: https://dev.gentoo.org/~zmedico/portage/doc/man/emerge.1.html
2: https://dev.gentoo.org/~zmedico/portage/doc/man/make.conf.5.html
--
eroen
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
next prev parent reply other threads:[~2014-02-21 14:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-21 14:14 [gentoo-user] --jobs is ignored for unmerging? Nikos Chantziaras
2014-02-21 14:56 ` eroen [this message]
2014-02-21 21:54 ` Neil Bothwick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140221155617.3c6f81f0@falcon.eroen.eu \
--to=eroen@falcon.eroen.eu \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox