Default values for cpuset.mems, cpus for children created

From: Dhaval Giani
Date: Fri Aug 15 2008 - 15:32:15 EST


Hi,

While playing around with libcgroup, one of the isses hit was that
attaching a task failed. Looking deeper into it, cpusets had been
mounted along with other subsystems. And since we did not care about
cpusets, we did not set cpus and mems there.

Now an application programmer does not really care where and how
subsystems are mounted (or at least that is what libcgroup aims to
achieve :-) ). And such a scenario when the cpuset has not been handled
is going to lead to failures which a user is not expecting.

To work around this, I am making a change which will just set the values
which the parent group has for unfilled values, but I can already see
cpuset breaking that assumption as well. (for example exclusive
cpusets).

I was wondering, why can we not have some sane default values set for
cpus and mems when a group is created. (That will also avoid a lot of
heartbreak for me as well :-) ) (Or if you have some sane solution that
has not hit me yet, i am all ears)

Thanks,
--
regards,
Dhaval
--
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/