首页 > 系统服务 > 详细

linux 操作系统优化参数说明

时间:2017-01-18 23:32:39      阅读:273      评论:0      收藏:0      [点我收藏+]

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 操作系统优化参数说明

原文:http://heyiyi.blog.51cto.com/205455/1893009

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!