[Devel] [PATCH 3/3] net: do iptables restore in ve0

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Tue Jul 25 09:55:03 MSK 2017



25.07.2017 09:48, Andrey Vagin пишет:
> On Mon, Jul 24, 2017 at 11:37:52PM -0700, Stanislav Kinsburskiy wrote:
>>
>>
>> 24 июля 2017 г. 7:12 PM пользователь Kirill Gorkunov <gorcunov at virtuozzo.com>
>> написал:
>>
>>     On Mon, Jul 24, 2017 at 07:09:39PM +0300, Stanislav Kinsburskiy wrote:
>>     >
>>     >    Well, no. I don't like this defines.
>>     >    And I don't think that pid has to be explicitly provided. At least for
>>     >    ve0.
>>     >    But frankly, I don't want to do it anyways.
>>
>>     Man, it happened that cgroup interace works with pid ;)
>>
>>
>> It doesn't matter.
>> Do you see pid in this line:
>> # ls /sys/fs/cgroup/ve/tasks
> 
> You don't understand the meaning of this pid:
> 
> echo $pid > /sys/fs/cgroup/ve/tasks
> 

True. I don't.
If I want to move current process into VE#0, I don't need any pid. But that's what I've said before.
But we don't need any pid even when we want to move to VE#X.
Because current VE number has to be set in environment. And if not - it (again) has to.
And this approach make thing very simple.
And there won't be any basis for such questions like you had, when started this conversations.
Agreed?


More information about the Devel mailing list