Re: per-process shared information

William Lee Irwin III
2004-10-15T10:51:06Z

On Thu, Oct 14, 2004 at 10:49:28PM +0100, Hugh Dickins wrote:
>> shouldn't change that now, but add your statm_phys_shared; whatever,

On Fri, Oct 15, 2004 at 12:37:30AM +0200, Andrea Arcangeli wrote:
> the only reason to add statm_phys_shared was to keep ps xav fast, if you
> don't slowdown pa xav you can add another field at the end of statm.
> Ideally shared should have been set to 0 and it should have been moved
> to statm_phys_shared. It's slow but not so horrid thanks to the mapcount
> which makes it really strightforward (it's just a vma + pgtable walk,
> the only tricky bit is the signal catch and need_resched).

I'd be rather loath to endorse reintroducing the problematic pagetable
and vma walks I spent so much effort eliminating. Will Hugh's patch
suffice for you? If not, what else is needed?

-- wli