From owner-freebsd-smp Thu Apr 24 13:23:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA28787 for smp-outgoing; Thu, 24 Apr 1997 13:23:55 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id NAA28777 for ; Thu, 24 Apr 1997 13:23:51 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA01896; Thu, 24 Apr 1997 13:20:47 -0700 From: Terry Lambert Message-Id: <199704242020.NAA01896@phaeton.artisoft.com> Subject: Re: The false typo & SMP kernel problem To: ady@earthling.net Date: Thu, 24 Apr 1997 13:20:46 -0700 (MST) Cc: freebsd-smp@FreeBSD.org In-Reply-To: <335FB93A.2D2D@earthling.net> from "Penisoara Adrian" at Apr 24, 97 10:49:14 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-smp@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > Even WORSE: copied the GENERIC file and just made slight adjustements > for my system (like disabling other SCSI controllers/Network cards than > mine) and with NO SMP options and the same result: > #ps > ps: proc size mismatch (17280 total, 632 chunks) > #netstat > ??? > netstat: kvm_read: Bad address > [....] > [ totally wrong output ] > [....] The kernel structure sizes have changed, and kernel data is exported (via libkvm) as an interface. You will need to recompile /sys/libkern and /usr/src/lib/libkvm, and potentially all utilities like 'ps', 'w', 'netstat', 'ifconfig', 'vmstat', etc. which rely on likkvm. If you have just moved to 3.x from a 2.x kernel, then you will have to rebuild libc as well to get the popen changes and the newgetvfsbyname() system call used by mount and similar utilities. Before you do this, you will need to rebuild crt0.o so that the set_startup_locale (or something like that) crap doesn't bite you, and that means rebuilding all the compilation tools to rebuild ld to rebuild crt0. This takes about twice as much disk as it used to because the way the GNU stuff has been moved around to contrib (as if it weren't under GPL now, or some such nonsense). Then you will need to rebuild mount, etc., so that it calls the new calls. There are instructions on www.freebsd.org in the -current list archives. Bletch. Yuck. Bletch. Phthhhhhhtp. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.