发布网友 发布时间:2022-03-01 08:24
共5个回答
热心网友 时间:2022-03-01 09:54
top命令可以显示当前系统正在执行的进程的相关信息,包括进程ID、内存占用率(MEM)、CPU占用率等。热心网友 时间:2022-03-01 11:12
P – 以 CPU 占用率大小的顺序排列进程列表热心网友 时间:2022-03-01 12:46
进入top界面后,输入Shift+M热心网友 时间:2022-03-01 14:38
slabtop追答1.简介:实时显示内核slab内存缓存信息
2.使用:
slabtop –delay=n, -d n 每隔n秒刷新信息
slabtop –sort=S, -s S 按照S排序,其中S为排序标准
–once, -o 显示一次并退出
3.排序标准
a: sort by number of active objects
b: sort by objects per slab
c: sort by cache size
l: sort by number of slabs
v sort by number of active slabs
n: sort by name
o: sort by number of objects
p: sort by pages per slab
s: sort by object size
u: sort by cache utilization
4.数据分析
[root@huanxiangwu ~]# slabtop -o
Active / Total Objects (% used) : 342368 / 362880 (94.3%)
Active / Total Slabs (% used) : 7873 / 7873 (100.0%)
Active / Total Caches (% used) : 103 / 150 (68.7%)
Active / Total Size (% used) : 27814.06K / 29616.44K (93.9%)
Minimum / Average / Maximum Object : 0.01K / 0.08K / 128.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
133980 133862 99% 0.02K 660 203 2640K avtab_node
92886 92653 99% 0.03K 822 113 3288K size-32
28626 27174 94% 0.05K 367 78 1468K selinux_inode_security
25816 25614 99% 0.48K 3227 8 12908K ext3_inode_cache
23693 18692 78% 0.13K 817 29 3268K dentry_cache
21240 15306 72% 0.05K 295 72 1180K buffer_head
6174 5758 93% 0.27K 441 14 1764K radix_tree_node
热心网友 时间:2022-03-01 16:46
按大写的M键