Re: vm locking question

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 12 Apr 2000 23:51:25 +0100 (BST)


> For the atomic ps I'd like to scan the memory maps of all processes
> without sleeping. This means I can't grab mmap_sem like the procfs
> code does. I'm thinking of doing something like this:

Why do you want an atomic ps - nobody else has one

If you are about to answer 'for a consistent view of the machine' then
remember you broke the true view of the machine firstly by running ps
and secondly by taking locks and thus changing the synchronization or
lack thereof between events

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