How to check if swap is working?

Kam Leo kam.leo at gmail.com
Sat Dec 17 03:02:34 UTC 2005


On 12/16/05, Daniel B. Thurman <dant at cdkkt.com> wrote:
> >From: fedora-list-bounces at redhat.com
> >[mailto:fedora-list-bounces at redhat.com]On Behalf Of Daniel B. Thurman
> >Sent: Friday, December 16, 2005 6:41 PM
> >To: For users of Fedora Core releases
> >Subject: RE: How to check if swap is working?
> >
> >
> >>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
> >
>
>
> Errrr....  I show that I do have the swap partition loaded with
> available swap space showing however I see that 0 swap is being
> used.  Is this normal?
>
> How do I test to see if swap will work when needed?  I see
> no activity at this time....
>
> Dan
>

Use of swap depends upon the amount of physical memory that you have
installed.  Try running Openoffice.og Writer and several other big
applications such as GIMP and Eclipse.




More information about the fedora-list mailing list