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 |