From owner-freebsd-arch Thu Dec 7 12:26:13 2000 From owner-freebsd-arch@FreeBSD.ORG Thu Dec 7 12:26:11 2000 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 339C237B400 for ; Thu, 7 Dec 2000 12:26:11 -0800 (PST) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id eB7KPC726457; Thu, 7 Dec 2000 12:25:12 -0800 (PST) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.1/8.11.0) id eB7KPFn65390; Thu, 7 Dec 2000 12:25:15 -0800 (PST) (envelope-from jhb) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20001207115616.V16205@fw.wintelcom.net> Date: Thu, 07 Dec 2000 12:25:15 -0800 (PST) Organization: BSD, Inc. From: John Baldwin To: Alfred Perlstein Subject: Re: Getting Kernel Process Information Cc: arch@FreeBSD.ORG, Kirk McKusick Sender: jhb@foo.osd.bsdi.com Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 07-Dec-00 Alfred Perlstein wrote: > * Kirk McKusick [001207 11:38] wrote: >> For the third time in a week, I got the following message when I >> tried to run ps on my 5.X system: >> >> proc size mismatch (39776 total, 1136 chunks) >> >> This message arises when the size of the proc structure changes. >> With the current SMP development, the proc structure changes at >> a very high rate of speed. The current kinfo_proc interface used >> between the kernel and user processes is built from two pieces: >> >> struct kinfo_proc { >> struct proc kp_proc; >> struct eproc kp_eproc; >> } [ snip ] > I completely agree that should be done. My suggestion is to > completely rip out and kernel structs being passed through > this interface, the reason is that we will need mutexes in > a lot of them and we don't want to export that to userland. He is, he's just bulking up the eproc that gets created in fill_eproc() so that proc doesn't need to be exported at all. It sounds like an excellent and noteworth goal, esp. since the KSE work is going to make this even more bizarre and confusing. :) -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message