Re: How to check if swap is working?



Daniel B. Thurman wrote:



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....

Linux tries not to use swap unless it has to.
To see swap being used, you could try exhausting your RAM with a ramdisk, filling the disk, and then trying to run a program...


Assuming you have 1GB of RAM...

mount -ttmpfs -osize=1024m /mnt /mnt
dd if=/dev/zero of=/mnt

Now you ought to have stuff in swap like mad. :-)

Hope this gets you the info you need.
Steve


-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: swap_pager complaints but not using swap
    ... using a whole 96K of swap. ... I don't see any disk related ... Traditionally swap used the b partition. ... virtual memory support. ...
    (freebsd-questions)
  • Re: Caching control
    ... of data that are merely going to be written to disk. ... enough to keep the I/O rate going at full speed. ... set into swap. ... 2GB to 3GB of RAM for what I do, not considering the bulk writing. ...
    (comp.os.linux.development.system)
  • [PATCH 0/4] compcache: compressed in-memory swapping
    ... It creates RAM based block devices which can be used as swap disks. ... Pages swapped to this device are compressed and stored in memory itself. ... these suffer from wear-leveling issues when used as swap disk ... exposes *bottlenecks* in ramzswap code due to which this gain ...
    (Linux-Kernel)
  • Re: Page fault, GEOM problem??
    ... > filesystems so the swap has to be enabled. ... > As to why you can write kernel core dumps only to certain devices the ... > check is performed whether the driver for the disk you want to dump on ...
    (freebsd-stable)
  • Re: Core Duo or Core Quad for image processing
    ... How about using an SSD as a swap disk? ... jumped from a 6MP camera to a 12MP camera and am looking to retire the ... What good is all that computing power if all you are going to do is waste it on ...
    (rec.photo.digital)