From owner-freebsd-current Mon Jul 13 23:04:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA24721 for freebsd-current-outgoing; Mon, 13 Jul 1998 23:04:03 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from korin.warman.org.pl (korin.nask.waw.pl [148.81.160.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA24451 for ; Mon, 13 Jul 1998 23:01:52 -0700 (PDT) (envelope-from abial@nask.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.8.8/8.8.5) with SMTP id IAA07139; Tue, 14 Jul 1998 08:03:44 +0200 (CEST) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Tue, 14 Jul 1998 08:03:44 +0200 (CEST) From: Andrzej Bialecki X-Sender: abial@korin.warman.org.pl To: Chris Csanady cc: Matthew Patton , freebsd-current@FreeBSD.ORG Subject: Re: living without PROCFS In-Reply-To: <199807132227.PAA16266@tarsier.ca.sandia.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 13 Jul 1998, Chris Csanady wrote: > > >Is there any way to eliminate the use of procfs from -current? I > > Well without procfs, you are stuck with groveling through kmem. Kmem is a > terrible interface for this type of thing, as it requires a recompile of > many utilites when the kernel structures change. It is arguable much more > dangerous as well, since it requires access to all of kernel memory. Not necessarily. Most data can be obtained through sysctl(3) - in fact, if I remember correctly, last month someone commited changes to ps and netstat to rely more on that instead of procfs/kmem. And sysctl interface is _way_ cleaner than either procfs or (*shudder*) kvm. As it is now in -current, you can retrieve exactly the same information about processes via sysctl as via procfs (there is still a part being obtained via kvm). Andrzej Bialecki +---------------------+------------------------+--------------------------+ | | When in problem or in | if(halt_per_mth > 0) { | | Research & Academic | doubt, run in circles, | fetch("FreeBSD"); | | Network in Poland | scream and shout. | } | + --------------------+------------------------+--------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message