sysctl and others.
This commit is contained in:
parent
03e5344dc2
commit
f212441a1b
@ -12,6 +12,7 @@ DELTUP_SERVER="http://linux01.gwdg.de/~nlissne/deltup.php"
|
|||||||
# command to use for downloading
|
# command to use for downloading
|
||||||
#FETCH="/usr/bin/wget --trust-server-names -t 1 --passive-ftp"
|
#FETCH="/usr/bin/wget --trust-server-names -t 1 --passive-ftp"
|
||||||
FETCH="/usr/bin/wget -t 1 --passive-ftp"
|
FETCH="/usr/bin/wget -t 1 --passive-ftp"
|
||||||
|
#FETCH="/usr/bin/wget -t 1 --passive-ftp --no-check-certificate"
|
||||||
|
|
||||||
# number of seconds to wait before a queued request is retried
|
# number of seconds to wait before a queued request is retried
|
||||||
QUEUERETRY="15"
|
QUEUERETRY="15"
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../conf.avail/30-urw-aliases.conf
|
|
16
local.d/ioschedulers.start
Executable file
16
local.d/ioschedulers.start
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# none (IOPS=60/20) mq-deadline (IOPS=70/23) kyber (IOPS=78/26) bfq (IOPS=47/16)
|
||||||
|
# none (18/6) mq-deadline (19/6.3) kyber (20/6.68) bfq (20/6.79)
|
||||||
|
scheduler=mq-deadline
|
||||||
|
|
||||||
|
# Set on noop scheduler for hdds with NCQ
|
||||||
|
for D in /sys/block/{sd?,nvme*}; do
|
||||||
|
S=$D/queue/scheduler
|
||||||
|
#Q=$D/device/queue_depth
|
||||||
|
#if [[ "$(cat $Q)" == "31" ]]; then
|
||||||
|
echo $D: $(cat $S) - set schedule to $scheduler
|
||||||
|
#echo noop > $S
|
||||||
|
echo $scheduler > $S
|
||||||
|
#fi
|
||||||
|
done
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Set on noop scheduler for hdds with NCQ
|
|
||||||
for D in /sys/block/sd?; do
|
|
||||||
S=$D/queue/scheduler
|
|
||||||
Q=$D/device/queue_depth
|
|
||||||
if [[ "$(cat $Q)" == "31" ]]; then
|
|
||||||
echo $D: $(cat $S) - set schedule to noop
|
|
||||||
echo noop > $S
|
|
||||||
fi
|
|
||||||
done
|
|
@ -1,21 +1,21 @@
|
|||||||
# swap usage (default = 60)
|
# swap usage (default = 60)
|
||||||
vm.swappiness = 5
|
vm.swappiness = 1
|
||||||
# (default = 100)
|
# (default = 100)
|
||||||
vm.vfs_cache_pressure = 1000
|
vm.vfs_cache_pressure = 50
|
||||||
|
|
||||||
# http://www.linux.org.ru/wiki/en/User:shimon/12309
|
# http://www.linux.org.ru/wiki/en/User:shimon/12309
|
||||||
# reduce memory size allowed to process (default = 0 )
|
# reduce memory size allowed to process (default = 0 )
|
||||||
vm.overcommit_memory = 1
|
vm.overcommit_memory = 0
|
||||||
# memory allowed to process: total_swap + total_ram * overcommit_ratio / 100 (default = 50 )
|
# memory allowed to process: total_swap + total_ram * overcommit_ratio / 100 (default = 50 )
|
||||||
#vm.overcommit_ratio = 12
|
vm.overcommit_ratio = 10
|
||||||
# disk buffer size (default = 0 )
|
# disk buffer size (default = 0 )
|
||||||
vm.dirty_bytes = 16777216
|
vm.dirty_bytes = 16777216
|
||||||
# disk buffer size (default = 0 )
|
# disk buffer size (default = 0 )
|
||||||
vm.dirty_background_bytes = 4194304
|
vm.dirty_background_bytes = 33554432
|
||||||
# For old kernels <2.6.30 (default = 40)
|
# For old kernels <2.6.30 (default = 40)
|
||||||
#vm.dirty_ratio = 12
|
#vm.dirty_ratio = 40
|
||||||
# For old kernels <2.6.30 (default = 10)
|
# For old kernels <2.6.30 (default = 10)
|
||||||
#vm.dirty_background_ratio = 3
|
#vm.dirty_background_ratio = 10
|
||||||
# https://github.com/zen-kernel/zen-kernel/issues/81#issuecomment-260779930
|
# https://github.com/zen-kernel/zen-kernel/issues/81#issuecomment-260779930
|
||||||
vm.dirty_expire_centisecs = 800
|
vm.dirty_expire_centisecs = 100
|
||||||
vm.dirty_writeback_centisecs = 500
|
vm.dirty_writeback_centisecs = 300
|
||||||
|
Loading…
x
Reference in New Issue
Block a user