[DragonFlyBSD - Bug #2957] (Feedback) swapoff -a followed by swapon -a doesn't give your swap back

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sun Oct 9 04:17:52 PDT 2016

Issue #2957 has been updated by tuxillo.

Status changed from New to Feedback


Please update to latest master and confirm the problem still exists.

Antonio Huete

Bug #2957: swapoff -a followed by swapon -a doesn't give your swap back

* Author: neilb
* Status: Feedback
* Priority: Normal
* Assignee: 
* Category: Kernel
* Target version: 
I did swapoff -a taking all my swap away.  I think I got an error message about an interrupted syscall from the program at the end of it.  If you're trying to reproduce you should probably have swap space in use.

I then did swapon -a.  It doesn't complain, and I can't remember if swap is shown as existing, but if it is the swap is not used.

A few hours later the kernel killed a process and in the sys logs there was a warning saying no swap space. None was used, it's that there wasn't any available at all, used or unused.

This has been a bug for a while; I remember it for 1-2 years at least.

$ uname -a
DragonFly zotac.akihabara.co.uk 4.5-DEVELOPMENT DragonFly v4.5.0.681.g2e03c8-DEVELOPMENT #2: Sun Mar 20 21:54:05 JST 2016     root at zotac.akihabara.co.uk:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

More information about the Bugs mailing list