* [bug#75201] [PATCH 1/2] services: tests: Add delay for rootless Podman system test.
@ 2024-12-30 15:44 Giacomo Leidi via Guix-patches via
2024-12-30 15:44 ` [bug#75202] [PATCH 2/2] services: rootless-podman: Enable I/O delegation Giacomo Leidi via Guix-patches via
2024-12-30 15:48 ` bug#75201: " paul via Guix-patches via
0 siblings, 2 replies; 4+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-12-30 15:44 UTC (permalink / raw)
To: 75201; +Cc: Giacomo Leidi
* gnu/tests/containers.scm (run-rootless-podman-test): Add 60 seconds
long delay before tests are actually run.
Change-Id: Ifcf70f7258f9e0886bf829884d7daedc9803352b
---
gnu/tests/containers.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/tests/containers.scm b/gnu/tests/containers.scm
index ba2fb22df6..047010037e 100644
--- a/gnu/tests/containers.scm
+++ b/gnu/tests/containers.scm
@@ -109,6 +109,9 @@ (define (run-rootless-podman-test oci-tarball)
(('service response-parts ...) #t)))
marionette))
+ ;; Allow services to start on slower machines
+ (sleep 60)
+
(test-equal "/sys/fs/cgroup/cgroup.subtree_control content is sound"
(list "cpu" "cpuset" "memory" "pids")
(marionette-eval
base-commit: 18463019a24a7c5acc9c2f3ddf3c0ba04a36db96
--
2.47.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#75202] [PATCH 2/2] services: rootless-podman: Enable I/O delegation.
2024-12-30 15:44 [bug#75201] [PATCH 1/2] services: tests: Add delay for rootless Podman system test Giacomo Leidi via Guix-patches via
@ 2024-12-30 15:44 ` Giacomo Leidi via Guix-patches via
2024-12-30 15:48 ` bug#75202: (no subject) paul via Guix-patches via
2024-12-30 15:48 ` bug#75201: " paul via Guix-patches via
1 sibling, 1 reply; 4+ messages in thread
From: Giacomo Leidi via Guix-patches via @ 2024-12-30 15:44 UTC (permalink / raw)
To: 75202; +Cc: Giacomo Leidi
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#75201: (no subject)
2024-12-30 15:44 [bug#75201] [PATCH 1/2] services: tests: Add delay for rootless Podman system test Giacomo Leidi via Guix-patches via
2024-12-30 15:44 ` [bug#75202] [PATCH 2/2] services: rootless-podman: Enable I/O delegation Giacomo Leidi via Guix-patches via
@ 2024-12-30 15:48 ` paul via Guix-patches via
1 sibling, 0 replies; 4+ messages in thread
From: paul via Guix-patches via @ 2024-12-30 15:48 UTC (permalink / raw)
To: 75201-done
Sorry this was opened by mistake, I'm closing it. Apologies for the noise.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#75202: (no subject)
2024-12-30 15:44 ` [bug#75202] [PATCH 2/2] services: rootless-podman: Enable I/O delegation Giacomo Leidi via Guix-patches via
@ 2024-12-30 15:48 ` paul via Guix-patches via
0 siblings, 0 replies; 4+ messages in thread
From: paul via Guix-patches via @ 2024-12-30 15:48 UTC (permalink / raw)
To: 75202-done
Sorry this was opened by mistake, I'm closing it. Apologies for the noise.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-30 15:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-30 15:44 [bug#75201] [PATCH 1/2] services: tests: Add delay for rootless Podman system test Giacomo Leidi via Guix-patches via
2024-12-30 15:44 ` [bug#75202] [PATCH 2/2] services: rootless-podman: Enable I/O delegation Giacomo Leidi via Guix-patches via
2024-12-30 15:48 ` bug#75202: (no subject) paul via Guix-patches via
2024-12-30 15:48 ` bug#75201: " paul via Guix-patches via
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.