Gentoo Archives: gentoo-portage-dev

From: Paul Varner <fuzzyray@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] emerge-webrsync patch
Date: Wed, 28 Dec 2005 16:05:14
Message-Id: 1135785842.25217.2.camel@txslpc1d36.wkst.vzwnet.com
In Reply to: [gentoo-portage-dev] emerge-webrsync patch by Johannes Fahrenkrug
1 On Wed, 2005-12-28 at 13:04 +0100, Johannes Fahrenkrug wrote:
2 > I put a "nice -n 19" in front of the tar, rsync and emerge metadata
3 > commands because normally calling emerge-webrsync renders my box
4 > unusable for 15 to 20 minutes. You still notice a difference when using
5 > "nice" but everything seems to be at least noticably smoother than before.
6
7 Instead of hardcoding the nice value, use PORTAGE_NICENESS. Here is how
8 it is done in revdep-rebuild
9
10 # Obey PORTAGE_NICENESS
11 PORTAGE_NICENESS=$(portageq envvar PORTAGE_NICENESS)
12 [ ! -z "$PORTAGE_NICENESS" ] && renice $PORTAGE_NICENESS $$ > /dev/null
13
14 Regards,
15 Paul
16 --
17 gentoo-portage-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-portage-dev] emerge-webrsync patch Johannes Fahrenkrug <jfa@××××××.de>