linux 操作系统优化参数说明
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux 操作系统优化参数说明相关的知识,希望对你有一定的参考价值。
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
本文出自 “yiyi” 博客,请务必保留此出处http://heyiyi.blog.51cto.com/205455/1893009
以上是关于linux 操作系统优化参数说明的主要内容,如果未能解决你的问题,请参考以下文章