lkml.org 
[lkml]   [2000]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /proc/0/ [was Re: /proc/nzombies]

Pavel Machek writes:
> [somebody]

>> Might I suggest a /proc/0/... tree of process information? (task[0]
>> is the kernel after all.) It would help reduce the clutter in /proc.
>
> task[0] is idle and it would be VERY good if kernel reported it as
> regular task. Just now, top can lie about idle (run make on
> linux kernel), with /proc/0/ it would be reliable.

First of all, top does not lie. You need to upgrade top.
http://www.cs.uml.edu/~acahalan/linux/procps-000221.tar.gz
(well, I suppose the timestamp register hack would help)
Note that "idle" time refers to the CPU, not your disks.

Having a /proc/0 is great as long as it is an invisible directory.
It would have to be a special case I think, because SMP would give
you more than one /proc/0 AFAIK. (which of the many could you use?)

-
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.025 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site