raw_exec: oom_score_adj support (#23308)

This commit is contained in:
Piotr Kazmierczak
2024-06-14 11:36:27 +02:00
committed by GitHub
parent 94bb91ab80
commit 85430be6dd
11 changed files with 145 additions and 82 deletions

View File

@@ -408,7 +408,12 @@ type LinuxResources struct {
CPUQuota int64
CPUShares int64
MemoryLimitBytes int64
OOMScoreAdj int64
// OOMScoreAdj field in LinuxResources is never used and left for
// compatibility reasons. Docker, raw_exec and exec2 drivers allow tasks to
// set per-task oom_score_adj values using their own TaskConfig OOMScoreAdj
// fields
OOMScoreAdj int64
CpusetCpus string
CpusetCgroupPath string