fix top after arc accounting change
This commit is contained in:
parent
9f3a171221
commit
ef8e2d2d01
@ -522,8 +522,12 @@ get_system_info(struct system_info *si)
|
||||
GETSYSCTL("kstat.zfs.misc.arcstats.hdr_size", arc_stat);
|
||||
GETSYSCTL("kstat.zfs.misc.arcstats.l2_hdr_size", arc_stat2);
|
||||
arc_stats[4] = (arc_stat + arc_stat2) >> 10;
|
||||
GETSYSCTL("kstat.zfs.misc.arcstats.other_size", arc_stat);
|
||||
GETSYSCTL("kstat.zfs.misc.arcstats.bonus_size", arc_stat);
|
||||
arc_stats[5] = arc_stat >> 10;
|
||||
GETSYSCTL("kstat.zfs.misc.arcstats.dnode_size", arc_stat);
|
||||
arc_stats[5] += arc_stat >> 10;
|
||||
GETSYSCTL("kstat.zfs.misc.arcstats.dbuf_size", arc_stat);
|
||||
arc_stats[5] += arc_stat >> 10;
|
||||
si->arc = arc_stats;
|
||||
}
|
||||
if (carc_enabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user