We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 326585f commit 01a367eCopy full SHA for 01a367e
1 file changed
cgroup2/memory.go
@@ -17,11 +17,12 @@
17
package cgroup2
18
19
type Memory struct {
20
- Swap *int64
21
- Min *int64
22
- Max *int64
23
- Low *int64
24
- High *int64
+ Swap *int64
+ Min *int64
+ Max *int64
+ Low *int64
+ High *int64
25
+ OOMGroup *bool
26
}
27
28
func (r *Memory) Values() (o []Value) {
@@ -55,5 +56,15 @@ func (r *Memory) Values() (o []Value) {
55
56
value: *r.High,
57
})
58
59
+ if r.OOMGroup != nil {
60
+ var val int64
61
+ if *r.OOMGroup {
62
+ val = 1
63
+ }
64
+ o = append(o, Value{
65
+ filename: "memory.oom.group",
66
+ value: val,
67
+ })
68
69
return o
70
0 commit comments