Closed zxj874478410 closed 3 months ago
Obviously, losing the ability to oom adjust is not reasonable.
NRI currently supports a subset of fields as adjustable, and accepts pull requests to increase the set of supported fields. Supporting a subset was a reasonable mechanism to start experimenting with NRI and discovering use-cases that it can satisfy.
I would be open to supporting OomScoreAdj.
NRI currently supports a subset of fields as adjustable, and accepts pull requests to increase the set of supported fields. Supporting a subset was a reasonable mechanism to start experimenting with NRI and discovering use-cases that it can satisfy.
I tried to modify some of the NRI code to add the ability to adjust the OomScoreAdj, and it passed the functional verification. The relevant code is attached in PR #94.
The LinuxContainer structure transferred by the containerd contains the OomScoreAdj field. However, the NRI plugins do not support the adjustment of this field. Theoretically, the OomScoreAdj field should be customized by users to provide more refined QoS control.
The definition of LinuxContainer:
The definition of LinuxContainerAdjustment:
Obviously, losing the ability to oom adjust is not reasonable.