Re: vm locking question

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Wed Apr 12 2000 - 17:51:25 EST


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



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:19 EST