| The Following User Says Thank You to Texrat For This Useful Post: | ||

| The Following User Says Thank You to yabbas For This Useful Post: | ||
#! /bin/sh
case "$1" in
start)
sysctl -p > /dev/null
;;
*) echo "Usage: $0 {start}"
exit 1
;;
esac
# tweak tcp
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_sack = 1
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_dsack = 1
net.ipv4.tcp_max_syn_backlog = 96
net.ipv4.tcp_ecn = 1
net.core.rmem_max = 2097152
net.core.wmem_max = 2097152
net.ipv4.tcp_rmem = 16384 65536 2097152
net.ipv4.tcp_wmem = 16384 32768 2097152
# Make the system a little more swap happy
vm.swappiness = 50
vm.vfs_cache_pressure = 200
# Lower the amount of free ram before the kernel kicks it up a notch
vm.min_free_kbytes = 512
# swap early
vm.dirty_background_ratio = 5
vm.dirty_ratio = 20
# This is flash, we don't face the same latency penalty as a HD so don't prefetch pages
# from swap
vm.page-cluster = 2
| The Following 8 Users Say Thank You to brontide For This Useful Post: | ||