参考sysstat的man手册
介绍sysstat的常用命令,以及各字段含义
github: link
sysstat包 包含许多商业 Unix 通用的各种实用程序,用于监控系统性能和使用活动。
sar是系统活动报告器。通过解释 sar 生成的报告,可以定位系统瓶颈并针对这些烦人的性能问题提出一些可能的解决方案。Linux 内核维护内部计数器,用于跟踪请求、完成时间、I/O 块计数等。根据这些信息和其他信息,sar 计算速率和比率,从而深入了解瓶颈所在。
sadf -d 以关系数据库可以轻松获取的格式提取数据。
pidstat命令用于监控当前由 Linux 内核管理的进程和线程。它还可以监视那些进程和线程的子进程。
命令如下(示例):
import numpy as np
命令如下(示例):
import numpy as np
字段名 | 含义 |
---|---|
kbmemfree | Amount of free memory available in kilobytes. |
kbavail | Estimate of how much memory in kilobytes is available for starting new applications, without swapping.The estimate takes into account that the system needs some page cache to function well, and that not all reclaimable slab will be reclaimable, due to items being in use. The impact of those factors will vary from system to system. |
kbmemused | Amount of used memory in kilobytes (calculated as total installed memory - kbmemfree - kbbuffers - kbcached - kbslab). |
%memused | Percentage of used memory. |
kbbuffers | Amount of memory used as buffers by the kernel in kilobytes. |
kbcached | Amount of memory used to cache data by the kernel in kilobytes. |
kbcommit | Amount of memory in kilobytes needed for current workload.This is an estimate of how much RAM/swap is needed to guarantee that there never is out of memory. |
%commit | Percentage of memory needed for current workload in relation to the total amount of memory (RAM+swap). This number may be greater than 100% because the kernel usually overcommits memory. |
kbactive | Amount of active memory in kilobytes (memory that has been used more recently and usually not reclaimed unless absolutely necessary). |
kbinact | Amount of inactive memory in kilobytes (memory which has been less recently used. It is more eligible to be reclaimed for other purposes). |
kbdirty | Amount of memory in kilobytes waiting to get written back to the disk. |
提示:这里对文章进行总结:
例如:xxx。