Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Sep 2020 17:50:26 +1000
From:      Dewayne Geraghty <dewayne@heuristicsystems.com.au>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>, FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: Unusual display from sysctl on FBSD12.2S
Message-ID:  <4ad8e533-da70-12ae-5bc0-a44b8d300842@heuristicsystems.com.au>
In-Reply-To: <ec76b6ce-1155-17c3-03f4-e8573637941c@yandex.ru>
References:  <09578987-6510-9ebf-8f26-59f1444911a3@heuristicsystems.com.au> <ec76b6ce-1155-17c3-03f4-e8573637941c@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26/09/2020 12:11 am, Andrey V. Elsukov wrote:
> On 25.09.2020 09:27, Dewayne Geraghty wrote:
>> sysctl -a or sysctl vm displays on syserr,
>> sysctl: S_vmtotal 48 != 88
>>
>> on FreeBSD 12.2-STABLE #0 r365645M.  Are others experiencing this?
>>
>> It has been this way for a few months.
> Hi,
> 
> This means that your sysctl(8) binary is out of sync with your kernel.
> You need rebuild and reinstall it or the whole world.
> 

Thanks Audrey, appreciate the input.  I'll need to investigate further,
as I seem to be alone with this anomaly.  I rebuilt and reinstalled from
the 13th Sept source:

~# lh /boot/kernel/kernel /sbin/sysctl /lib/libc.so.7 ; date;  uptime;
sysctl vm>>/dev/null
-r-xr-xr-x  1 root  wheel    15M 26 Sep 17:04 /boot/kernel/kernel*
-r--r--r--  1 root  wheel   1.9M 26 Sep 17:04 /lib/libc.so.7
-r-xr-xr-x  1 root  wheel    23K 26 Sep 17:05 /sbin/sysctl*
Sat 26 Sep 2020 17:48:42 AEST
 5:48PM  up 36 mins, 1 user, load averages: 0.02, 0.06, 0.08
sysctl: S_vmtotal 48 != 88

FreeBSD hathor 12.2-STABLE FreeBSD 12.2-STABLE #0 r365645M: Sun Sep 13
04:00:22 AEST 2020
root@hathor:/usr/obj/prod/120109/D/K8/smallblocks/src/amd64.amd64/sys/hqdev-amd64-smp-vga
                            amd64 1202500 1202500

>From /usr/src/sbin/sysctl/sysctl.c:
       if (l2 != sizeof(*v)) {
                warnx("S_vmtotal %zu != %zu", l2, sizeof(*v));
                return (1);
        }

Kind regards, Dewayne.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ad8e533-da70-12ae-5bc0-a44b8d300842>