public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: 666Goofy666 <666goofy666@proton.me>
To: "pve-devel@lists.proxmox.com" <pve-devel@lists.proxmox.com>
Cc: 666Goofy666 <666goofy666@proton.me>
Subject: [PATCH docs 5/6] pct: memory: change to cgroup v2
Date: Sun, 08 Nov 2026 21:35:27 +0000	[thread overview]
Message-ID: <20261108213430.139213-6-666goofy666@proton.me> (raw)
In-Reply-To: <20261108213430.139213-1-666goofy666@proton.me>

From: 666Goofy666 <666goofy666@proton.me>

PVE9 no longer uses cgroups v1, reflect cgroup v2 memory and swap
limits, where swap is defined independently from the memory limit.

Signed-off-by: 666Goofy666 <666goofy666@proton.me>
---
 pct.adoc | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/pct.adoc b/pct.adoc
index 0d618ab..6f8fab4 100644
--- a/pct.adoc
+++ b/pct.adoc
@@ -471,17 +471,15 @@ Memory
 
 [thumbnail="screenshot/gui-create-ct-memory.png"]
 
-Container memory is controlled using the cgroup memory controller.
+Container memory is controlled using the cgroup v2 memory controller.
 
 [horizontal]
 
-`memory`: :: Limit overall memory usage. This corresponds to the
-`memory.limit_in_bytes` cgroup setting.
-
-`swap`: :: Allows the container to use additional swap memory from the host
-swap space. This corresponds to the `memory.memsw.limit_in_bytes` cgroup
-setting, which is set to the sum of both value (`memory + swap`).
+`memory`: :: Limits the maximum memory usage of the container.
+This corresponds to the `memory.max` cgroup setting.
 
+`swap`: :: Limits the additional swap memory the container can use.
+This corresponds to the `memory.swap.max` cgroup setting.
 
 [[pct_mount_points]]
 Mount Points
-- 
2.56.0





  parent reply	other threads:[~2026-11-08 21:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-08 21:35 [PATCH docs 0/6] container documentation updates 666Goofy666
2026-11-08 21:35 ` [PATCH docs 1/6] fix #7852: pct: network: fix max number interfaces 666Goofy666
2026-11-08 21:35 ` [PATCH docs 2/6] pct: snapshots: fix example variable 666Goofy666
2026-11-08 21:35 ` [PATCH docs 3/6] pct: cgroups: fix systemd supported version 666Goofy666
2026-11-08 21:35 ` [PATCH docs 4/6] pct: configuration: update configuration keys 666Goofy666
2026-11-08 21:35 ` 666Goofy666 [this message]
2026-11-08 21:35 ` [PATCH docs 6/6] pct: mountpoints: fix mount point typo 666Goofy666

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261108213430.139213-6-666goofy666@proton.me \
    --to=666goofy666@proton.me \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal