How can I check for swap space? (4.8-Release)

Mike Tancsa mike at
Thu Aug 7 16:15:16 PDT 2003

At 07:16 PM 8/7/2003 -0400, John Mills wrote:
>Freebies -
>I just installed 4.8-Release from CDs and let the installer divide my disk
>automatically. Things are acting as though I have little or no active swap
>2. How can I check what I got? (No joy yet from 'fdisk' on that.)

cat /etc/fstab
will show you what gets mounted at boot time.
pstat -T
and disklabel

disklabel twed0s1
disklabel ad0s1

depending on what you have mounted.

>3. How do I check current memory usage (sim. 'free' in Linux)?

As for memory, top and ps and vmstat are tools that will help you out.  But 
each of those have caveats you should be aware of when interperting the 

Mike Tancsa,                          	          tel +1 519 651 3400
Sentex Communications,     			  mike at
Providing Internet since 1994          
Cambridge, Ontario Canada

More information about the freebsd-questions mailing list