Skip to content

Commit

Permalink
Merge pull request #92 from lgtczh/add_mem_soft_limit
Browse files Browse the repository at this point in the history
 fixed an issue with invalid soft memory limits
  • Loading branch information
estesp authored Jul 10, 2019
2 parents b589cd9 + 13a3ac4 commit d596c78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ func getMemorySettings(resources *specs.LinuxResources) []memorySettings {
name: "limit_in_bytes",
value: mem.Limit,
},
{
name: "soft_limit_in_bytes",
value: mem.Reservation,
},
{
name: "memsw.limit_in_bytes",
value: mem.Swap,
Expand Down

0 comments on commit d596c78

Please sign in to comment.