Unusual display from sysctl on FBSD12.2S

Dewayne Geraghty dewayne at heuristicsystems.com.au
Sat Sep 26 07:51:23 UTC 2020


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 at 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.


More information about the freebsd-stable mailing list