CentOS 1G以内内存调优
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| echo 1 > /proc/sys/kernel/softlockup_panic
echo 0 > /proc/sys/net/mptcp/mptcp_enabled
echo 0 > /proc/sys/net/ipv4/tcp_timestamps
echo 0 > /proc/sys/net/ipv4/tcp_max_tw_buckets
echo "4096 16384 256000" > /proc/sys/net/ipv4/tcp_wmem
echo "4096 16384 256000" > /proc/sys/net/ipv4/tcp_rmem
echo 6 > /proc/sys/net/ipv4/tcp_retries2
echo 0 > /proc/sys/net/ipv4/tcp_syncookies
# echo 128 > /proc/sys/net/ipv4/tcp_max_syn_backlog
echo 99 > /proc/sys/vm/swappiness
service irqbalance stop
#rm -rf /usr/local/share/aliyun-assist/
|