Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 2015 13:33:00 -0500
From:      Tim Daneliuk <tundra@tundraware.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        FreeBSD Stable Maling List <freebsd-stable@freebsd.org>
Subject:   Re: Swap Questions
Message-ID:  <55CE345C.8080204@tundraware.com>
In-Reply-To: <alpine.BSF.2.20.1508141135030.80352@wonkity.com>
References:  <55CDE9EE.5090603@tundraware.com> <alpine.BSF.2.20.1508141135030.80352@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/14/2015 12:39 PM, Warren Block wrote:
> On Fri, 14 Aug 2015, Tim Daneliuk wrote:
> 
>> I just built a 10.2 machine on a cloud-based VPS (Digital Ocean) that has
>> 512M of memory and 1G of swap partition.  I am seeing a ton of errors like
>> this:
>>
>> Aug 14 00:01:22 myhost kernel: swap_pager_getswapspace(10): failed
>> Aug 14 00:01:22 myhost kernel: swap_pager_getswapspace(14): failed
>> Aug 14 00:01:22 myhost kernel: swap_pager_getswapspace(11): failed
>> Aug 14 00:01:22 myhost kernel: swap_pager_getswapspace(6): failed
>> Aug 14 00:01:22 myhost kernel: swap_pager_getswapspace(7): failed
>> Aug 14 00:01:22 myhost last message repeated 2 times
>>
>>
>> So, I added this to fstab (after creating /usr/swap0):
>>
>> md99    none    swap    sw,file=/usr/swap0    0    0
>>
>> And then did this:
>>
>> swapon -aq
>>
>>
>> But, when I do a swapinfo, all I can see is the "disk" swap partition
>> that comes standard with the VPS:
>>
>>
>> Device          1K-blocks     Used    Avail Capacity
>> /dev/gpt/swapfs   1048576   456572   592004    44%
> 
> Add the -L (late) option to swapon.  How this works might differ between 10-Release, 10-Stable, and 11.
> 
> Incidentally, md99 does not have to be literal, it's just meant to get the md device number up out of the way of common interactive usage of mdconfig.


I can try that, but this still does not resolve the issue of md99 (I get
that its not literal :)   is not destroyed with the swapoff nor the fact
that the swap file doesn't get put into use at all on boot.

-- 
----------------------------------------------------------------------------
Tim Daneliuk     tundra@tundraware.com
PGP Key:         http://www.tundraware.com/PGP/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55CE345C.8080204>