* CPU usage explanation
@ 2003-09-04 3:40 David Gore
[not found] ` <bj6r9p$189$1@Mercury.ev.co.yu>
0 siblings, 1 reply; 3+ messages in thread
From: David Gore @ 2003-09-04 3:40 UTC (permalink / raw)
Could anyone point me to a good description of how the CPU is utilized on a
single processor system running dgux 4.0f?
I have a development manager hounding me because our Big Brother (BB)
scripts are using what he considers an unacceptable amount of CPU, 12-24%
several times in an hour.
I know in general how jobs/processes are scheduled, but am a little unclear
on what it actually means when a process uses a certain percentage of CPU.
If only one process can run on the CPU at a time it would almost seem like
each process would use a 100% and then the next process would use a 100%
since only 1 process can use the CPU at a time? Obviously there are some
other calculations involved in regards to priority and such. The percentage
could be, I am using the CPU 25% of the time in comparison to other
processes?
I aplogize if I missed a FAQ somewhere. If I did please let me know where I
can find it.
From the man page for ps:
This is a decaying average of up to a minute of previous (real) time.
I think I understand that but more detail would be helpful. I am thinking
BB takes 12-24% cpu every now and then, so what. It was available and BB
grabbed the CPU time? Is it reasonable to expect processes to take less
CPU, or as much as they need, if available?
David
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: CPU usage explanation
[not found] ` <bj6r9p$189$1@Mercury.ev.co.yu>
@ 2003-09-05 18:17 ` Udo Grabowski
2003-09-08 5:40 ` Nikola Milutinovic
0 siblings, 1 reply; 3+ messages in thread
From: Udo Grabowski @ 2003-09-05 18:17 UTC (permalink / raw)
Nikola Milutinovic wrote:
> Anything above 90% is almost certain error - a process stuck in an endless
> loop.
No. A process which does nothing else than computing (say, a numerical
simulation program), can have 99.9% or even higher, in fact, a value
below that would indicate a problem with that application! We have parallelized
processes which show 385% CPU (on a 4 CPU ES40 with top). A value below
99% just indicates that the process is waiting for some resource, so the
CPU is not used a portion of the time. This is more usual for system level
services. If you see such processes with 99% for a long time without
interruption, then you may deduce an error condition.
It just depends on what the program was designed to do.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: CPU usage explanation
2003-09-05 18:17 ` Udo Grabowski
@ 2003-09-08 5:40 ` Nikola Milutinovic
0 siblings, 0 replies; 3+ messages in thread
From: Nikola Milutinovic @ 2003-09-08 5:40 UTC (permalink / raw)
"Udo Grabowski" <beanladen@nospam.org> wrote in message
news:3f58d367$0$2337$9b4e6d93@newsread2.arcor-online.net...
> Nikola Milutinovic wrote:
> > Anything above 90% is almost certain error - a process stuck in an
endless
> > loop.
> No. A process which does nothing else than computing (say, a numerical
> simulation program), can have 99.9% or even higher, in fact, a value
> below that would indicate a problem with that application! We have
parallelized
> processes which show 385% CPU (on a 4 CPU ES40 with top). A value below
> 99% just indicates that the process is waiting for some resource, so the
> CPU is not used a portion of the time. This is more usual for system level
> services. If you see such processes with 99% for a long time without
> interruption, then you may deduce an error condition.
> It just depends on what the program was designed to do.
Precisely. The original post was about BigBrother scripts. Since I'm not
familiar with BB, I cannot vouch that it is *not* supposed to be 100%
CPU-bound. However, I'd expect it to be talking to I/O from time to time,
thus reducing CPU load.
Nix.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-09-08 5:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-04 3:40 CPU usage explanation David Gore
[not found] ` <bj6r9p$189$1@Mercury.ev.co.yu>
2003-09-05 18:17 ` Udo Grabowski
2003-09-08 5:40 ` Nikola Milutinovic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox