Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Richard Freeman <rich0@g.o>
Subject: Re: Managing CPU usage when doing emerges
Date: Mon, 18 May 2009 16:18:47 -0400
Mark Haney wrote:
> Is there another way to use nice, or to fix that problem?  Or another
> way to manage CPU usage during an emerge?
> 

I'll just echo what Duncan said about nice / ionice.  However, you might 
find the impact of ionice -c 3 on compilation is reduced if you use a 
tmpfs for /var/tmp/portage.  Note that depending on what you're building 
you might need a fairly large tmpfs, and it could trigger swapping.

Note also that all your settings for niceness/etc won't impact RAM 
consumption - even a niced emerge is going to eat RAM when building some 
of the more massive packages.

However, I find that I can run almost anything with ionice -c 3 nice -n 
20 <command> and have almost no impact on my system at all.  Conversely, 
I set stuff like the mythtv backend to run with ionice -c 1 so that I 
never drop frames due to recording buffer issues.

Just don't go crazy with it.  If I try to build two copies of firefox 
(chroot and main) while running some java app that consumes 1GB of 
virtual address space, and then try to transcode a video or something 
while recording two videos, having all that stuff set to ionice/nice 
won't be of much help.


Replies:
Re: Managing CPU usage when doing emerges
-- Paul Hartman
References:
Managing CPU usage when doing emerges
-- Mark Haney
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Managing CPU usage when doing emerges
Next by thread:
Re: Managing CPU usage when doing emerges
Previous by date:
Re: Managing CPU usage when doing emerges
Next by date:
Re: Managing CPU usage when doing emerges


Updated Jun 17, 2009

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.