Subject: Slow output from 'ps'
To: None <email@example.com>
From: Gordon W. Ross <firstname.lastname@example.org>
Date: 07/01/1995 23:41:21
> Date: Sat, 1 Jul 1995 17:50:41 -0400
> From: "Charles M. Hannum" <email@example.com>
> One thing, why does 'ps aux' take about 5 seconds to complete, while
> on FreeBSD it takes roughly 0.4 seconds?
> The NetBSD version is going to reread things from swap each time,
> whereas the FreeBSD version will cause other things to be rotated out
> of the cache the first couple of times. It's a trade off of whether
> you want to allow ps(1) to be slow, or have it affect the performance
> of other programs, and whether or not you want procfs to be required.
Many other modern systems use /proc for ps.
Are there reasons NetBSD should not do that?
I generaly like getting away from any use of the old (crufty)
trick of opening /dev/kmem or /dev/mem and snooping around.
The /proc fs alternative seems nice an clean by comparison.