Re: [RFC MM] mmap_sem scaling: only scan cpus used by an mm

From: Christoph Lameter
Date: Fri Nov 06 2009 - 14:47:28 EST

On Fri, 6 Nov 2009, Andi Kleen wrote:

> On Fri, Nov 06, 2009 at 01:53:35PM -0500, Christoph Lameter wrote:
> > One way to reduce the cost of the writer lock is to track the cpus used
> > and loop over the processors in that bitmap.
> Can't you use the same mask as is used for TLB flushing?

They are clearing the cpus that are no longer in use. We could use the
same mask if we would transfer the counters but for that we would need to
make sure that no concurrent user of the counters is out there. Probably
too expensive to do.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at