From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2P5iNFjAcmdMDAAAqHPOHw:P1 (envelope-from ) for ; Mon, 30 Dec 2024 15:46:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 2P5iNFjAcmdMDAAAqHPOHw (envelope-from ) for ; Mon, 30 Dec 2024 16:46:32 +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="Q0szzZ/L"; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=h+B4WNMd; 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=1735573592; 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=LjZo1YBdbDrtMG4rtxTh0UKwMWQ0vMbkt7uIkFNnwU9HJXe6MVK+gQXvba6GiJg83/JOTM YArjRjpxxtIs/L3ZqMpVBkhJgg7PM3n9pQl82dXFlKiUmCdn42s+iWJCzCNQrimDIYSlU3 v8GafVaxiHoucS76GDrCpn1/zPnzETGbA61z2wTpGfRGCCyNOcKZwOTvfWZJq9PSq0ihpO xzbweSG55aieMtffGFJoE6v+cs0lx8J7zBe/bA73en3HfTyPGf1CBGi12+ZWiv7s/gWlbz Gm1ebDu/tsfFJpdJEAf2Qr9zdpfwH4xjFwChwJhgZ2TmfqJEZhw7L0xFRna5yQ== 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="Q0szzZ/L"; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=h+B4WNMd; 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=1735573592; a=rsa-sha256; cv=none; b=bMy4MnHQw82KBdlIefug81cU6bfqs6c5jbVL+6DgTXrEfnx35I9GHEcdOy5mBAF0VGOnWi brQHLg8Qr/HQ1SX0E+4GETDnrkxEmGKvhbnb7phLpkFfc8A/5ZITsmdVsv/lYb7P3gJwBf ra7BRsdNM5E8axDGPnx66mWOnqEt+FhX1Hwz0bcNbYGgrQEZOwQ3cmixl1vCPkL3WAf5X+ 7Jtri0dj7vkzzFkUAi9u0WxDfNkzvULDeetBKb5uUP2E8Zq+ZxQ01NGselz3Kf27UwFc5f ymCh9RfzG2pF3vRZ9r1GJa39oa3gwsJTkIl+lAU99jJBZV5/JPKUv4dHFoyM2Q== 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 7ABA887C24 for ; Mon, 30 Dec 2024 16:46:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSHy6-0004fS-KG; Mon, 30 Dec 2024 10:46:10 -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 1tSHy1-0004ey-Dh for guix-patches@gnu.org; Mon, 30 Dec 2024 10:46:05 -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 1tSHxz-0003iC-DV for guix-patches@gnu.org; Mon, 30 Dec 2024 10:46:04 -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=Q0szzZ/L0YUEPQLAlA+ImA4qAVuuPxiB3roaKD8fOxB62HrzM8nbPrnalLHFOMZG6COF2poKoZTNh8Wta85M4VH1r3dHEBaze7nCWdLAcXnEjR2YesNZHP/muD8qnFtt0P4RWXCNsFgpPdR8FOtw2PDCWflvBFpIhl44F5Zmsgdw1zVwRtekDTRlXrryMVJb45C7NKlJkRjQQ85Ma6zdaf8TKbf2m2DptIkeBXMwMtrAblnjti9fsOlLzd6wqMsInC8th8TyI5uJvKUjxJiosulHu5gVPk0b3gmUSwRoMmWGFmwPFA1XF9UsDfERmExUP2l3omWCoUdtAgCaofC32w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSHxz-0000Fd-61 for guix-patches@gnu.org; Mon, 30 Dec 2024 10:46:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75202] [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:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75202 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75202@debbugs.gnu.org Cc: Giacomo Leidi X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1735573550908 (code B ref -1); Mon, 30 Dec 2024 15:46:02 +0000 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) 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-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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.10 X-Spam-Score: -6.10 X-Migadu-Queue-Id: 7ABA887C24 X-Migadu-Scanner: mx10.migadu.com X-TUID: Ix4oF9ylwdMH 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