linux - vmstat -m -> 页数少于总页数?

标签 linux command

当我在命令行输入 vmstat -m 时,它显示:

Cache                       Num  Total   Size  Pages
fuse_request                  0      0    424      9
fuse_inode                    0      0    768      5
pid_2                         0      0    128     30
nfs_direct_cache              0      0    200     19
nfs_commit_data               0      0    704     11
nfs_write_data               36     36    960      4
nfs_read_data                 0      0    896      4
nfs_inode_cache            8224   8265   1048      3
nfs_page                      0      0    128     30
fscache_cookie_jar            2     48     80     48
rpc_buffers                   8      8   2048      2
rpc_tasks                     8     15    256     15
rpc_inode_cache              17     24    832      4
bridge_fdb_cache             14     59     64     59
nf_conntrack_expect           0      0    240     16

对于 nfs_write_data 行(第 7 行),为什么“pages”小于“total”?

对于其中一些,“总计”始终等于“页数”。

最佳答案

取自vmstat man page

...
The -m switch displays slabinfo.
...
Field Description For Slab Mode

cache: Cache name
num: Number of currently active objects
total: Total number of available objects
size: Size of each object
pages: Number of pages with at least one active object
totpages: Total number of allocated pages
pslab: Number of pages per slab

因此,total 是 slabinfo 对象(操作系统用作 inode 、缓冲区等的对象)的数量,一个页面可以包含多个对象

关于linux - vmstat -m -> 页数少于总页数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47106758/

相关文章:

linux - 在Linux伪终端中执行从一个终端发送到另一个终端的字符串

linux - 如何在命令行上获取读卡器名称

MySQL 配置文件位置 - redhat linux 服务器

android - ionic 中的 "Error ; spawn cmd ENOENT"(ionic build android 命令)

python - python 2.7中的HTTPS请求

python - 将命令添加到用户输入

linux - Debian 8.5下无法打开10241端口

linux - 如何在启动 Linux 时写入 USB 闪存驱动器上的文本文件?

shell - 需要使用批处理/Windows 命令行枚举未知的注册表项

c - 我缺少什么,所以我可以编译我的源代码?我是新手