Albert D. Cahalan wrote:
> I hope you actually wrote serious proc-using code. If not, you should
> not argue. I wrote the new ps, and I think /proc is a crawling horror.
> My fix would be to add the exact same binary files that Solaris has
> and to make all non-process information invisible. The filesystem
> code could also be used for /sys or /kern, with a mount option to
> show everything but the processes.
Would a binary file in each /proc/PID directory containing just the right
information for /proc be ok?
> I'd love to have the binary structures for C. In spite of being
> 100% C, "top" can use 50% of my CPU time. Real code is C anyway.
I minor tweak to "top" and procfs would fix that 50% CPU time in the
usual case. All you need is for readdir("/proc") to return the processes
in approximate reverse order of CPU usage, and to have another file
which reports idle time. Then "top" can stop reading once it's reached
a total of 100% CPU usage.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:10 EST