Re: /proc guidelines and sysctl

From: Pavel Machek (pavel@suse.cz)
Date: Sun Jan 09 2000 - 08:05:06 EST


Hi!

> >That procps and procfs are dog slow (just read what I wrote). And (an
> >enhanced) sysctl would provide for a far faster top!
>
> Admittedly, in the case where you start top and lean on the spacebar
> it would be faster, but it seems like having top refresh 30+ times a
> second would be wasting 29+ of those refreshes.
>
> On my build machine (which, admittedly, is one of my K7s, so the
> figures are a bit skewed) top[+], when refreshing every second,
> takes 0.99% of the processor. And on the Celeron/338 I'm using as a
> workstation, it takes a princely .098% to do the same.

Probably not true, kernel cpu usage metters like to lie for exactly
this kind of applications. Hold spacebar. If you are right, it should
eat 30% of cpu, then. It does not.
                                                                Pavel

-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents me at discuss@linmodems.org

- 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:14 EST