How to check if swap is working?

Daniel B. Thurman dant at cdkkt.com
Sat Dec 17 02:41:07 UTC 2005


>From: fedora-list-bounces at redhat.com
>[mailto:fedora-list-bounces at redhat.com]On Behalf Of Steven Ringwald
>Sent: Friday, December 16, 2005 6:35 PM
>To: For users of Fedora Core releases
>Subject: Re: How to check if swap is working?
>
>
>Daniel B. Thurman wrote:
>
>>Folks,
>>
>>I had to rebuild my filesystem and I have no idea if my swap
>>is working or not, so how can I check it?
>>
>
>
>% cat /proc/swaps
>
>This will tell you (in a parsable format) which swap devices exist and 
>how large they are, etc.
>
>Steve
>
>
>-- 
>fedora-list mailing list
>fedora-list at redhat.com
>To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

Ok, thanks to Warren and Steve for the tips!

Turns out that my swap failed to work.  I thought that when I
did a mkswap, a label would be used and the fstab would somehow
get correctly set.  I was wrong on both counts. grrr.

I had to hardpath the swap (/dev/hda3) into the fstab and
then run swapon -a command.  I rechecked swap and now I have
something other than "0"

Again, thanks for the tips!

Dan

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/204 - Release Date: 12/15/2005
 




More information about the fedora-list mailing list