Re: regarding the x86_64 zero-based percpu patches

From: Rusty Russell
Date: Wed Jan 14 2009 - 22:23:34 EST


On Wednesday 14 January 2009 14:28:56 Tejun Heo wrote:
> The main problem is that the area needs to be congruent which
> basically mandates them to be contiguous.

I want to explore this assumption a little. Logically, yes, if 50% of pages are free and we have 4096 cpus, the chance that a page is free on all CPUs is 1 in 2^4095. But maybe such systems are fine with 2M pages for per-cpu areas at boot? And can page mobility tricks help us make the odds reasonable here?
Only allowing movable pages in our expansion-of-percpu area?

Thanks,
Rusty.
--
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/