Re: [PATCH V2 0/6][RFC] futex: FUTEX_LOCK with optional adaptive spinning

From: Ulrich Drepper
Date: Sat Apr 10 2010 - 19:54:07 EST


On Sat, Apr 10, 2010 at 16:35, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
> You only need one page per 4096 threads

Very expensive. Each cache line would be fought over by 64 threads.
Constant RFOs make context switches significantly slower.

At most 4096/64 = 64 threads should share one page. One page would
still cover almost all processes.
--
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/