public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nikos Chantziaras <realnc@arcor.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user]  Re: May be OT: recommended niceness settings for Portage while using Gnome?
Date: Fri, 21 Aug 2009 20:49:47 +0300	[thread overview]
Message-ID: <h6mmnn$f1b$1@ger.gmane.org> (raw)
In-Reply-To: <35d301ca2280$142ecc50$6400a8c0@quan>

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




  parent reply	other threads:[~2009-08-21 17:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2009-08-21 18:01   ` [gentoo-user] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h6mmnn$f1b$1@ger.gmane.org' \
    --to=realnc@arcor.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox