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

From: Andi Kleen
Date: Fri Nov 06 2009 - 14:14:57 EST


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?

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