public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: Alexandre Derumier <aderumier@odiso.com>
Cc: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] how to enable cgroupv2 for lxc ?
Date: Thu, 29 Oct 2020 14:23:08 +0100	[thread overview]
Message-ID: <20201029142308.6eb05713@rosa.proxmox.com> (raw)
In-Reply-To: <CAMGxVzB7mWOku-CYw_z2J941t5fvrx1i9M8P9yJO1WnBxj38fQ@mail.gmail.com>

Hi,



On Thu, 29 Oct 2020 13:44:05 +0100
Alexandre Derumier <aderumier@odiso.com> wrote:

> Hi,
> I'm stil working on rdd && new pressure stats.
> 
> pressure stats in cgroup are only available in cgroupv2.
> so it's working for qemu, but I  don't have counter for lxc as it's
> still using cgroupv1.
> 
> I see that wolfgang have already add support for cgroupv2 in LXC::Cgroups,
> I would like to enable it to test if I can get correct pressure info.
> 
> does somebody known how to enable it ? some sysctl or grub option maybe ?

adding systemd.unified_cgroup_hierarchy=1 to the kernel commandline
(/etc/default/grub or /etc/kernel/cmdline (ZFS on UEFI) ) should work:
https://wiki.debian.org/LXC/CGroupV2



> 
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 





      reply	other threads:[~2020-10-29 13:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-29 12:44 Alexandre Derumier
2020-10-29 13:23 ` Stoiko Ivanov [this message]

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=20201029142308.6eb05713@rosa.proxmox.com \
    --to=s.ivanov@proxmox.com \
    --cc=aderumier@odiso.com \
    --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