728x90
반응형
출처 :
http://people.netfilter.org/kadlec/nftest.pdf
Script to tune kernel and interface parameters on the test machines:
Script to tune kernel and interface parameters on the test machines:
#!/bin/sh
# 4KB send buffer, 20,480 connections max at worst case
echo 83886080 > /proc/sys/net/core/wmem_max
echo 83886080 > /proc/sys/net/core/wmem_default
# 16KB receive buffer, 20,480 connections max at worst case
echo 335544320 > /proc/sys/net/core/rmem_max
echo 335544320 > /proc/sys/net/core/rmem_default
# Max open files
echo 65536 > /proc/sys/fs/filemax
# Fast port recycling (TIME_WAIT)
echo 1 >/proc/sys/net/ipv4/tcp_tw_recycle
echo 1 >/proc/sys/net/ipv4/tcp_tw_reuse
# TIME_WAIT buckets increased
echo 65536 > /proc/sys/net/ipv4/tcp_max_tw_buckets
# FIN timeout decreased
echo 15 > /proc/sys/net/ipv4/tcp_fin_timeout
# SYN backlog increased
echo 65536 > /proc/sys/net/ipv4/tcp_max_syn_backlog
# SYN cookies enabled
echo 1 > /proc/sys/net/ipv4/tcp_syncookies
# Local port range maximized
echo "1024 65535" > /proc/sys/net/ipv4/ip_local_port_range
# Netdev backlog increased
echo 100000 > /proc/sys/net/core/netdev_max_backlog
# Interface transmit queuelen increased
ifconfig eth0 txqueuelen 10000
반응형
'[OS] > Embedded&Linux' 카테고리의 다른 글
redmine (0) | 2012.01.03 |
---|---|
sed, awk 사용법 (0) | 2008.10.23 |
Trac Authentication (0) | 2007.10.24 |
svn restore (0) | 2007.10.17 |
trac backup & restore (0) | 2007.10.17 |