lkml.org 
[lkml]   [2000]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: What /proc should contain [was: /proc/driver/microcode]
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.

-- Jamie

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.144 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site