High memory consumption with a large number of dentry slab objects

Solution Verified - Updated -

Issue

  • Memory consumption is high
  • /proc/meminfo shows the majority of memory usage is in slab (either SReclaimable or SUnreclaimable)
  • System shows memory pressure symptoms including but not limited to:
    • High memory usage
    • Potential increase in swap activity
    • Increase in major faults as seen in SAR
    • Increase in direct or indirect page scanning as seen in SAR (listed under pgscank/s for indirect scanning and pgscand/s for direct scanning)
    • Low reclaim rate as seen in SAR (under %vmeff)
  • slabtop and /proc/slabinfo show a large amount of memory used by dentry slab objects

Environment

Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In