Re: [PATCH 00/11] cpuset: separate configured masks and effectivemasks

From: Tejun Heo
Date: Wed Aug 21 2013 - 10:22:05 EST


Hello, Li.

On Wed, Aug 21, 2013 at 05:58:42PM +0800, Li Zefan wrote:
> This patcheset introduces behavior changes, but only if you mount cgroupfs
> with sane_behavior option:
>
> - We introduce new interfaces cpuset.effective_cpus and cpuset.effective_mems,
> while cpuset.cpus and cpuset.mems will be configured masks.
>
> - The configured masks can be changed by writing cpuset.cpus/mems only. They
> won't be changed when hotplug happens.
>
> - Users can config cpus and mems without restrictions from the parent cpuset.
> effective masks will enforce the hierarchical behavior.
>
> - Users can also config cpus and mems to have already offlined CPU/nodes.
>
> - When a CPU/node is onlined, it will be brought back to the effective masks
> if it's in the configured masks.
>
> - We build sched domains based on effective cpumask but not configured cpumask.

Overall, it looks great. Thank you so much for doing this. Most of
my reviews are concerned with patch descriptions and documentation. I
wish they showed clearer what are changed how and why that doesn't
affect !sane behaviors.

Thanks!

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