Subject: Re: Stats for memory
To: Eric Delcamp <eric.delcamp@free.fr>
From: Sean Davis <dive@endersgame.net>
List: port-i386
Date: 11/09/2004 23:54:23
On Wed, Nov 10, 2004 at 03:52:59AM +0100, Eric Delcamp wrote:
> Hi,
> I'm trying to port a simple script from FreeBSD, and I'm searching a way 
> to translate some of sysctl variables that dont exists on NetBSD. They 
> are vm.stats.vm.v_free_count, vm.stats.vm.v_wire_count,  
> vm.stats.vm.v_active_count,  vm.stats.vm.v_inactive_count and  
> vm.stats.vm.v_cache_count (free, wired, active, inactive, cache). I 
> could get some of them with "vmstat -s" but the cache is not easy to 
> get. Any tips ?
> Thanks.

I would recommend that you look through the top(1) source code.

-Sean

-- 
/~\ The ASCII
\ / Ribbon Campaign                   Sean Davis
 X  Against HTML                       aka dive
/ \ Email!