gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 12:17:11 26 4
gpt4 key购买 nike

当我在命令行输入 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com