1
OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME
5520396 3165734  57%    0.38K 131438       42   2103008K mnt_cache

I searched the kernel source code, only 1 hit, and I'm unable to interpret from it. https://github.com/torvalds/linux/search?q=mnt_cache

1 Answer 1

1

This is the slab cache for struct mount allocations which are used to store information about mount points. The cache is initialised in mnt_init and used whenever a struct mount needs to be instantiated in alloc_vfsmnt.

1
  • Thank you. Worth noting for whoever comes to this via Google, in my case, the real culprit was NOT mnt_cache and slabtop was was misleading. With slabinfo -a output, I was able to identify that the slab shown as mnt_cache was also used by other structs like blkdev_requests dm_old_clone_request mnt_cache ip_vs_conn. In my case, the culprit was ip_vs_conn. I've no idea why slabtop decides to choose one alias randomly which has the shortest length. github.com/torvalds/linux/blob/… Jan 27, 2023 at 19:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .