Linux System and Performance Monitoring(Memory篇)
Written by bixuan on 2009年08月13号 – 09:47
Date: 2009.07.21
Author: Darren Hoch
译: Tonnyom[AT]hotmail.com
Linux System and Performance Monitoring(CPU篇)
Swappable –匿名的内存页
Syncable –通过硬盘文件备份的内存页
Discardable –静态页和被丢弃的页
2,如果该页处于已修改状态并可备份回文件系统,则将页内容写入到磁盘.
3,如果该页处于已修改状态但没有任何磁盘备份,则将页内容写入到swap device.
root 30 1 0 23:01 ? 00:00:00 [kswapd0]
root 28 3 0 23:01 ? 00:00:00 [pdflush]
root 29 3 0 23:01 ? 00:00:00 [pdflush]
(译注:
Q:什么是脏页?
A:由于内存中页缓存的缓存作用,写操作实际上都是延迟的.当页缓存中的数据比磁盘存储的数据还要更新时,那么该数据就被称做脏页.)
10
在2.4 内核下,一个高负荷的内存环境中,系统将遇到交换过程中不断的崩溃.这是因为PFRA 从一个运行进程中,偷取其中一个内存页并尝试使用.导致结果就是,这个进程如果要回收那个页时,要是没有就会尝试再去偷取这个页,这样一来,就越来越糟糕了.在2.6 内核下,使用”Swap token”修复了这个BUG,用来防止PFRA 不断从一个进程获取同一个页.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Table 2: The vmstat Memory Statistics
Field Description
Swapd The amount of virtual memory in KB currently in use. As free memory reaches low thresholds, more data is paged to the swap device.
当前虚拟内存使用的总额(单位:KB).空闲内存达到最低的阀值时,更多的数据被转换成页到交换设备中.
Free The amount of physical RAM in kilobytes currently available to running applications.
当前内存中可用空间字节数.
Buff The amount of physical memory in kilobytes in the buffer cache as a result of read() and write() operations.
当前内存中用于read()和write()操作的缓冲区中缓存字节数
Cache The amount of physical memory in kilobytes mapped into process address space.
当前内存中映射到进程地址空间字节数
So The amount of data in kilobytes written to the swap disk.
写入交换空间的字节数总额
Si The amount of data in kilobytes written from the swap disk back into RAM.
从交换空间写回内存的字节数总额
Bo The amount of disk blocks paged out from the RAM to the filesystem or swap device.
磁盘块页面从内存到文件或交换设备的总额
Bi The amount of disk blocks paged into RAM from the filesystem or swap device.
磁盘块页面从文件或交换设备到内存的总额
procs memory swap io system cpu
r b swpd free buff cache si so bi bo in cs us sy id wa
3 2 809192 261556 79760 886880 416 0 8244 751 426 863 17 3 6 75
0 3 809188 194916 79820 952900 307 0 21745 1005 1189 2590 34 6 12 48
0 3 809188 162212 79840 988920 95 0 12107 0 1801 2633 2 2 3 94
1 3 809268 88756 79924 1061424 260 28 18377 113 1142 1694 3 5 3 88
1 2 826284 17608 71240 1144180 100 6140 25839 16380 1528 1179 19 9 12 61
2 1 854780 17688 34140 1208980 1 9535 25557 30967 1764 2238 43 13 16 28
0 8 867528 17588 32332 1226392 31 4384 16524 27808 1490 1634 41 10 7 43
4 2 877372 17596 32372 1227532 213 3281 10912 3337 678 932 33 7 3 57
1 2 885980 17800 32408 1239160 204 2892 12347 12681 1033 982 40 12 2 46
5 2 900472 17980 32440 1253884 24 4851 17521 4856 934 1730 48 12 13 26
1 1 904404 17620 32492 1258928 15 1316 7647 15804 919 978 49 9 17 25
4 1 911192 17944 32540 1266724 37 2263 12907 3547 834 1421 47 14 20 20
1 1 919292 17876 31824 1275832 1 2745 16327 2747 617 1421 52 11 23 14
5 0 925216 17812 25008 1289320 12 1975 12760 3181 772 1254 50 10 21 19
0 5 932860 17736 21760 1300280 8 2556 15469 3873 825 1258 49 13 24 15
转载于:https://blog.51cto.com/nessus/368507
Linux System and Performance Monitoring(Memory篇)相关推荐
- Linux System and Performance Monitoring
Linux System and Performance Monitoring 转载于:https://blog.51cto.com/gavinshaw/273692
- Excessive growth of the primary database log mirror and system Performance Monitoring
1 做镜象日志库主库 日志增长过快,并且无法截断. 解决方法 每隔段时间 备份多个日志 并收缩日志 eg: backup log databasename to disk='' dbcc shrink ...
- 详解Linux运维工程师打怪升级篇
详解 Linux 运维工程师打怪升级篇 积累经验篇 做运维也快4年多了,就像游戏打怪升级,升级后知识体系和运维体系也相对变化挺大,学习了很多新的知识点. 运维工程师 是从一个呆逼进化为苦逼再成长为牛逼 ...
- A Step By Step Guide to Tomcat Performance Monitoring【转】
原文地址 https://stackify.com/tomcat-performance-monitoring/ Overview Monitoring the metrics and runtime ...
- linux那些事之pin memory相关API
内核中为pin memory 用户空间申请物理内存除了get_user_pages() API函数之外,还有其他相关一系列函数,主要位于mm\gup.c 主要都是针对get_user_pages进行的 ...
- linux 内核设备管理模型sysfs(进阶篇)
<linux 内核设备管理模型sysfs(入门篇)>讲述了内核设备管理模型sysfs的基础管理单元kobject和kset,但是在实际过程中很少有驱动工程师有机会直接操作上述结构,linu ...
- ITU-T G.1081 IPTV性能监测点 (Performance monitoring points for IPTV)
ITU-T 建议书 G.1081 IPTV性能监测点 Performance monitoring points for IPTV Summary Successful deployment of I ...
- 详解 ARM PMU (Performance Monitoring Unit)
本文会详细讲解ARM PMU模块原理及代码流程 kernel version=4.14.90, arch=arm64 初始化流程: arch/arm64/kernel/perf_event.cdevi ...
- Rooting A Linux System 101
So you want to root a linux system? But, you don't know shit about it? Well, this guide is for you. ...
最新文章
- 马上 2018 年了,该不该下定决心转型AI呢?
- C 上传文件到服务器(含接收端源码)
- 协同过滤的itemCF,userCF区别适用场景
- SQL Server 2008 复习(一)
- 7价 半导体掺杂_天津大学封伟团队:新型半导体二维原子晶体锗硅烷材料的带隙调控...
- FreeEIM通讯软件平均需要5分钟才能
- desktop docker 无法卸载_在docker-for-desktop OSX上删除kubernetes集群
- 源码分析参考:Scheduler
- 一文带你了解数仓智能运维框架
- 算法与程序设计_算法与程序设计入门-简单计算题1
- mysql练习(重)
- 解读I2C协议和读写流程
- 【转】深入理解Java:SimpleDateFormat安全的时间格式化
- 袁承兴:【译】Async/Await(一)——多任务
- RatingBar的实现
- 计算机毕业论文基于springboot的社区物业服务管理项目源码
- Ajax实战(Ajax in action中文版)[一周内7折] →推荐 →新书
- php后端学习重点是,后端开发新手/小白学习之-前后端如何交互详解和重点学习...
- 2021年全球消费级音频产品行业调研及趋势分析报告
- redis安装和特性
热门文章
- Unity网络多玩家游戏开发教程(上册)
- 基于Android设备的Kali Linux渗透测试教程第1章渗透测试
- java支持iSCSI协议,ISCSI协议
- java强制转换成float_在Java中什么时候double必须强制转换成float 就是要在数值后加f或者强制转换...
- java 可控异常_java异常处理,重新认识java异常,java7异常处理的新特性!
- go python php 压力测试_pyLot 基于python的压力测试工具
- Mac 设置文件默认打开方式
- 致力推广Vim的那个程序员走了,Vim之父:我要把9.0版献给他
- 这套监控系统让打工人颤抖:离职倾向、摸鱼通通都能被监测,争议出现后产品页面已404...
- 吴恩达:AI是时候从大数据转向「小数据」了