on 17/10/2012 18:04 Nikolay Denev said the following:
> It looks like MFU and MRU are swapped in top's display.
> 
> I'm using this to correct the output:
> 
> --- /usr/src/.zfs/snapshot/patches/usr.bin/top/machine.c        2012-09-26 
> 08:20:26.000000000 +0200
> +++ usr.bin/top/machine.c       2012-10-17 17:00:14.988895167 +0200
> @@ -515,9 +515,9 @@
>         if (arc_enabled) {
>                 GETSYSCTL("kstat.zfs.misc.arcstats.size", arc_stat);
>                 arc_stats[0] = arc_stat >> 10;
> -               GETSYSCTL("vfs.zfs.mfu_size", arc_stat);
> -               arc_stats[1] = arc_stat >> 10;
>                 GETSYSCTL("vfs.zfs.mru_size", arc_stat);
> +               arc_stats[1] = arc_stat >> 10;
> +               GETSYSCTL("vfs.zfs.mfu_size", arc_stat);
>                 arc_stats[2] = arc_stat >> 10;
>                 GETSYSCTL("vfs.zfs.anon_size", arc_stat);
>                 arc_stats[3] = arc_stat >> 10;

Good catch!  Indeed.

-- 
Andriy Gapon
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to