Re: /dev/shm

From: Thomas Dickey <dickey_at_radix.net>
Date: Mon, 7 Jul 2003 11:42:19 -0400
On Mon, Jul 07, 2003 at 03:35:21PM +0200, Marcin Dalecki wrote:
> Thomas Dickey wrote:
> >On Mon, Jul 07, 2003 at 02:23:25PM +0200, Marcin Dalecki wrote:
> >
> >>You know that file system name lookup is one of the most
> >>expensive system calls under UNIX?
> >
> >
> >stating the obvious is a clumsy rhetorical ploy (asking for agreement 
> >without
> >making a point).
> 
> The point is that this is one of the reasons why the top command in
> question takes a lot of relative CPU time under Linux. Some
> "faster" versions of procps utils try to cache data but the trade off
> is simply the fact that the results are not 100% accurate.
> I tought this was obvious?

too obvious.  supposing that the application kept an open stream on the
procps "file" and simply did a rewind.  (That's assuming that procps
was done "properly" - making it just like a real file ;-)

-- 
Thomas E. Dickey <dickey_at_radix.net> <dickey_at_herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com
Received on Mon Jul 07 2003 - 06:46:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:14 UTC