wiki:jazz/Performance_Tuning

Version 3 (modified by jazz, 14 years ago) (diff)

--

Performance Tuning

System Performance Tuning : Memory

File System Performance Tuning

  • /etc/security/limits.conf - 每個程序(process)可以開啟檔案的個數(number limits of open files per process)
    • /etc/security/limits.conf

      old new  
      4949#ftp             -       chroot          /ftp
      5050#@student        -       maxlogins       4
      5151
       52*      soft        nofile        8192
       53
      5254# 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 131071
    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