Re: [RFC 0/5] forced comounts for cgroups.
From: Glauber Costa
Date: Wed Sep 05 2012 - 05:33:33 EST
On 09/05/2012 01:19 PM, Tejun Heo wrote:
> On Wed, Sep 05, 2012 at 01:12:34PM +0400, Glauber Costa wrote:
>>> No, I never counted out differing granularity.
>>
>> Can you elaborate on which interface do you envision to make it work?
>> They will clearly be mounted in the same hierarchy, or as said
>> alternatively, comounted.
>
> I'm not sure yet. At the simplest, mask of controllers which should
> honor (or ignore) nesting beyond the node. That should be
> understandable enough. Not sure whether that would be flexible enough
> yet tho. In the end, they should be comounted but again I don't think
> enforcing comounting at the moment is a step towards that. It's more
> like a step sideways.
>
Tejun,
>From the code PoV, guaranteed comounting is what allow us to make
optimizations. "Maybe comounting" will maybe simplify the interface, but
will buy us nothing in the performance level.
I am more than happy to respin it with an added interface for masking
cgroups, if you believe this is a requirement.
But hinting me about what you would like to see on that front would be
really helpful.
Re-asking my question:
cpufreq, clocksources, ftrace, etc, they all use an interface that at
this point can be considered quite standard.
Applying the same logic, each cgroup would have a pair of files:
available_controllers, current_controllers, that you can just control by
writing to.
This can get slightly funny when we consider the right semantics for the
hierarchy, but really, everything will. And it is not like we'll have
anything crazy, we just need to tailor it with care.
If you think there is any chance of this getting us somewhere, I'll code
it. But that would be something to be sent *together* with what I've
just done. As I've said, if we can't guarantee the comounting, we would
still lose all the optimization opportunities.
--
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/