OT: /proc, top, ps broken in some linux kernels?

Steven Hartland killing at multiplay.co.uk
Tue Jun 1 15:58:17 EDT 2004

Ok Im trying to get some comparison results between OS
on the same machine running the same game servers.
I've got my results for FreeBSD 5.2.1 and have just switched
to Suse 9.0 i386 running kernel 2.4.21-215 ( stripped down
compile ).

The results Im seeing in top / ps appear to be just blatant
crap. I've got a 32 player COD server with 32 players in
it with when I load top will sometimes show as using 25%
and sometimes show as using ~0% and not just for a few
seconds either for minutes. Next I have a 32 player MOHAA
server which again has 32 players in it and is only using
2% CPU.
As you will appreciate I don't believe this for one minute.
But I have seen over the years people report just this type
of usage on this list.

So the question is /proc and hence ps / top broken in this
kernel version? Is this some type of integer overflow in the
kernel so instead of reporting say 66K of something its
rolling over and reporting a very small number?

Anyone how has posted CPU loads before that seem
way too low I would be very interested to hear what
kernel version / machine spec u are running ( could be
a combination of a fast machine + specific kernel version
that brings this to light ).

Note: the kernel I had originally had the 10% @ idle
issue till I recompiled is this an indication of the issue?

    Steve / K

This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137
or return the E.mail to postmaster at multiplay.co.uk.

More information about the Bf1942 mailing list