Re: Controlling CPU utilization of a process
- From: rsmanik@xxxxxxxxx
- Date: 6 Dec 2006 05:05:01 -0800
Casper H.S. *** wrote:
rsmanik@xxxxxxxxx writes:
As i told in my previous post, i have an overload protection
mechanism that will be triggered if the idle time is lower than 10 %.
And my process is a low priority one that uses all the CPU time that is
avaliable, hence the idle time plummets to 0. This creates problems as
the overload protection is triggered.
So it's the overload protection which is broken; unfortunately, Solaris
does not at this time give an easy CPU measurement of "niced" programs
(SunOS 4.x would account low priority processes differently)
No, actually it cant be. There has to be a buffer of 10% cpu always
avaliable for incoming calls or higher priority processes. I also
understand that the overload protection is not doing what is actually
expected. But i cant fix it.
Again, my objective is to set an upper limit for the amount of CPU
my process can use.
It seems to me that your problem is *not* the amount of CPU used
by your process, but rather the way in which the system looks at
CPU use. Can the overload protection be rewritten to ignore processes
with a low priority?
The overload protection is out of my scope and has already been
deployed.
Is it really a good idea to let 10% of your CPU cycles (and thus your
compute power/electricity used) go to waste?
I perfectly understand that but cant do anything about it. But
currently it seams that i need to have a work around for that. And that
work around is trying to give a upper limit for cpu usage of my
process.
I know it feels that the overload protection is overdoing its job, but
sadly i cant do anything about it. It is my process that i can do
something about.
- Manik
.
- Follow-Ups:
- Re: Controlling CPU utilization of a process
- From: j . goerke
- Re: Controlling CPU utilization of a process
- References:
- Controlling CPU utilization of a process
- From: rsmanik
- Re: Controlling CPU utilization of a process
- From: Casper H . S . ***
- Re: Controlling CPU utilization of a process
- From: rsmanik
- Re: Controlling CPU utilization of a process
- From: Casper H . S . ***
- Controlling CPU utilization of a process
- Prev by Date: Re: Controlling CPU utilization of a process
- Next by Date: Re: Solaris "format" utility and grown defects
- Previous by thread: Re: Controlling CPU utilization of a process
- Next by thread: Re: Controlling CPU utilization of a process
- Index(es):