Update services
- Add services - cgroups - hugepages - ksm - Change some mismatched namings that were harmless - Add KSM as default dependency for QEMU libvirt backend
This commit is contained in:
parent
2c0d9e0453
commit
8ff5bfec7e
|
@ -3,7 +3,7 @@
|
||||||
. ../../APKBUILD.template
|
. ../../APKBUILD.template
|
||||||
|
|
||||||
pkgname=nnd-s6-services
|
pkgname=nnd-s6-services
|
||||||
pkgver=1.11
|
pkgver=1.14
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Base services for s6"
|
pkgdesc="Base services for s6"
|
||||||
depends="s6-rc s6-portable-utils s6-linux-utils"
|
depends="s6-rc s6-portable-utils s6-linux-utils"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
devices,cpu,memory,blkio,cpuset,cpuacct
|
|
@ -0,0 +1 @@
|
||||||
|
pagesize=2M
|
|
@ -0,0 +1 @@
|
||||||
|
1
|
|
@ -0,0 +1 @@
|
||||||
|
madvise
|
|
@ -0,0 +1 @@
|
||||||
|
1000
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
importas -i PATH PATH
|
||||||
|
emptyenv
|
||||||
|
|
||||||
|
export PATH $PATH
|
||||||
|
define DEST /dev/cgroup
|
||||||
|
|
||||||
|
fdclose 1
|
||||||
|
fdclose 2
|
||||||
|
|
||||||
|
exec umount $DEST
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
importas -i PATH PATH
|
||||||
|
s6-envdir -i /etc/s6/env/mount.dev-cgroup
|
||||||
|
importas -i OPTS OPTS
|
||||||
|
emptyenv
|
||||||
|
|
||||||
|
export PATH $PATH
|
||||||
|
define DEST /dev/cgroup
|
||||||
|
define FSTYPE cgroup
|
||||||
|
|
||||||
|
fdclose 1
|
||||||
|
fdclose 2
|
||||||
|
|
||||||
|
foreground {
|
||||||
|
exec mkdir -p $DEST
|
||||||
|
} exec mount -t $FSTYPE -o $OPTS none $DEST
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
importas -i PATH PATH
|
||||||
|
emptyenv
|
||||||
|
|
||||||
|
export PATH $PATH
|
||||||
|
define DEST /dev/hugepages
|
||||||
|
|
||||||
|
fdclose 1
|
||||||
|
fdclose 2
|
||||||
|
|
||||||
|
exec umount $DEST
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
importas -i PATH PATH
|
||||||
|
s6-envdir -i /etc/s6/env/mount.dev-hugepages
|
||||||
|
importas -i OPTS OPTS
|
||||||
|
emptyenv
|
||||||
|
|
||||||
|
export PATH $PATH
|
||||||
|
define DEST /dev/hugepages
|
||||||
|
define FSTYPE hugetlbfs
|
||||||
|
|
||||||
|
fdclose 1
|
||||||
|
fdclose 2
|
||||||
|
|
||||||
|
foreground {
|
||||||
|
exec mkdir -p $DEST
|
||||||
|
} exec mount -t $FSTYPE -o $OPTS none $DEST
|
|
@ -13,9 +13,5 @@ fdclose 1
|
||||||
fdclose 2
|
fdclose 2
|
||||||
|
|
||||||
foreground {
|
foreground {
|
||||||
foreground {
|
exec mkdir -p $DEST
|
||||||
exec mkdir -p $DEST
|
} exec mount -t $FSTYPE -o $OPTS mqueue $DEST
|
||||||
} exec mount -t $FSTYPE -o $OPTS mqueue $DEST
|
|
||||||
} if -nt {
|
|
||||||
importas status ? test $status -eq 1
|
|
||||||
}
|
|
||||||
|
|
|
@ -13,9 +13,5 @@ fdclose 1
|
||||||
fdclose 2
|
fdclose 2
|
||||||
|
|
||||||
foreground {
|
foreground {
|
||||||
foreground {
|
exec mkdir -p $DEST
|
||||||
exec mkdir -p $DEST
|
} exec mount -t $FSTYPE -o $OPTS shm $DEST
|
||||||
} exec mount -t $FSTYPE -o $OPTS shm $DEST
|
|
||||||
} if -nt {
|
|
||||||
importas status ? test $status -eq 1
|
|
||||||
}
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ fdclose 2
|
||||||
foreground {
|
foreground {
|
||||||
foreground {
|
foreground {
|
||||||
exec mkdir -p $DEST
|
exec mkdir -p $DEST
|
||||||
} exec mount -t $FSTYPE -o $OPTS securityfs $DEST
|
} exec mount -t $FSTYPE -o $OPTS none $DEST
|
||||||
} if -nt {
|
} if -nt {
|
||||||
importas status ? test $status -eq 1
|
importas status ? test $status -eq 1
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ fdclose 2
|
||||||
foreground {
|
foreground {
|
||||||
foreground {
|
foreground {
|
||||||
exec mkdir -p $DEST
|
exec mkdir -p $DEST
|
||||||
} exec mount -t $FSTYPE -o $OPTS securityfs $DEST
|
} exec mount -t $FSTYPE -o $OPTS none $DEST
|
||||||
} if -nt {
|
} if -nt {
|
||||||
importas status ? test $status -eq 1
|
importas status ? test $status -eq 1
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ fdclose 2
|
||||||
foreground {
|
foreground {
|
||||||
foreground {
|
foreground {
|
||||||
exec mkdir -p $DEST
|
exec mkdir -p $DEST
|
||||||
} exec mount -t $FSTYPE -o $OPTS securityfs $DEST
|
} exec mount -t $FSTYPE -o $OPTS none $DEST
|
||||||
} if -nt {
|
} if -nt {
|
||||||
importas status ? test $status -eq 1
|
importas status ? test $status -eq 1
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
importas -i PATH PATH
|
||||||
|
emptyenv
|
||||||
|
|
||||||
|
export PATH $PATH
|
||||||
|
define FPATH /sys/kernel/mm/ksm/run
|
||||||
|
define VAL 0
|
||||||
|
|
||||||
|
fdclose 1
|
||||||
|
fdclose 2
|
||||||
|
|
||||||
|
redirfd -w 1 $FPATH echo $VAL
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
importas -i PATH PATH
|
||||||
|
s6-envdir -i /etc/s6/env/sys.kernel-mm-ksm-run
|
||||||
|
importas -i VAL VAL
|
||||||
|
emptyenv
|
||||||
|
|
||||||
|
export PATH $PATH
|
||||||
|
define FPATH /sys/kernel/mm/ksm/run
|
||||||
|
|
||||||
|
fdclose 1
|
||||||
|
fdclose 2
|
||||||
|
|
||||||
|
redirfd -w 1 $FPATH echo $VAL
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
importas -i PATH PATH
|
||||||
|
emptyenv
|
||||||
|
|
||||||
|
export PATH $PATH
|
||||||
|
define FPATH /sys/kernel/mm/transparent_hugepage/enabled
|
||||||
|
define VAL never
|
||||||
|
|
||||||
|
fdclose 1
|
||||||
|
fdclose 2
|
||||||
|
|
||||||
|
redirfd -w 1 $FPATH echo $VAL
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
importas -i PATH PATH
|
||||||
|
s6-envdir -i /etc/s6/env/sys.kernel-mm-transparent_hugepage-enabled
|
||||||
|
importas -i VAL VAL
|
||||||
|
emptyenv
|
||||||
|
|
||||||
|
export PATH $PATH
|
||||||
|
define FPATH /sys/kernel/mm/transparent_hugepage/enabled
|
||||||
|
|
||||||
|
fdclose 1
|
||||||
|
fdclose 2
|
||||||
|
|
||||||
|
redirfd -w 1 $FPATH echo $VAL
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
importas -i PATH PATH
|
||||||
|
emptyenv
|
||||||
|
|
||||||
|
export PATH $PATH
|
||||||
|
define SYSCTL vm/nr_hugepages
|
||||||
|
define VAL 0
|
||||||
|
|
||||||
|
fdclose 1
|
||||||
|
fdclose 2
|
||||||
|
|
||||||
|
exec sysctl -w ${SYSCTL}=${VAL}
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
importas -i PATH PATH
|
||||||
|
s6-envdir -i /etc/s6/env/sysctl.vm-nr_hugepages
|
||||||
|
importas -i VAL VAL
|
||||||
|
emptyenv
|
||||||
|
|
||||||
|
export PATH $PATH
|
||||||
|
define SYSCTL vm/nr_hugepages
|
||||||
|
|
||||||
|
fdclose 1
|
||||||
|
fdclose 2
|
||||||
|
|
||||||
|
exec sysctl -w ${SYSCTL}=${VAL}
|
Loading…
Reference in New Issue