public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] May be OT: recommended niceness settings for Portage while using Gnome?
@ 2009-08-21 16:54 James Homuth
  2009-08-21 17:02 ` Paul Hartman
  2009-08-21 17:49 ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 2 replies; 9+ messages in thread
From: James Homuth @ 2009-08-21 16:54 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

I just got Gnome set up completely on a 5-year-old laptop with 512 MB of RAM
running on a P4, and am sort of halfway in the middle of playing with it. In
the process, I'm discovering I still need to install a few things. Just one
problem. I emerge said things, and the system flatlines until such time as
the compilation(s) are done--load is currently sitting at 2.1+. Are there
any make.conf settings I can tweak so that I can still actually use the
system while things compile, or would I be better off setting things to
compile, throwing in a movie, and coming back when they're done? Thanks for
any pointers.

[-- Attachment #2: Type: text/html, Size: 943 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] May be OT: recommended niceness settings for  Portage while using Gnome?
  2009-08-21 16:54 [gentoo-user] May be OT: recommended niceness settings for Portage while using Gnome? James Homuth
@ 2009-08-21 17:02 ` Paul Hartman
  2009-08-21 17:49 ` [gentoo-user] " Nikos Chantziaras
  1 sibling, 0 replies; 9+ messages in thread
From: Paul Hartman @ 2009-08-21 17:02 UTC (permalink / raw
  To: gentoo-user

On Fri, Aug 21, 2009 at 11:54 AM, James Homuth<james@the-jdh.com> wrote:
> I just got Gnome set up completely on a 5-year-old laptop with 512 MB of RAM
> running on a P4, and am sort of halfway in the middle of playing with it. In
> the process, I'm discovering I still need to install a few things. Just one
> problem. I emerge said things, and the system flatlines until such time as
> the compilation(s) are done--load is currently sitting at 2.1+. Are there
> any make.conf settings I can tweak so that I can still actually use the
> system while things compile, or would I be better off setting things to
> compile, throwing in a movie, and coming back when they're done? Thanks for
> any pointers.

I've always set portage niceness to 19 (the maximum) on every Gentoo
system I've ever built and compiling is usually not noticeable at all.
I think in your case the biggest problem would be RAM, since compiling
often uses hundreds of megs at a time.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user]  Re: May be OT: recommended niceness settings for Portage while using Gnome?
  2009-08-21 16:54 [gentoo-user] May be OT: recommended niceness settings for Portage while using Gnome? James Homuth
  2009-08-21 17:02 ` Paul Hartman
@ 2009-08-21 17:49 ` Nikos Chantziaras
  2009-08-21 18:01   ` Arttu V.
                     ` (2 more replies)
  1 sibling, 3 replies; 9+ messages in thread
From: Nikos Chantziaras @ 2009-08-21 17:49 UTC (permalink / raw
  To: gentoo-user

On 08/21/2009 07:54 PM, James Homuth wrote:
>
> I just got Gnome set up completely on a 5-year-old laptop with 512 MB of
> RAM running on a P4, and am sort of halfway in the middle of playing
> with it. In the process, I'm discovering I still need to install a few
> things. Just one problem. I emerge said things, and the system flatlines
> until such time as the compilation(s) are done--load is currently
> sitting at 2.1+. Are there any make.conf settings I can tweak so that I
> can still actually use the system while things compile, or would I be
> better off setting things to compile, throwing in a movie, and coming
> back when they're done? Thanks for any pointers.

Not sure if something changed in recent kernels, but 19 used to be the 
most efficient value since processes running at 19 are considered batch 
jobs.  They get plenty of CPU time due to longer time-slices 
(responsiveness suffers, but you don't care about portage being 
responsive in the first place, so it's optimal.)  So:

   PORTAGE_NICENESS=19

Is best.  However, also very important is "I/O nice".  Setting an ionice 
value of "idle" will result in portage not blocking your other 
applications whey they need to do disk I/O:

   PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"

This needs a kernel newer than 2.6.16 and it has to be configured to use 
the CFQ scheduler.  You know if that's the case if this command:

   zgrep CFQ /proc/config.gz

says:

   CONFIG_IOSCHED_CFQ=y
   CONFIG_DEFAULT_CFQ=y




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Re: May be OT: recommended niceness settings for  Portage while using Gnome?
  2009-08-21 17:49 ` [gentoo-user] " Nikos Chantziaras
@ 2009-08-21 18:01   ` Arttu V.
  2009-08-21 23:58   ` meino.cramer
  2009-08-22 17:06   ` James Homuth
  2 siblings, 0 replies; 9+ messages in thread
From: Arttu V. @ 2009-08-21 18:01 UTC (permalink / raw
  To: gentoo-user

On 8/21/09, Nikos Chantziaras <realnc@arcor.de> wrote:
> However, also very important is "I/O nice".  Setting an ionice
> value of "idle" will result in portage not blocking your other
> applications whey they need to do disk I/O:
>
>    PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"

Yes, as it is a laptop, it's likely to have a slow 5400 RPM disk. I
have a nearly same-spec old laptop (~5.5 yo, P4m 2.2GHz, 256+256MB
RAM), but I haven't had much trouble with portage emerges on it. Only
when something big is due to in the I/O (lots of swapping due to the
small RAM, kernel sources being unpacked, 100+ MB file transfer over
from LAN etc) has there been slowness which has been annoying.

Given the open nature of OP's question I'm also offering
MAKEOPTS="-j1". It's not really that much a "speed optimization" (on
the contrary?), but another way to try to keep the disk I/O and CPU to
yourself -- even if the compiles will take a bit longer on the
background. (And this ionice thing I got to try as well on that old
clunker, thanks for the tip!)

-- 
Arttu V.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user]  Re: May be OT: recommended niceness settings for Portage while using Gnome?
  2009-08-21 17:49 ` [gentoo-user] " Nikos Chantziaras
  2009-08-21 18:01   ` Arttu V.
@ 2009-08-21 23:58   ` meino.cramer
  2009-08-22  0:12     ` Dale
  2009-08-22  0:13     ` Paul Hartman
  2009-08-22 17:06   ` James Homuth
  2 siblings, 2 replies; 9+ messages in thread
From: meino.cramer @ 2009-08-21 23:58 UTC (permalink / raw
  To: gentoo-user

> 
>   PORTAGE_NICENESS=19
> 
> Is best.  However, also very important is "I/O nice".  Setting an 
> ionice value of "idle" will result in portage not blocking your other 
> applications whey they need to do disk I/O:
> 
>   PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
> 
> This needs a kernel newer than 2.6.16 and it has to be configured to 
> use the CFQ scheduler.  You know if that's the case if this command:
> 
>   zgrep CFQ /proc/config.gz
> 
> says:
> 
>   CONFIG_IOSCHED_CFQ=y
>   CONFIG_DEFAULT_CFQ=y
> 

Hi,
where can I set PORTAGE_NICENESS and PORTAGE_IONICE_COMMAND ?

Kind regards,
mcc

-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user]  Re: May be OT: recommended niceness settings for Portage while using Gnome?
  2009-08-21 23:58   ` meino.cramer
@ 2009-08-22  0:12     ` Dale
  2009-08-22  0:13     ` Paul Hartman
  1 sibling, 0 replies; 9+ messages in thread
From: Dale @ 2009-08-22  0:12 UTC (permalink / raw
  To: gentoo-user

meino.cramer@gmx.de wrote:
>>   PORTAGE_NICENESS=19
>>
>> Is best.  However, also very important is "I/O nice".  Setting an 
>> ionice value of "idle" will result in portage not blocking your other 
>> applications whey they need to do disk I/O:
>>
>>   PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
>>
>> This needs a kernel newer than 2.6.16 and it has to be configured to 
>> use the CFQ scheduler.  You know if that's the case if this command:
>>
>>   zgrep CFQ /proc/config.gz
>>
>> says:
>>
>>   CONFIG_IOSCHED_CFQ=y
>>   CONFIG_DEFAULT_CFQ=y
>>
>>     
>
> Hi,
> where can I set PORTAGE_NICENESS and PORTAGE_IONICE_COMMAND ?
>
> Kind regards,
> mcc
>
>   

In your make.conf file. 

Dale

:-)  :-)



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Re: May be OT: recommended niceness settings for  Portage while using Gnome?
  2009-08-21 23:58   ` meino.cramer
  2009-08-22  0:12     ` Dale
@ 2009-08-22  0:13     ` Paul Hartman
  1 sibling, 0 replies; 9+ messages in thread
From: Paul Hartman @ 2009-08-22  0:13 UTC (permalink / raw
  To: gentoo-user

On Fri, Aug 21, 2009 at 6:58 PM, <meino.cramer@gmx.de> wrote:
>
> Hi,
> where can I set PORTAGE_NICENESS and PORTAGE_IONICE_COMMAND ?
>
> Kind regards,
> mcc

In /etc/make.conf



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [gentoo-user]  Re: May be OT: recommended niceness settings for Portage while using Gnome?
  2009-08-21 17:49 ` [gentoo-user] " Nikos Chantziaras
  2009-08-21 18:01   ` Arttu V.
  2009-08-21 23:58   ` meino.cramer
@ 2009-08-22 17:06   ` James Homuth
  2009-08-23  5:19     ` Paul Hartman
  2 siblings, 1 reply; 9+ messages in thread
From: James Homuth @ 2009-08-22 17:06 UTC (permalink / raw
  To: gentoo-user

 

-----Original Message-----
From: news [mailto:news@ger.gmane.org] On Behalf Of Nikos Chantziaras
Sent: August 21, 2009 1:50 PM
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: May be OT: recommended niceness settings for
Portage while using Gnome?

On 08/21/2009 07:54 PM, James Homuth wrote:
>
> I just got Gnome set up completely on a 5-year-old laptop with 512 MB 
> of RAM running on a P4, and am sort of halfway in the middle of 
> playing with it. In the process, I'm discovering I still need to 
> install a few things. Just one problem. I emerge said things, and the 
> system flatlines until such time as the compilation(s) are done--load 
> is currently sitting at 2.1+. Are there any make.conf settings I can 
> tweak so that I can still actually use the system while things 
> compile, or would I be better off setting things to compile, throwing 
> in a movie, and coming back when they're done? Thanks for any pointers.

Not sure if something changed in recent kernels, but 19 used to be the most
efficient value since processes running at 19 are considered batch jobs.
They get plenty of CPU time due to longer time-slices (responsiveness
suffers, but you don't care about portage being responsive in the first
place, so it's optimal.)  So:

   PORTAGE_NICENESS=19

Is best.  However, also very important is "I/O nice".  Setting an ionice
value of "idle" will result in portage not blocking your other applications
whey they need to do disk I/O:

   PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"

This needs a kernel newer than 2.6.16 and it has to be configured to use the
CFQ scheduler.  You know if that's the case if this command:

   zgrep CFQ /proc/config.gz

says:

   CONFIG_IOSCHED_CFQ=y
   CONFIG_DEFAULT_CFQ=y


It does not. I was thinking about upgrading to 2.6.30 anyway, so which
switch would I throw to enable it?




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Re: May be OT: recommended niceness settings for  Portage while using Gnome?
  2009-08-22 17:06   ` James Homuth
@ 2009-08-23  5:19     ` Paul Hartman
  0 siblings, 0 replies; 9+ messages in thread
From: Paul Hartman @ 2009-08-23  5:19 UTC (permalink / raw
  To: gentoo-user

On Sat, Aug 22, 2009 at 12:06 PM, James Homuth<james@the-jdh.com> wrote:
>   CONFIG_IOSCHED_CFQ=y
>   CONFIG_DEFAULT_CFQ=y
>
>
> It does not. I was thinking about upgrading to 2.6.30 anyway, so which
> switch would I throw to enable it?

In menuconfig:

Enable the block layer
- IO Schedulers
-- CFQ I/O Scheduler
-- Default IO Scheduler (CFQ)



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-08-23  5:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-21 16:54 [gentoo-user] May be OT: recommended niceness settings for Portage while using Gnome? James Homuth
2009-08-21 17:02 ` Paul Hartman
2009-08-21 17:49 ` [gentoo-user] " Nikos Chantziaras
2009-08-21 18:01   ` Arttu V.
2009-08-21 23:58   ` meino.cramer
2009-08-22  0:12     ` Dale
2009-08-22  0:13     ` Paul Hartman
2009-08-22 17:06   ` James Homuth
2009-08-23  5:19     ` Paul Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox