On Wed, 2005-12-28 at 13:04 +0100, Johannes Fahrenkrug wrote:
> I put a "nice -n 19" in front of the tar, rsync and emerge metadata 
> commands because normally calling emerge-webrsync renders my box 
> unusable for 15 to 20 minutes. You still notice a difference when using 
> "nice" but everything seems to be at least noticably smoother than before.

Instead of hardcoding the nice value, use PORTAGE_NICENESS.  Here is how
it is done in revdep-rebuild

# Obey PORTAGE_NICENESS
PORTAGE_NICENESS=$(portageq envvar PORTAGE_NICENESS)
[ ! -z "$PORTAGE_NICENESS" ] && renice $PORTAGE_NICENESS $$ > /dev/null

Regards,
Paul
-- 
gentoo-portage-dev@gentoo.org mailing list

Reply via email to