From owner-freebsd-current@freebsd.org Thu Feb 22 19:34:52 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15DCCF24401 for ; Thu, 22 Feb 2018 19:34:51 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 81A587434A for ; Thu, 22 Feb 2018 19:34:51 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3F679F243EE; Thu, 22 Feb 2018 19:34:51 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A307F243EC for ; Thu, 22 Feb 2018 19:34:51 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 850E974345; Thu, 22 Feb 2018 19:34:50 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from thor.intern.walstatt.dynvpn.de ([78.48.251.95]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MU0U9-1fFAbZ1nVZ-00QlU8; Thu, 22 Feb 2018 20:34:48 +0100 Date: Thu, 22 Feb 2018 20:34:14 +0100 From: "O. Hartmann" To: "O. Hartmann" Cc: Ian Lepore , current , Mateusz Guzik Subject: Re: top: sysctl(vfs.bufspace...) expected 8, got 4 Message-ID: <20180222203441.482d03bf@thor.intern.walstatt.dynvpn.de> In-Reply-To: <20180222195653.757840c3@thor.intern.walstatt.dynvpn.de> References: <201802211818.w1LII7fh087166@pdx.rh.CN85.dnsmgr.net> <20180221200551.718ab72f@thor.intern.walstatt.dynvpn.de> <20180222184218.2da3db1a@thor.intern.walstatt.dynvpn.de> <1519322026.91697.135.camel@freebsd.org> <20180222195653.757840c3@thor.intern.walstatt.dynvpn.de> Organization: WALSTATT User-Agent: OutScare 3.1415926 X-Operating-System: ImNotAnOperatingSystem 3.141592527 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/zKsg69IyaurjumUQG1f1Itk"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:Jff2tCX1sdcmyEMve8Xbef7WWOCaB2aNMfA2WUqWkc2MRQ+1x0+ 4CgulUAh/Cb/l9nHYVKvi+sAMfNm+hKqPAwMre89hWdUQ8TDuvJ0pVokTEF5s3DP12BDF5t jAzFfZV5VLhZ+xJTX2ziJj6N7xMcJ0yMRnVQTG51gLdhVjuEBvp77QvEUlJ65YyhaqLqvAq UwZBb4YmtAwpW3QpV8TAg== X-UI-Out-Filterresults: notjunk:1;V01:K0:6hoEIyqKI3g=:oGuLx5mvwGzDKCs3jjJa53 WbjOa3u9+acj5yqZ0OEjv+RG8d7HJv3vZPsARR8MBypeDMAXe0gzMoURccSj/HftaIR8nZUQ+ IOH9cIork0RgpRELG1FrNrF04QbSJU6yRWRi1xCmRdY4x4dUqXWNz0dEqga4kr28I5LNFJ3x0 tCLbzHYiwoR2Y0WI/zAqwhYdVBKyjPfKCbT3RbaWzOKwfhBdYbIb83qdGfTFLgRFteYCgOery EIznovyN6EJT15qY14QJlkTMZIoiVxj96af8nemX18k/B5T7nqCkTZJmRgdms6ANZDBSs6PnC GxznRC2v81ROf9MZfX6+GUtgBL3x5y1OX3MrDVgPI897/osICryy9MB0yBjp1qezxxPmrOsfz PsbAYr4JghTOkrvGDdeqwm61nnZyJXpSEUhOFxtjnVt6pXoURrxHes3d8XKAhqFTdYvHdJZXk 7aDmk9rXTo4XJxIkR0z3dpkg+MOr5emQN/t3dx/S6IHh4lMTmgANMmhXgsiAAg8ohxZFyVwdX 30oJG2UQN6X1uZ3brM5zloOhlri6MAmSl/j3oiOlFteobjdn8wc8sJAx583bzbQsIrz8RXIRf beS1fQ3zwoxxL2n6rH53CGtUBSSOQK0DDN5FmMVcnu/JiSKnlgRk42Na9u5GCVSCrfxV1Nigr YDFdSeME4AjEUfIT53VXVD0R+0C7ofoQ1CAMlk/cuJiUge6k3xLXCcIVbH+SRhHikHuMC3tuM s8CGZ1UDC/TF3n+uVAlFDn5JhYQpKMXfNECvo7xSKZ5ZhVenFDAd8baKZGtzbcbZtr8g9uy/f yDp6TZUKnrQwfIsbVaY4rsMzXSxei9mUtLlvCYqG9E5Hi63Yj677Jqhbfs99P8YRE3N251Dtj /ZXg4aP536T5EgMQOO+McfFGMngENCA9GFdDfzmHE= X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2018 19:34:52 -0000 --Sig_/zKsg69IyaurjumUQG1f1Itk Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am Thu, 22 Feb 2018 19:56:26 +0100 "O. Hartmann" schrieb: > Am Thu, 22 Feb 2018 10:53:46 -0700 > Ian Lepore schrieb: >=20 > > On Thu, 2018-02-22 at 18:41 +0100, O. Hartmann wrote: =20 > > > Am Wed, 21 Feb 2018 20:05:24 +0100 > > > "O. Hartmann" schrieb: > > > =20 > > > >=20 > > > > On CURRENT ( 12.0-CURRENT FreeBSD 12.0-CURRENT #196 r329679: Tue > > > > Feb 20 23:06:15 CET > > > > 2018 amd64) I'm honored by this nice bug when calling top: > > > >=20 > > > > top: sysctl(vfs.bufspace...) expected 8, got 4 > > > >=20 > > > >=20 > > > > Regards, > > > >=20 > > > > oh =20 > > > I still can not use "top", it quits with the error mentioned above. > > > Whats is wrong with > > > my setup? > > > =20 > >=20 > > It seems like the two big candidates must be mismatch between kernel > > and userland, or maybe 32/64-bit mismatch between the kernel and top. > >=20 > > What's the output of > >=20 > > =A0 uname -pmUK =20 > amd64 amd64 1200058 1200058 >=20 > > =A0 file `which top` =20 > /usr/bin/top: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dyn= amically > linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 12.0 (1200058), Fre= eBSD-style, > stripped > > =A0 ldd `which top` =20 > /usr/bin/top: > libncursesw.so.8 =3D> /lib/libncursesw.so.8 (0x800258000) > libm.so.5 =3D> /lib/libm.so.5 (0x8002bd000) > libkvm.so.7 =3D> /lib/libkvm.so.7 (0x8002ed000) > libjail.so.1 =3D> /lib/libjail.so.1 (0x800300000) > libc.so.7 =3D> /lib/libc.so.7 (0x800309000) > libelf.so.2 =3D> /lib/libelf.so.2 (0x800712000) > >=20 > > -- Ian > > =20 >=20 > ... so ... >=20 > @ Mateusz Guzik: I missed your patch - didn't apply clean, was rejected a= nd I > accidentally build a "usual" kernel. Will try again.=20 >=20 > At revision 329831, the target line in question is at line 414, not 423 a= s of your patch > (old source?). >=20 Stupid me ...=20 The patch, Mateusz provided, worked! My sight is some kinf of "bend", so I = missed the correct line. Mateusz provided me with this patch, which solved the issue: Index: sys/kern/vfs_bio.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/kern/vfs_bio.c (revision 329832) +++ sys/kern/vfs_bio.c (working copy) @@ -423,7 +423,7 @@ lvalue =3D 0; for (i =3D 0; i < clean_domains; i++) lvalue +=3D bdclean[i].bd_bufspace; - return (sysctl_handle_int(oidp, &lvalue, 0, req)); + return (sysctl_handle_long(oidp, &lvalue, 0, req)); } #endif --=20 O. Hartmann Ich widerspreche der Nutzung oder =DCbermittlung meiner Daten f=FCr Werbezwecke oder f=FCr die Markt- oder Meinungsforschung (=A7 28 Abs. 4 BDS= G). --Sig_/zKsg69IyaurjumUQG1f1Itk Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWo8bUQAKCRDS528fyFhY lH15AgCQjQuy5DgmydnOffzz35Mm5J/iC5lMSx9WCmya1MRhOiuIy9KWgaIP/R6a s63C+u3MQjD16E6+5jbNYYZDpzOrAgCBsRCEJ2fI9eVusfCCV1Ip4ei8o38pFPrI YG8vpye9VuU5+9ooJ1Pg1fIOvVdGo70gUwdQONxNMYcPkR3AOdBH =ePQx -----END PGP SIGNATURE----- --Sig_/zKsg69IyaurjumUQG1f1Itk--