Add virtual memory management sysctls
This commit is contained in:
parent
93ff0694bd
commit
1c2f0171b7
|
@ -3,7 +3,7 @@
|
|||
. ../../APKBUILD.template
|
||||
|
||||
pkgname=nnd-s6-services
|
||||
pkgver=2.85
|
||||
pkgver=2.88
|
||||
pkgrel=0
|
||||
pkgdesc="Base services for s6"
|
||||
depends="s6-rc s6-portable-utils s6-linux-utils"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/execlineb -P
|
||||
export VAL 10
|
||||
export SYSCTL vm/swappiness
|
||||
/usr/libexec/nnd/s6/sysctl
|
|
@ -0,0 +1 @@
|
|||
oneshot
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/execlineb -P
|
||||
importas -i XDG_CONFIG_HOME XDG_CONFIG_HOME
|
||||
|
||||
export VAL 10
|
||||
s6-envdir -I ${XDG_CONFIG_HOME}/s6/env/sysctl.vm-dirty_background_ratio
|
||||
|
||||
export SYSCTL vm/dirty_background_ratio
|
||||
/usr/libexec/nnd/s6/sysctl
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/execlineb -P
|
||||
export VAL 10
|
||||
export SYSCTL vm/swappiness
|
||||
/usr/libexec/nnd/s6/sysctl
|
|
@ -0,0 +1 @@
|
|||
oneshot
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/execlineb -P
|
||||
importas -i XDG_CONFIG_HOME XDG_CONFIG_HOME
|
||||
|
||||
export VAL 3000
|
||||
s6-envdir -I ${XDG_CONFIG_HOME}/s6/env/sysctl.vm-dirty_expire_centisecs
|
||||
|
||||
export SYSCTL vm/dirty_expire_centisecs
|
||||
/usr/libexec/nnd/s6/sysctl
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/execlineb -P
|
||||
export VAL 10
|
||||
export SYSCTL vm/swappiness
|
||||
/usr/libexec/nnd/s6/sysctl
|
|
@ -0,0 +1 @@
|
|||
oneshot
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/execlineb -P
|
||||
importas -i XDG_CONFIG_HOME XDG_CONFIG_HOME
|
||||
|
||||
export VAL 20
|
||||
s6-envdir -I ${XDG_CONFIG_HOME}/s6/env/sysctl.vm-dirty_ratio
|
||||
|
||||
export SYSCTL vm/dirty_ratio
|
||||
/usr/libexec/nnd/s6/sysctl
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/execlineb -P
|
||||
export VAL 10
|
||||
export SYSCTL vm/swappiness
|
||||
/usr/libexec/nnd/s6/sysctl
|
|
@ -0,0 +1 @@
|
|||
oneshot
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/execlineb -P
|
||||
importas -i XDG_CONFIG_HOME XDG_CONFIG_HOME
|
||||
|
||||
export VAL 500
|
||||
s6-envdir -I ${XDG_CONFIG_HOME}/s6/env/sysctl.vm-dirty_writeback_centisecs
|
||||
|
||||
export SYSCTL vm/dirty_writeback_centisecs
|
||||
/usr/libexec/nnd/s6/sysctl
|
Loading…
Reference in New Issue