Subject: Re: VM Cache size
To: Mahesh Chittur <>
From: Manuel Bouyer <>
List: tech-pkg
Date: 11/14/2003 22:10:40
On Thu, Nov 13, 2003 at 06:45:49PM +0000, Mahesh Chittur wrote:
> Hi,
> I'm trying to fetch the amount of free cache in a system. I'm not able to 
> find the correct parameter for it. I'm using the "sysctl" system call.
> 	e.g..,
> 		int mib[]={CTL_VM, <don't know>};
> 		sysctl( mib, 2, <don't know>,  sizeof(<don't know>), NULL,  
> 		0);
> Could you please help me in figuring out the don't know part, or suggest me 
> other ways to go about. Thankx in advance for the help.

I don't know if this is directly available as a number.
Maybe it's in the struct returned by VM_METER or VM_UVMEXP* ?

Manuel Bouyer <>
     NetBSD: 24 ans d'experience feront toujours la difference