mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 14:18:38 +02:00
Merge branch 'devel' into 'main'
adding new cgroups See merge request glicid-public/guix-glicid!39
This commit is contained in:
commit
5cba34ca38
2 changed files with 33 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
#:use-module (guix records)
|
#:use-module (guix records)
|
||||||
#:use-module (ice-9 match)
|
#:use-module (ice-9 match)
|
||||||
#:use-module (gnu packages parallel)
|
#:use-module (gnu packages parallel)
|
||||||
|
#:use-module (glicid system file-systems)
|
||||||
#:export (
|
#:export (
|
||||||
munged-configuration
|
munged-configuration
|
||||||
munged-configuration?
|
munged-configuration?
|
||||||
|
|
32
glicid/system/file-systems.scm
Normal file
32
glicid/system/file-systems.scm
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
(define-module (glicid system file-systems)
|
||||||
|
#:use-module (gnu system file-systems)
|
||||||
|
#:export (%control-groups)
|
||||||
|
)
|
||||||
|
|
||||||
|
(define %control-groups
|
||||||
|
(let
|
||||||
|
((parent (file-system
|
||||||
|
(device "cgroup")
|
||||||
|
(mount-point "/sys/fs/cgroup")
|
||||||
|
(type "tmpfs")
|
||||||
|
(check? #f)
|
||||||
|
)))
|
||||||
|
(cons parent
|
||||||
|
(map (lambda (subsystem)
|
||||||
|
(file-system
|
||||||
|
(device "cgroup")
|
||||||
|
(mount-point (string-append "/sys/fs/cgroup/" subsystem))
|
||||||
|
(type "cgroup")
|
||||||
|
(check? #f)
|
||||||
|
(options subsystem)
|
||||||
|
(create-mount-point? #t)
|
||||||
|
(dependencies (list parent))
|
||||||
|
)
|
||||||
|
)
|
||||||
|
'("blkio" "cpu" "cpuacct" "cpuset" "devices" "freezer" "hugetlb"
|
||||||
|
"memory" "net_cls" "net_prio" "perf_event" "pids" "rdma" "unified")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue