[Devel] [libvzctl PATCH] fast stop: suppress SUNRPC per task
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Mon Aug 21 18:24:43 MSK 2017
21.08.2017 18:17, Igor Sukhih пишет:
> On 08/21/2017 04:18 PM, Stanislav Kinsburskiy wrote:
>> It solves two issues.
>> First, it allows to kill tasks in nested namespaces (rare, but possible case).
>> Second, is allows to kill CT with exited child reaper (when it's almost dead,
>> but waiting for it's children), because in this case SUNRPC can't be supressed
>> via child reapers proc dentries (/proc/pid/net is not available anymore).
>>
>> https://jira.sw.ru/browse/PSBM-70437
>>
>> Note: this patch reverts (replaces) commit
>> f8e953f5d683aa6f04dcc2b5634444b98d6e9ee3
>>
> Why it can't be done in scope of env cleanup logic in the kernel?
Because we have suspend and can't distinguish between halt and suspend.
> How it going to work if Ct stop initiated not by vzctl but by OOM, halt, kill?
It's the same.
The intention of this SUNRPC handle is to be able to stop container with any NFS issue.
For instance with unreachable network, or when power off was called in CT (in this case network is disabled before processes exit).
>
> --
> Igor.
More information about the Devel
mailing list