mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 06:08:37 +02:00
Merge branch 'devel' into 'main'
reworking glicid cgroups See merge request glicid-public/guix-glicid!138
This commit is contained in:
commit
c544faf0eb
1 changed files with 35 additions and 22 deletions
|
@ -4,29 +4,42 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
(define %cgroups
|
(define %cgroups
|
||||||
(let
|
(append (list
|
||||||
((parent (file-system
|
|
||||||
(device "cgroup")
|
|
||||||
(mount-point "/sys/fs/cgroup")
|
|
||||||
(type "tmpfs")
|
|
||||||
(check? #f)
|
|
||||||
)))
|
|
||||||
(cons parent
|
|
||||||
(map (lambda (subsystem)
|
|
||||||
(file-system
|
(file-system
|
||||||
(device "cgroup")
|
(device "cgroup")
|
||||||
(mount-point (string-append "/sys/fs/cgroup/" subsystem))
|
(mount-point "/sys/fs/cgroup/hugetlb")
|
||||||
(type "cgroup")
|
(type "cgroup")
|
||||||
(check? #f)
|
(check? #f)
|
||||||
(options subsystem)
|
(options "hugetlb")
|
||||||
(create-mount-point? #t)
|
(create-mount-point? #t)
|
||||||
(dependencies (list parent))
|
(dependencies (list (car %control-groups)))
|
||||||
)
|
)
|
||||||
|
(file-system
|
||||||
|
(device "cgroup")
|
||||||
|
(mount-point "/sys/fs/cgroup/net_cls")
|
||||||
|
(type "cgroup")
|
||||||
|
(check? #f)
|
||||||
|
(options "net_cls")
|
||||||
|
(create-mount-point? #t)
|
||||||
|
(dependencies (list (car %control-groups)))
|
||||||
)
|
)
|
||||||
'("blkio" "cpu" "cpuacct" "cpuset" "devices" "freezer" "hugetlb"
|
(file-system
|
||||||
"memory" "net_cls" "net_prio" "perf_event" "pids" "systemd")
|
(device "cgroup")
|
||||||
|
(mount-point "/sys/fs/cgroup/net_prio")
|
||||||
|
(type "cgroup")
|
||||||
|
(check? #f)
|
||||||
|
(options "net_prio")
|
||||||
|
(create-mount-point? #t)
|
||||||
|
(dependencies (list (car %control-groups)))
|
||||||
)
|
)
|
||||||
|
(file-system
|
||||||
|
(device "cgroup")
|
||||||
|
(mount-point "/sys/fs/cgroup/systemd")
|
||||||
|
(type "cgroup")
|
||||||
|
(check? #f)
|
||||||
|
(options "none,name=systemd")
|
||||||
|
(create-mount-point? #t)
|
||||||
|
(dependencies (list (car %control-groups)))
|
||||||
)
|
)
|
||||||
|
))
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue