Kernel slab top consumers

Sort slab caches by size; dentry/inode bloat explains kernel memory pressure

slabtop -o -s c | head -20

tool
troubleshooting32 commands
tags
troubleshootingmemorykernelperformance

More troubleshooting commands

  • grep -E 'Slab|SReclaimable|SUnreclaim' /proc/meminfo

    Split slab into reclaimable vs unreclaimable; high SUnreclaim = real kernel leak

  • dmesg -T | grep -iE 'killed process|out of memory' | tail

    Find OOM victims with human timestamps; -T avoids unreadable kernel ticks

  • cat /proc/<pid>/oom_score /proc/<pid>/oom_score_adj

    Higher oom_score = likelier victim; set oom_score_adj -1000 to immunize a pid

  • cat /sys/fs/cgroup/<name>/memory.events | grep -E 'oom|max'

    oom_kill/max counters per cgroup; pod hitting memory.max before node-wide OOM

  • lsof +L1 | sort -k7 -rn | head

    df full but du clean? Unlinked files held open by a pid; restart it to reclaim

all 32 troubleshooting commands