Skip to content

Commit

Permalink
Reset memory max usage in cgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
xelez committed Oct 24, 2017
1 parent a86f4a7 commit 1890d9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cg.c
Expand Up @@ -238,6 +238,8 @@ cg_enter(void)
{
cg_write(CG_MEMORY, "memory.limit_in_bytes", "%lld\n", (long long) cg_memory_limit << 10);
cg_write(CG_MEMORY, "?memory.memsw.limit_in_bytes", "%lld\n", (long long) cg_memory_limit << 10);
cg_write(CG_MEMORY, "memory.max_usage_in_bytes", "0\n");
cg_write(CG_MEMORY, "?memory.memsw.max_usage_in_bytes", "0\n");
}

if (cg_timing)
Expand Down

0 comments on commit 1890d9f

Please sign in to comment.