From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4BlkJKrCcmdWbQEAe85BDQ:P1 (envelope-from ) for ; Mon, 30 Dec 2024 15:56:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4BlkJKrCcmdWbQEAe85BDQ (envelope-from ) for ; Mon, 30 Dec 2024 16:56:26 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=JIQL5DTF; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=tNoRLfQL; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735574186; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KlFKZwcGlyOoUx2MPf1s6+9XS0yZ33UYPrTPvjkXgv4=; b=GnZkLSLFtJfYTTkDYFD1/OXbDnL5h2mbDjUWSMDuY4Yv4eB1dh8RDltSlRQUgrTt/rYgZ9 Bo3Sd3cYNJW8Cd5jrDl8ii7qMldxb3hP2jY6ZGGVmG1MtLBM97L8EuTyWtXi8Sx4yJsPz1 Y4MYVYQniWKemtpGWJl4jh1Tgik1LJslcexkRVFxNG4oh/BrDLYlSt+H43kTmCTcPMoqRE YUcuKvPJeqTNBErrdrMqydEI13HF3lY6R8kjeP/2wJScCCKC7dvTM5k1DYmGuz8/gW9lwO hesGyGb3AUmKwOqQFH8GFskVw09zykSEl2zCJJ//X/uzf8Bw2/ZEq0iJb90bnw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=JIQL5DTF; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=tNoRLfQL; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735574186; a=rsa-sha256; cv=none; b=XB2eXSDb9Un03aau9fSl1EK0DOHsZGB1cBOW3suaLI0/hrH8igmAUtuR6lj73lKno3kqzX 7z2UofhklNn0f1M/Elo128Xfn98BcpnIsroob87kViXbgI3o0zcgZq0bacMQQUdYe9d/6F fLh8VNqwR4nmjBmFMYg3lxpSVBG1pei+amwRwgX7wCq/rA37CiPYGztI+OURLEXdijistf 0QIM2Ja8DzuYWokcVDSroK84L7m58WEf2qm3rbpP9N1pnjvW6wjfECo9zVzWNxSf1NOu8H GUl4TbLA9aOvfDvxNWY8ROhhhMaXaO0pHThcLKa2OBcP5XsqAP6n9ves4GsXrw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5ED9F89233 for ; Mon, 30 Dec 2024 16:56:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSI7i-0008Vk-FU; Mon, 30 Dec 2024 10:56:06 -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 1tSI7f-0008UR-E0 for guix-patches@gnu.org; Mon, 30 Dec 2024 10:56:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tSI7e-0004ZH-V0 for guix-patches@gnu.org; Mon, 30 Dec 2024 10:56:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=KlFKZwcGlyOoUx2MPf1s6+9XS0yZ33UYPrTPvjkXgv4=; b=JIQL5DTFgD9dwdA+Xn0IE9BDa5008jJryyb90+j9u5XqLCFkZXf4DexBmIqyLYgD66irSqOIPCFdO1hsUxjdXFMNOukf6g38ojCBmTDsklrhw+cKBE3Lo2oJeYpw52wHHKZetWYDv3hhKDdAggSz7A0b6xqWWGp04WMWBoueLuklkAPjbsUMTDCEXb0l8zx3vBEHmphfJfaHJp7gvGWVWbhK5P2or4I3+JpxLtCDbhEI8X7nKHpKHUHV8bivc1vJGgrSIINKfgsz/S5U9L3pguVddbCHk0qbw0JXQmzTJ7NWrucARRB24TvdVagN7EY9v8IFxUsVx3hYMlQ5QCjZDQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSI7e-0000on-PS for guix-patches@gnu.org; Mon, 30 Dec 2024 10:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75203] [PATCH 2/2] services: rootless-podman: Enable I/O delegation. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 Dec 2024 15:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75203 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 75203@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 75203-submit@debbugs.gnu.org id=B75203.17355741563111 (code B ref 75203); Mon, 30 Dec 2024 15:56:02 +0000 Received: (at 75203) by debbugs.gnu.org; 30 Dec 2024 15:55:56 +0000 Received: from localhost ([127.0.0.1]:59577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSI7X-0000o4-IU for submit@debbugs.gnu.org; Mon, 30 Dec 2024 10:55:55 -0500 Received: from devianza.investici.org ([198.167.222.108]:57143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSI7U-0000nk-O4 for 75203@debbugs.gnu.org; Mon, 30 Dec 2024 10:55:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1735574151; bh=KlFKZwcGlyOoUx2MPf1s6+9XS0yZ33UYPrTPvjkXgv4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tNoRLfQLro8F9FJzdRAcVB1r6uyp1sX1PwR+q4pxTopIVwYrvqIdOQJvRIGYGfKLD eLSn2Ez4mifyzsUqJJVXsYLhVJOOlv/XaRLyrqUe3eXbhN8+gis680E7FYTlfscTE6 hSG6ZLu/g1KAqvp6wrShol0RZzoddXduaUV8JsME= Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4YMLKz3Kgtz6vHK; Mon, 30 Dec 2024 15:55:51 +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 4YMLKz26jtz6v8V; Mon, 30 Dec 2024 15:55:51 +0000 (UTC) Date: Mon, 30 Dec 2024 16:55:22 +0100 Message-ID: <12e82593ce1847876ab020ac1b9097ec58284d0f.1735574122.git.goodoldpaul@autistici.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <6ef8d0e4837ab1e623afc117d94062085ef2abe8.1735574122.git.goodoldpaul@autistici.org> References: <6ef8d0e4837ab1e623afc117d94062085ef2abe8.1735574122.git.goodoldpaul@autistici.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches From: Giacomo Leidi via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -6.10 X-Spam-Score: -6.10 X-Migadu-Queue-Id: 5ED9F89233 X-TUID: 5kXfObhiW1Yj 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