]> git.proxmox.com Git - mirror_spl-debian.git/commit
Add slab usage summeries to /proc
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 26 Mar 2011 07:03:32 +0000 (00:03 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 7 Apr 2011 03:06:03 +0000 (20:06 -0700)
commit3336e29cc2e328c6e665de9f4563aa8a4b874194
tree303295d60cffd16cdc516c7c5fb39f1114834c0d
parentd0a1038ff39a082a098fc710dc16f8125369d084
Add slab usage summeries to /proc

One of the most common things you want to know when looking at
the slab is how much memory is being used.  This information was
available in /proc/spl/kmem/slab but only on a per-slab basis.
This commit adds the following /proc/sys/kernel/spl/kmem/slab*
entries to make total slab usage easily available at a glance.

  slab_kmem_total - Total kmem slab size
  slab_kmem_avail - Alloc'd kmem slab size
  slab_kmem_max   - Max observed kmem slab size
  slab_vmem_total - Total vmem slab size
  slab_vmem_avail - Alloc'd vmem slab size
  slab_vmem_max   - Max observed vmem slab size

NOTE: The slab_*_max values are expected to over report because
they show maximum values since boot, not current values.
include/sys/kmem.h
module/spl/spl-proc.c