High memory consumption in `kmalloc-32`, `kmalloc-64` when use the module `airlockdriver`
Issue
- Memory was mainly consumed in
SLAB
crash> kmem -i
PAGES TOTAL PERCENTAGE
TOTAL MEM 8190373 31.2 GB ----
FREE 244850 956.4 MB 2% of TOTAL MEM
USED 7945523 30.3 GB 97% of TOTAL MEM
SHARED 266686 1 GB 3% of TOTAL MEM
BUFFERS 520 2 MB 0% of TOTAL MEM
CACHED 630496 2.4 GB 7% of TOTAL MEM
SLAB 6913239 26.4 GB 84% of TOTAL MEM <---
TOTAL HUGE 0 0 ----
HUGE FREE 0 0 0% of TOTAL HUGE
TOTAL SWAP 2097151 8 GB ----
SWAP USED 340544 1.3 GB 16% of TOTAL SWAP
SWAP FREE 1756607 6.7 GB 83% of TOTAL SWAP
COMMIT LIMIT 6192337 23.6 GB ----
COMMITTED 1192737 4.5 GB 19% of TOTAL LIMIT
- Most SLAB was consumed in kmalloc-64 and kmalloc-32, kmalloc-16.
crash> kmem -s | awk '{print $1 "\t" $NF "\t" $2*$4/1024.0/1024.0 " MB"}' | column -t | sort -k3nr | head
ffff9270bfc07b00 kmalloc-64 12319.6 MB
ffff9270bfc07c00 kmalloc-32 12169.4 MB
ffff9270bfc07d00 kmalloc-16 2063.82 MB
ffff92775dff0600 xfs_inode 116.334 MB
ffff9270bfc05000 dentry 68.5833 MB
ffff9270bfc06300 radix_tree_node 46.2079 MB
ffff9270bfc07400 kmalloc-2048 27.0312 MB
ffff9270bfc05500 buffer_head 24.1021 MB
ffff9270bfc04f00 inode_cache 13.0492 MB
ffff9270bfc05400 selinux_inode_security 11.4745 MB
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.