Gentoo Archives: gentoo-amd64

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] PORTAGE_NICENESS
Date: Thu, 14 Jun 2007 18:08:07
Message-Id: 5bdc1c8b0706141106i1efde22bh6f14633eb7ebfc8e@mail.gmail.com
In Reply to: Re: [gentoo-amd64] PORTAGE_NICENESS by "Hemmann
1 On 6/14/07, Hemmann, Volker Armin <volker.armin.hemmann@××××××××××××.de> wrote:
2 > On Donnerstag, 14. Juni 2007, Mark Knecht wrote:
3 > > I'm wondering if anyone can recommend a good setting for
4 > > PORTAGE_NICENESS that would allow some compiles in the background
5 > > without drastically effecting MythTV? Or is there some better way to
6 > > do this with other software?
7 > >
8 > > I've fiddled around with renicing mythfrontend but even going to -15
9 > > didn't seem to help that much. Seems better to just make the compiles
10 > > slower and more friendly.
11 > >
12 > > Note that this seems somewhat worse under the newest -rt kernel -
13 > > 2.6.21.4-rt12-cfs-v17. I may need to back up and see if the previous
14 > > one I was running was any better.
15 > >
16 > > Thanks in advance,
17 > > Mark
18 >
19 >
20 > set it to +19
21 >
22 > not only does it free lots of CPU cycles for everybody else, they are
23 > also 'batch scheduled' which should be good for compiling.
24 >
25 > read /usr/src/linux/Documentation/sched-desing.txt
26 >
27 > quote:
28 > - batch scheduling. A significant proportion of computing-intensive tasks
29 > benefit from batch-scheduling, where timeslices are long and processes
30 > are roundrobin scheduled. The new scheduler does such batch-scheduling
31 > of the lowest priority tasks - so nice +19 jobs will get
32 > 'batch-scheduled' automatically. With this scheduler, nice +19 jobs are
33 > in essence SCHED_IDLE, from an interactiveness point of view.
34
35 Thanks Volker.
36
37 so do I actually use "+19"?
38
39 PORTAGE_NICENESS="+19"
40
41 or
42
43 PORTAGE_NICENESS=19
44
45 Thanks,
46 Mark
47 --
48 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] PORTAGE_NICENESS Mike Doty <kingtaco@g.o>