#!/bin/sh
# @file cpsudo_get_slabinfo
# @brief Returns the amount of slab memory in use
# @description which is a kernel memory type related to internal data structures.
#   It needs to be prodded occasionally to clean up more quickly than the OS defaults
#   see https://en.wikipedia.org/wiki/Slab_allocation

slab_info=$(grep dentry /proc/slabinfo 2>/dev/null)

if [ $? ]; then
    echo ${slab_info}
else
    echo "Failed to get fd list"
fi
