HomeFreeBSD

Split "data_size" into "meta" and "data"

Description

Split "data_size" into "meta" and "data"

Previously, the "data_size" field in the arcstats kstat contained the
amount of cached "metadata" and "data" in the ARC. The problem is this
then made it difficult to extract out just the "metadata" size, or just
the "data" size.

To make it easier to distinguish the two values, "data_size" has been
modified to count only buffers of type ARC_BUFC_DATA, and "meta_size"
was added to count only buffers of type ARC_BUFC_METADATA. If one wants
the old "data_size" value, simply sum the new "data_size" and
"meta_size" values.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2110

Details

Provenance
Prakash Surya <surya1@llnl.gov>Authored on Feb 3 2014, 8:41 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 22 2014, 12:10 AM
Parents
rGda8ccd0ee0d4: Prioritize "metadata" in arc_get_data_buf
Branches
Unknown
Tags
Unknown