getswapspacefailed <-- OUCH ! Help?

Chuck Swiger cswiger at
Thu May 29 10:44:10 PDT 2003

keith at wrote:
> Hi all, I have a mail server which I setup (4.7) late last year.
> iT often starts to crap out with getswapspace failed errors.
> a) How can I check how much swapspace I had allocated.

top will do, or swapinfo.

> b) How can I check if the drive has a bad block on the swap slice

dd if=_swap_device of=/dev/null bs=5120

> c) How can I fix the problem

You need to identify what the problem is, first.  Then resolve it.  :-)  How 
much RAM and swap space does the machine have?  Are you simply putting enough 
load on it to exceed the available resources?


More information about the freebsd-questions mailing list