1 |
-----Original Message----- |
2 |
From: news [mailto:news@×××××××××.org] On Behalf Of Nikos Chantziaras |
3 |
Sent: August 21, 2009 1:50 PM |
4 |
To: gentoo-user@l.g.o |
5 |
Subject: [gentoo-user] Re: May be OT: recommended niceness settings for |
6 |
Portage while using Gnome? |
7 |
|
8 |
On 08/21/2009 07:54 PM, James Homuth wrote: |
9 |
> |
10 |
> I just got Gnome set up completely on a 5-year-old laptop with 512 MB |
11 |
> of RAM running on a P4, and am sort of halfway in the middle of |
12 |
> playing with it. In the process, I'm discovering I still need to |
13 |
> install a few things. Just one problem. I emerge said things, and the |
14 |
> system flatlines until such time as the compilation(s) are done--load |
15 |
> is currently sitting at 2.1+. Are there any make.conf settings I can |
16 |
> tweak so that I can still actually use the system while things |
17 |
> compile, or would I be better off setting things to compile, throwing |
18 |
> in a movie, and coming back when they're done? Thanks for any pointers. |
19 |
|
20 |
Not sure if something changed in recent kernels, but 19 used to be the most |
21 |
efficient value since processes running at 19 are considered batch jobs. |
22 |
They get plenty of CPU time due to longer time-slices (responsiveness |
23 |
suffers, but you don't care about portage being responsive in the first |
24 |
place, so it's optimal.) So: |
25 |
|
26 |
PORTAGE_NICENESS=19 |
27 |
|
28 |
Is best. However, also very important is "I/O nice". Setting an ionice |
29 |
value of "idle" will result in portage not blocking your other applications |
30 |
whey they need to do disk I/O: |
31 |
|
32 |
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}" |
33 |
|
34 |
This needs a kernel newer than 2.6.16 and it has to be configured to use the |
35 |
CFQ scheduler. You know if that's the case if this command: |
36 |
|
37 |
zgrep CFQ /proc/config.gz |
38 |
|
39 |
says: |
40 |
|
41 |
CONFIG_IOSCHED_CFQ=y |
42 |
CONFIG_DEFAULT_CFQ=y |
43 |
|
44 |
|
45 |
It does not. I was thinking about upgrading to 2.6.30 anyway, so which |
46 |
switch would I throw to enable it? |