内核中频繁的分配和释放内存会导致整体系统性能的下降,所以内核对这类问题的分配有必要采用高速缓存,而这类缓存经常用到slab,可通过cat /proc/slabinfo观察,slab用于分配低端内存,和vmalloc无关。
cat /proc/slabinfo
# name <active_objs> <num_objs> <objsize> <objperslab> <pagesperslab> : tunables <limit> <batchcount> <sharedfactor> : slabdata <active_slabs> <num_slabs> <sharedavail>
SCTPv6 1 22 1472 22 8 : tunables 0 0 0 : slabdata 1 1 0
PINGv6 0 0 1152 28 8 : tunables 0 0 0 : slabdata 0 0 0
部分参数含义如下:
slabtop命令相关信息