From: "James Homuth" <james@the-jdh.com>
To: <gentoo-user@lists.gentoo.org>
Subject: RE: [gentoo-user] Re: May be OT: recommended niceness settings for Portage while using Gnome?
Date: Sat, 22 Aug 2009 13:06:17 -0400 [thread overview]
Message-ID: <3b7c01ca234a$dd9d8340$6400a8c0@quan> (raw)
In-Reply-To: <h6mmnn$f1b$1@ger.gmane.org>
-----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?
next prev parent reply other threads:[~2009-08-22 17:05 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 ` [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 [this message]
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='3b7c01ca234a$dd9d8340$6400a8c0@quan' \
--to=james@the-jdh.com \
--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