1.Virtual Memory

vm.swappiness=1             # a percentage of how likely the VM subsystem is to use swap space

vm.dirty_background_ratio=5 # The value is a percentage of the total amount of system memory

vm.dirty_ratio=60~80        # a percentage of total system memory

调整依据

# cat /proc/vmstat | egrep "dirty|writeback"

nr_dirty 3875

nr_writeback 29

nr_writeback_temp 0

#


2.DISK

filesystem type:xfs 

mount option:noatime


3.Networking

# send and receive buffer sizes for TCP sockets

net.ipv4.tcp_wmem=4096 65536 2048000

net.ipv4.tcp_rmem=4096 65536 2048000


# Enabling TCP window scaling

net.ipv4.tcp_window_scaling=1


# number of simultaenous connections to be accepted

net.ipv4.tcp_max_syn_backlog=4096

# number of packets to be queued up for the kernel to process

net.core.netdev_max_backlog=4096