[Devel] Re: [PATCH v7 0/8] Request for inclusion: tcp memory buffers

Glauber Costa glommer at parallels.com
Fri Oct 14 05:56:23 PDT 2011


On 10/14/2011 12:18 AM, David Miller wrote:
> From: Glauber Costa<glommer at parallels.com>
> Date: Fri, 14 Oct 2011 00:14:40 +0400
>
>> Are you happy, or at least willing to accept, an approach that keep
>> things as they were with cgroups *compiled out*, or were you referring
>> to not in use == compiled in, but with no users?
>
> To me these are the same exact thing, because %99 of users will be running
> a kernel with every feature turned on in the Kconfig.

Ok.
Please let me know what do you think of the following patch. It is still 
crude, and applies on top of what I had, for simplicity. I can of course 
rework all the series for the next submission. The main idea is:

We basically don't care about accounting if all tasks are in the same, 
root, cgroup. So I am using static_branch to enable this code path when 
the first !root cgroup is created - a stronger statement than just 
enabled/disabled by a runtime option. This should cover every single 
user that is not *actively* using cgroups (I understand that most 
distros will not only compile it in, but also leave it enabled...). When 
this code path is disabled, we should be doing the same as before.

If you think this approach is valid, I am not left with the problem of
how to replace the fields when cgroups are enabled. But for that I guess 
I can just copy the struct proto (probably only 2, or at most 3 protos 
will need it anyway), and make the new sockets run on this new
structure.

Cheers
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.patch
URL: <http://lists.openvz.org/pipermail/devel/attachments/20111014/15dc2840/attachment-0001.ksh>


More information about the Devel mailing list