Re: [PATCH 2.6.16-mm2 4/4] sched_domain: Allocate sched_group structures dynamically

From: Srivatsa Vaddagiri
Date: Sun Apr 02 2006 - 05:16:36 EST


On Sat, Apr 01, 2006 at 11:35:13PM -0800, Siddha, Suresh B wrote:
> Only thing I see in this is, even if there are very few cpus in the
> exclusive cpuset, we end up allocating NR_CPUS groups and waste memory.

I had realized that, but used NR_CPUS just to keep it simple (as is
being done in the case of NUMA - where they simply allocate for
MAX_NODES). I can take a shot at optimizing the memory allocation size
(for NUMA as well) and send another patch later, if people think so.

--
Regards,
vatsa
-
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/