Sujet : Linux Performance Tuning
De : ff (at) *nospam* linux.rocks (Farley Flud)
Groupes : comp.os.linux.advocacyDate : 11. Aug 2024, 12:42:43
Autres entêtes
Organisation : UsenetExpress - www.usenetexpress.com
Message-ID : <17eaa9da79063ec7$11046$1084599$802601b3@news.usenetexpress.com>
Don't ever accept defaults. Always tune your machine.
Beyond build configuration, there is the possibility of
run-time tuning via "sysctl:"
man sysctl
Do a search for "linux kernel performance tuning" and
plenty of info will be available.
Here is my sysctl.conf:
# disable ASLR security bullshit
kernel.randomize_va_space=0
# aggressive network settings
net.core.netdev_max_backlog = 65536
net.core.optmem_max = 65536
net.core.rmem_default = 1048576
net.core.wmem_default = 1048576
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_no_metrics_save = 1
#To disable IP source routing (SRR), so that nobody can tell us which path a packet should take:
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
#By default, routers route everything and even packages which don't belong
#to their network(s). To avoid that we've to make sure strict reverse path filtering is enabled as defined in RFC3704:
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.tcp_mtu_probing = 1
#
vm.dirty_ratio = 10
vm.dirty_background_ratio = 5