---
title: 常用操作系统内存参数说明
description: "常用的操作系统内存参数如下表所示："
url: https://www.hikunpeng.com/document/detail/zh/perftuning/tuningtip/kunpengtuning_12_0072.html
sourcePath: /source/zh/perftuning/tuningtip/kunpengtuning_12_0072.html
indexId: 8b7eded1f92e1714d6f48a4e853045af5d4d71cc7dbf8ca148d7202e3e9d8a4858
---
# 常用操作系统内存参数说明

常用的操作系统内存参数如下表所示：

| 优化项 | 优化项简介 |
| --- | --- |
| dirty\_background\_bytes | 当脏内存达到该字节数时触发pdflush后台回写 |
| dirty\_background\_ratio | 当脏内存所占百分比达到该值后触发pdflush后台回写 |
| dirty\_bytes | 触发一个写进程开始回写的脏内存字节数 |
| dirty\_ratio | 触发一个写进程开始回写的脏内存所占百分比 |
| dirty\_expire\_centisecs | 脏内存保留时间 |
| dirty\_writeback\_centisecs | pdflush唤醒间隔 |
| nr\_hugepages | 内存大页的数量 |
| max\_map\_count | 定义一个进程可以使用的最大内存映射区域数量 |
| min\_free\_kbytes | 设置期望的空闲内存数 |
| overcommit\_memory | 0：利用启发式允许合理的过度分配 1：始终过度分配，这可以提高内存密集型任务的性能 2：禁止过度分配 |
| swappiness | 内核倾向于使用换页来释放内存的程度 |


更多详情请参考Documentation/sysctl/vm.txt(https://www.kernel.org/doc/Documentation/sysctl/vm.txt)。
