Skip to content

Commit

Permalink
qm.container: add MemoryMax and MemoryHigh
Browse files Browse the repository at this point in the history
Add new settings for [Service]

See-Also: https://gitlab.com/CentOS/automotive/src/automotive-image-builder/-/merge_requests/102

Signed-off-by: Douglas Landgraf <[email protected]>
  • Loading branch information
dougsland committed Sep 13, 2024
1 parent 79ce222 commit a5c3abb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions qm.container
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,22 @@ CPUWeight=50
Delegate=true
IOWeight=50
ManagedOOMSwap=kill

# MemoryMax
# -----------
# Default is infinity - sets no upper bound on memory usage, allowing the
# service to consume as much memory as the system allows, just like
# MemoryMax=0 or omitting it.
MemoryMax=infinity

# MemoryHigh
# -----------
# Default is infinity - Disables the soft memory limit, meaning no throttling
# will occur due to high memory usage, similar to MemoryHigh=0 or
# omitting it.
MemoryHigh=infinity
MemorySwapMax=0

# Containers within the qm contain default set OOMScoreAdj to 750
OOMScoreAdjust=500
Restart=always
Expand Down

0 comments on commit a5c3abb

Please sign in to comment.