Version 4 (modified by jazz, 15 years ago) (diff) |
---|
Performance Tuning
System Performance Tuning : Memory
- Share Memory
echo "kernel.shmall = 796917578" >> /etc/sysctl.conf echo "kernel.shmmax = 796917578" >> /etc/sysctl.conf echo "kernel.shmmni = 4096" >> /etc/sysctl.conf
System Performance Tuning : File System
- /etc/security/limits.conf - 每個程序(process)可以開啟檔案的個數(number limits of open files per process)
-
/etc/security/limits.conf
old new 49 49 #ftp - chroot /ftp 50 50 #@student - maxlogins 4 51 51 52 * soft nofile 8192 53 52 54 # End of file
-
I/O Performance Tuning
Network Performance Tuning
- TCP Tuning
echo 262144 > /proc/sys/net/core/rmem_default echo 8388608 > /proc/sys/net/core/wmem_max echo 8388608 > /proc/sys/net/core/rmem_max echo "4096 87380 4194304" > /proc/sys/net/ipv4/tcp_rmem echo "4096 65536 4194304" > /proc/sys/net/ipv4/tcp_wmem