From unknown Wed Jun 18 23:16:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#75202 <75202@debbugs.gnu.org> To: bug#75202 <75202@debbugs.gnu.org> Subject: Status: [PATCH 2/2] services: rootless-podman: Enable I/O delegation. Reply-To: bug#75202 <75202@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:16:04 +0000 retitle 75202 [PATCH 2/2] services: rootless-podman: Enable I/O delegation. reassign 75202 guix-patches submitter 75202 Giacomo Leidi severity 75202 normal tag 75202 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 30 10:45:50 2024 Received: (at submit) by debbugs.gnu.org; 30 Dec 2024 15:45:50 +0000 Received: from localhost ([127.0.0.1]:59535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSHxl-0000EV-Sm for submit@debbugs.gnu.org; Mon, 30 Dec 2024 10:45:50 -0500 Received: from lists.gnu.org ([209.51.188.17]:52982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSHxi-0000E9-V8 for submit@debbugs.gnu.org; Mon, 30 Dec 2024 10:45:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSHxQ-0004a1-U5 for guix-patches@gnu.org; Mon, 30 Dec 2024 10:45:46 -0500 Received: from devianza.investici.org ([2c0f:f930:0:4::108]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSHxO-0003gO-BS for guix-patches@gnu.org; Mon, 30 Dec 2024 10:45:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1735573520; bh=KlFKZwcGlyOoUx2MPf1s6+9XS0yZ33UYPrTPvjkXgv4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h+B4WNMdaPfmUwrhHQAyP7dVPSs0Mebs+eLjGv81yhj0CM21pY9OtnnXLRjxetVaA ylmPmR0PqjSBLeqAsx5d7Xb2x9AT5UwiawUhKCMntaueYAKALwiKsGt6rtFmlFIgUu WBRkTXFDMGWfbOrKUmNj6pH9kzCj2Y15C/jyrGXE= Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4YML5r6KVSz6vHK; Mon, 30 Dec 2024 15:45:20 +0000 (UTC) Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4YML5r3zcVz6vH5; Mon, 30 Dec 2024 15:45:20 +0000 (UTC) From: Giacomo Leidi To: guix-patches@gnu.org Subject: [PATCH 2/2] services: rootless-podman: Enable I/O delegation. Date: Mon, 30 Dec 2024 16:44:56 +0100 Message-ID: <12e82593ce1847876ab020ac1b9097ec58284d0f.1735573496.git.goodoldpaul@autistici.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <6ef8d0e4837ab1e623afc117d94062085ef2abe8.1735573496.git.goodoldpaul@autistici.org> References: <6ef8d0e4837ab1e623afc117d94062085ef2abe8.1735573496.git.goodoldpaul@autistici.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2c0f:f930:0:4::108; envelope-from=goodoldpaul@autistici.org; helo=devianza.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Giacomo Leidi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Based on https://rootlesscontaine.rs/getting-started/common/cgroup2/#enabling-cpu-cpuset-and-io-delegation , this patch enables I/O delegation for cgroups v2 enabled users. * gnu/services/containers.scm (cgroups-limits-entrypoint): Enable I/O controller delegation. * gnu/tests/containers.scm: Test it. Change-Id: I7caba33695f11830bea477c4ab3afb89cfaa2fa5 --- gnu/services/containers.scm | 2 +- gnu/tests/containers.scm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/services/containers.scm b/gnu/services/containers.scm index d8f533f44c..cb4b617e4b 100644 --- a/gnu/services/containers.scm +++ b/gnu/services/containers.scm @@ -169,7 +169,7 @@ (define cgroups-limits-entrypoint #~(system* (string-append #+bash-minimal "/bin/bash") "-c" (string-append "echo Setting cgroups v2 limits && " - "echo +cpu +cpuset +memory +pids" + "echo +cpu +cpuset +io +memory +pids" " >> /sys/fs/cgroup/cgroup.subtree_control")))) (define (rootless-podman-cgroups-limits-service config) diff --git a/gnu/tests/containers.scm b/gnu/tests/containers.scm index 047010037e..ec8a9ad440 100644 --- a/gnu/tests/containers.scm +++ b/gnu/tests/containers.scm @@ -113,7 +113,7 @@ (define (run-rootless-podman-test oci-tarball) (sleep 60) (test-equal "/sys/fs/cgroup/cgroup.subtree_control content is sound" - (list "cpu" "cpuset" "memory" "pids") + (list "cpu" "cpuset" "io" "memory" "pids") (marionette-eval `(begin (use-modules (srfi srfi-1) -- 2.47.1 From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 30 10:48:29 2024 Received: (at 75202-done) by debbugs.gnu.org; 30 Dec 2024 15:48:29 +0000 Received: from localhost ([127.0.0.1]:59549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSI0L-0000Lk-Di for submit@debbugs.gnu.org; Mon, 30 Dec 2024 10:48:29 -0500 Received: from latitanza.investici.org ([82.94.249.234]:37739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSI0G-0000LX-SM for 75202-done@debbugs.gnu.org; Mon, 30 Dec 2024 10:48:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1735573704; bh=YSvcnSL6pExwPT0QZrcsXy8uGW6aRvG8QYvnt/2VCtY=; h=Date:To:From:From; b=JywZyiJBhim0xMqw0PY/Vgr84tpWEISoPIJ5sRO67Si3ujpZqBLnci0GGKNa7JXGd 5MzAIkFGp+FVkclMsOTNlndsqtMm+ym0zHP4VIp/kT+yHlz15cOg1yunr2hkX+1NZ8 4n7YVEJS+pU1wz+PhLv7U/omTGzw58YCpnLyAFgs= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4YML9N3WJYzGp3d for <75202-done@debbugs.gnu.org>; Mon, 30 Dec 2024 15:48:24 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4YML9N2rfRzGp0p for <75202-done@debbugs.gnu.org>; Mon, 30 Dec 2024 15:48:24 +0000 (UTC) Message-ID: <6df246bb-d572-4223-99bf-70feeb039209@autistici.org> Date: Mon, 30 Dec 2024 16:48:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: 75202-done@debbugs.gnu.org Content-Language: en-US From: paul Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Sorry thisĀ  was opened by mistake, I'm closing it. Apologies for the noise. Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [82.94.249.234 listed in list.dnswl.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [82.94.249.234 listed in bl.score.senderscore.com] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [82.94.249.234 listed in sa-trusted.bondedsender.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: 75202-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Sorry thisĀ  was opened by mistake, I'm closing it. Apologies for the noise. From unknown Wed Jun 18 23:16:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 28 Jan 2025 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator