On Fri, Jan 07, 2000 at 11:49:09AM -0800, Linus Torvalds <torvalds@transmeta.com> wrote:
> Because system calls are performance-sensitive.
When I start top and press down the space bar (starting keypress repeat),
then this top process sucks up ALL CPU POWEER of my p-ii 333, and STILL is
unable to cope with ~30 refreshes per second.
Incidentally, top only uses sycalls to access this information it requires
(namely open/read/close ;) IT's just that it needs _hundresds_ or even
_thousands_ of syscalls.
And top is a program that is used very often.
Now, I expect only a moderate performance improvement from /proc to using
sysctl, but nevertheless, a /proc-based sysctl would be the worst of both
worlds: binary format, dog-slow.
> And flattening it out and trying to number it does not work. Never has,
> never will. It's not an enumerated space.
Definitely.
-- -----==- | ----==-- _ | ---==---(_)__ __ ____ __ Marc Lehmann +-- --==---/ / _ \/ // /\ \/ / pcg@opengroup.org |e| -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ The choice of a GNU generation | |- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:12 EST