Add arc_state_t stats to arcstats
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 30 Jan 2012 21:28:40 +0000 (13:28 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 27 Feb 2012 16:58:59 +0000 (08:58 -0800)
commit13be560d89e9de63bdf63e8187af2ceb90cf094d
tree3565b08a1b088853b025262d39fa2ce364a83039
parent3a4f6caf08c095397f87f8e6fc5d734a56fff9c9
Add arc_state_t stats to arcstats

To ensure the arc is behaving properly we need greater visibility
in to exactly how it's managing the systems memory.  This patch
takes one step in that direction be adding the current arc_state_t
for the anon, mru, mru_ghost, mfu, and mfs_ghost lists.  The l2
arc_state_t is already well represented in the arcstats.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/arc.c