[Devel] [PATCH RH7] ve/pid: Export kernel.pid_max via ve cgroup

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Tue Jul 19 04:26:06 PDT 2016



On 07/19/2016 02:17 PM, Cyrill Gorcunov wrote:
> On Tue, Jul 19, 2016 at 02:00:20PM +0300, Pavel Tikhomirov wrote:
>> This member represents kernel.pid_max sysctl it is vz-specific but
>> lays on pid namespace. To be able to c/r from libvzctl script it is
>> better put pid_max in ve cgroup, these way we do not need to enter
>> container root pid namespace to get/set these sysctl.
>
> Wait, kernel.pid_max is not ve-specific (see kernel/sysctl.c in
> vanilla kernel). Why do we have to c/r it at all?

It is virtualized only in VZ7(see proc_dointvec_pidmax), so in 
mainstream it is global sysctl unlike our case.

>

-- 
Best regards, Tikhomirov Pavel
Software Developer, Virtuozzo.


More information about the Devel mailing list