|
|
|
@ -85,16 +85,16 @@ write /proc/sys/kernel/sched_schedstats 0
|
|
|
|
|
write /proc/sys/kernel/printk_devkmsg off
|
|
|
|
|
|
|
|
|
|
# Start non-blocking writeback later
|
|
|
|
|
write /proc/sys/vm/dirty_background_ratio 3
|
|
|
|
|
write /proc/sys/vm/dirty_background_ratio 70
|
|
|
|
|
|
|
|
|
|
# Start blocking writeback later
|
|
|
|
|
write /proc/sys/vm/dirty_ratio 30
|
|
|
|
|
write /proc/sys/vm/dirty_ratio 90
|
|
|
|
|
|
|
|
|
|
# Require dirty memory to stay in memory for longer
|
|
|
|
|
write /proc/sys/vm/dirty_expire_centisecs 3000
|
|
|
|
|
write /proc/sys/vm/dirty_expire_centisecs 500
|
|
|
|
|
|
|
|
|
|
# Run the dirty memory flusher threads less often
|
|
|
|
|
write /proc/sys/vm/dirty_writeback_centisecs 3000
|
|
|
|
|
write /proc/sys/vm/dirty_writeback_centisecs 500
|
|
|
|
|
|
|
|
|
|
# Disable read-ahead for swap devices
|
|
|
|
|
write /proc/sys/vm/page-cluster 0
|
|
|
|
@ -106,7 +106,7 @@ write /proc/sys/vm/stat_interval 10
|
|
|
|
|
write /proc/sys/vm/swappiness 100
|
|
|
|
|
|
|
|
|
|
# Prioritize page cache over simple file structure nodes
|
|
|
|
|
write /proc/sys/vm/vfs_cache_pressure 200
|
|
|
|
|
write /proc/sys/vm/vfs_cache_pressure 1
|
|
|
|
|
|
|
|
|
|
# Enable Explicit Congestion Control
|
|
|
|
|
write /proc/sys/net/ipv4/tcp_ecn 1
|
|
|
|
|