Re: [PATCH 1/3] cpuset: Don't pass empty cpumasks to partition_sched_domains()

From: Paul Menage
Date: Wed Jul 16 2008 - 03:14:58 EST


On Tue, Jul 15, 2008 at 8:43 PM, Lai Jiangshan <laijs@xxxxxxxxxxxxxx> wrote:
> i create a lots of empty cpusets(empty cpumasks) and
> turn off the "sched_load_balance" in top cpuset.
>
> And i found that all these empty cpumasks are passed to
> partition_sched_domains() in rebuild_sched_domains(),
> it's very time-consuming for partition_sched_domains()
> and it's not need.
>
> It also reduce memory consumed and some works in
> rebuild_sched_domains() too.
>
> Signed-off-by: Lai Jiangshan <laijs@xxxxxxxxxxxxxx>

Acked-by: Paul Menage <menage@xxxxxxxxxx>

Seems reasonable, and I don't think that it clashes with the other
outstanding rebuild_sched_domains() patches.

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