Re: system call for process information?

george anzinger (george@mvista.com)
Wed, 14 Mar 2001 00:24:22 -0800


Rik van Riel wrote:
>
> On Wed, 14 Mar 2001, Martin Dalecki wrote:
>
> > Not the embedded folks!!! The server folks laugh histerically all
> > times they go via ssh to a trashing busy box to see what's wrong and
> > then they see top or ps auxe under linux never finishing they job:
>
> That's a separate issue.
>
> I guess the pagefault path should have _2_ locks.
>
> One mmap_sem protecting read-only access to the address space
> and another one for write access to the adress space (to stop
> races with swapout, other page faults, ...).
>
> At the point where the pagefault sleeps on IO, it could release
> the read-only lock, so vmstat, top, etc can get the statistics
> they need. Only during the time the pagefaulting code is actually
> messing with the address space could it block read access (to
> prevent others from seeing an inconsistent state).
>
Is it REALLY necessary to prevent them from seeing an inconsistent
state? Seems to me that in the total picture (i.e. system wide) they
will never see a consistent state, so why be concerned with a small
corner of the system. Let them figure it out, possibly by consistency
checks, if they care. It just seems unhealthy to demand consistency at
the cost of delays that will only make other data even more
inconsistent. And if the delay is _forever_ from a tool that may be used
to diagnose system problems... I would rather a tool that repeatedly
showed the same inconsistent state than one that hangs because it can
not get a consistent one.

George
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/