Re: [PATCH v3 21/21] mm: zone lru vectors interleaving

From: Andi Kleen
Date: Thu Feb 23 2012 - 11:21:12 EST


> +config PAGE_LRU_SPLIT
> + int "Memory lru lists per zone"
> + default 4 if EXPERIMENTAL && SPARSEMEM_VMEMMAP
> + default 1
> + help
> + The number of lru lists in each memory zone for interleaving.
> + Allows to redeuce lru_lock contention, but adds some overhead.
> + Without SPARSEMEM_VMEMMAP might be costly. "1" means no split.

Could you turn those two numbers into a boot option? Compile time
parameters are nasty to use.

I suppose it's ok to have an upper limit.

> +
> +config PAGE_LRU_INTERLEAVING
> + int "Memory lru lists interleaving page-order"
> + default 12
> + help
> + Page order for lru lists interleaving. By default 12 (16Mb).
> + Must be greater than huge-page order.
> + With CONFIG_PAGE_LRU_SPLIT=1 has no effect.

-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/