Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Dec 2005 08:44:27 -0800 (PST)
From:      Arne Woerner <arne_woerner@yahoo.com>
To:        Nash Nipples <trashy_bumper@yahoo.com>, freebsd-performance@freebsd.org
Subject:   Re: Constraining CPU usage
Message-ID:  <20051202164427.53510.qmail@web30301.mail.mud.yahoo.com>
In-Reply-To: <20051202155333.52155.qmail@web36301.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--- Nash Nipples <trashy_bumper@yahoo.com> wrote:
> It seems i cannot get a clear answer wherther it
> is possible to limit a CPU usage by a user process
> and should i do that at all.
>
Why should somebody want to keep CPU usage of a process below a
certain value (e. g. 20%)?

> As you can see in the figure above, renicing wont work. 
>
Why? Obviously there is no or nearly no other process, that wants
to run, so your "tar" process runs as fast as possible in order to
finish as soon as possible...

Reniceing to a positive nice-value means that this process gets
the processor less often than other processes, who want to run...

> Any hints? What to read? Thank you.
>
You could try idprio(1) against your tar process. That makes sure,
that your tar process waits, when other processes (non idprio
processes) want to run...

-Arne



		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051202164427.53510.qmail>