码迷,mamicode.com
首页 > 系统相关 > 详细

linux 操作系统优化参数说明

时间:2017-01-18 23:33:04      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:os

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

标签:os

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!