Subject: Re: Reporting free memory: vmstat output hard to read
To: None <muc-lists-netbsd-users@moderators.muc.de>
From: Michael Core <520079546242-0001@t-online.de>
List: netbsd-users
Date: 04/28/2002 23:15:02
B. James Phillippe spamblock wrote:

> Hello,
> 
> I'm still relatively new to NetBSD, and haven't found a good way yet to
> determine memory use totals (including swap) for free/in-use memory on
> my NetBSD server.  I can run top, but I'd like a quick single-line
> output method, if one exists.  When I run vmstat I don't see swap listed
> separately (BTW the memory numbers are listed with no white-space
> between them (I have 512MB phys) so it's difficult to read).

You can view your swap usage by "swapctl -l". You don't even need
privileges for swapctl except access to /sbin and /sbin/swapctl, of
course.