Skip to content

Commit

Permalink
cgroup, systemd: honor memory.zswap.max
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed Oct 14, 2024
1 parent 5e5527e commit 3cbded3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcrun/cgroup-systemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,9 @@ append_resources (sd_bus_message *m,
if (UNLIKELY (ret < 0))
return ret;
ret = append_uint64_from_unified_map (m, "MemoryHigh", "memory.high", resources, err);
if (UNLIKELY (ret < 0))
return ret;
ret = append_uint64_from_unified_map (m, "MemoryZSwapMax", "memory.zswap.max", resources, err);
if (UNLIKELY (ret < 0))
return ret;

Expand Down

0 comments on commit 3cbded3

Please sign in to comment.