Date: Tue, 14 Jul 1998 08:03:44 +0200 (CEST) From: Andrzej Bialecki <abial@nask.pl> To: Chris Csanady <cc@tarsier.ca.sandia.gov> Cc: Matthew Patton <patton@sysnet.net>, freebsd-current@FreeBSD.ORG Subject: Re: living without PROCFS Message-ID: <Pine.BSF.4.00.9807140757480.2945-100000@korin.warman.org.pl> In-Reply-To: <199807132227.PAA16266@tarsier.ca.sandia.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
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
+---------------------+------------------------+--------------------------+
| <abial@nask.pl> | 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.00.9807140757480.2945-100000>
