RFR: 8241354: ZGC still crashes in containers with NUMA due to get_mempolicy is disabled by default [v2]

Per Liden pliden at openjdk.java.net
Wed Apr 28 13:22:51 UTC 2021


On Wed, 28 Apr 2021 08:20:17 GMT, Jie Fu <jiefu at openjdk.org> wrote:

>> Hi all,
>> 
>> ZGC still crashes in containers hosting on NUMA machines due to an fatal error [1], which really limits the usage of zgc.
>> 
>> The reason is that get_mempolicy is blocked by default in dockers [2].
>> With the default docker configuration, ZGC will always crash with NUMA.
>> 
>> Other collectors are also somehow affected by this restriction.
>> But unlike zgc, they won't crash and can still work in dockers.
>> So we'd better fix this bug as soon as possible since more and more people would like to use zgc.
>> 
>> The patch was prepared under the guidance of StefanK [3] and many thanks to him.
>> And we'd like to provide a user friendly -Xlog:gc+init log in a separate RFE after this issue.
>> 
>> Testing:
>>   - tier1 ~ tier3 on Linux/x64
>> 
>> Thanks.
>> Best regards,
>> Jie
>> 
>> [1] https://github.com/openjdk/jdk/blob/master/src/hotspot/os/linux/gc/z/zNUMA_linux.cpp#L64
>> [2] https://docs.docker.com/engine/security/seccomp/
>> [3] https://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2020-March/028927.html
>
> Jie Fu has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add pliden's refinement

Thanks for updating. Looks good.

-------------

Marked as reviewed by pliden (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/3704



More information about the hotspot-gc-dev mailing list