Date: Tue, 20 Mar 2001 15:32:22 +1030 (CST) From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: sean-freebsd-hackers@chittenden.org Cc: freebsd-hackers@freebsd.org Subject: RE: Easy way to compute memory stats? (procfs?) Message-ID: <XFMail.010320153222.doconnor@gsoft.com.au> In-Reply-To: <20010319183135.B84536@rand.tgd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 20-Mar-01 sean-freebsd-hackers@chittenden.org wrote: > Is there an easy way (from script ideally) to get the following > stats: > > free physical mem (avail ram) > free swap > total avail mem > > any two of the three would be great. If such a beast doesn't > exist, what are the easiest calls to use to get at them so I could > write some programs that would output this info. -sc I think you can get some of these from sysctl.. Unfortunatly I don't know the MIB's to use :) Try browsing sysctl -a You could also try calling vmstat, and/or iostat. --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010320153222.doconnor>