Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2012 18:19:34 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Nikolay Denev <ndenev@gmail.com>, John Baldwin <jhb@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r237656 - in head: contrib/top usr.bin/top
Message-ID:  <507ECC86.4080503@FreeBSD.org>
In-Reply-To: <38E42006-48A5-4AF7-9892-EB81583FE5A9@gmail.com>
References:  <201206271808.q5RI8m0d024853@svn.freebsd.org> <38E42006-48A5-4AF7-9892-EB81583FE5A9@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?507ECC86.4080503>