Skip to content

Commit

Permalink
feat: add memory.min param
Browse files Browse the repository at this point in the history
It helps to configure memory.min cgroup param.

Signed-off-by: Serge Logvinov <[email protected]>
  • Loading branch information
sergelogvinov committed Dec 2, 2021
1 parent 2b95ef0 commit 9b97ff7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions v2/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package v2

type Memory struct {
Swap *int64
Min *int64
Max *int64
Low *int64
High *int64
Expand All @@ -30,6 +31,12 @@ func (r *Memory) Values() (o []Value) {
value: *r.Swap,
})
}
if r.Min != nil {
o = append(o, Value{
filename: "memory.min",
value: *r.Min,
})
}
if r.Max != nil {
o = append(o, Value{
filename: "memory.max",
Expand Down

0 comments on commit 9b97ff7

Please sign in to comment.