Re: [RFC][PATCH] page reclaim throttle take2

From: KAMEZAWA Hiroyuki
Date: Tue Feb 26 2008 - 23:59:19 EST


On Wed, 27 Feb 2008 13:45:18 +0900
KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> wrote:

> Hi
>
> > One more thing, I would request you to add default heuristics (number of
> > reclaimers), based on the number of cpus in the system. Letting people tuning it
> > is fine, but defaults should be related to number of cpus, nodes and zones on
> > the system. Zones can be reaped in parallel per node and cpus allow threads to
> > run in parallel. So please use that to come up with good defaults, instead of a
> > number like "3".
>
> I don't think so.
> all modern many cpu machine stand on NUMA.
> it mean following,
> - if cpu increases, then zone increases, too.
>
> if default value increase by #cpus, lock contension dramatically increase
> on large numa.
>
> Have I overlooked anything?
>
>
How about adding something like..
==
CONFIG_SIMULTANEOUS_PAGE_RECLAIMERS
int
default 3
depends on DEBUG
help
This value determines the number of threads which can do page reclaim
in a zone simultaneously. If this is too big, performance under heavy memory
pressure will decrease.
If unsure, use default.
==

Then, you can get performance reports from people interested in this
feature in test cycle.

Thanks,
-Kame


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