From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 84C4964082 for ; Thu, 29 Oct 2020 14:23:40 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7234799F6 for ; Thu, 29 Oct 2020 14:23:10 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id C29DD99BF for ; Thu, 29 Oct 2020 14:23:09 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 8775A45F8E; Thu, 29 Oct 2020 14:23:09 +0100 (CET) Date: Thu, 29 Oct 2020 14:23:08 +0100 From: Stoiko Ivanov To: Alexandre Derumier Cc: Proxmox VE development discussion Message-ID: <20201029142308.6eb05713@rosa.proxmox.com> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.098 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com] Subject: Re: [pve-devel] how to enable cgroupv2 for lxc ? X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2020 13:23:40 -0000 Hi, On Thu, 29 Oct 2020 13:44:05 +0100 Alexandre Derumier 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 > >