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% Two questions: 1) Is this reasonable behavior from a machine wiht 512M of memory and a 1G swap partition? I am doing things like running clamscan and buildworld at the same time. That's why I tried to add space with a file. 2) Why doesn't the extra swap disk appear in the hostinfo output. TIA, ---------------------------------------------------------------------------- Tim Daneliuk tundra at tundraware.com PGP Key: http://www.tundraware.com/PGP/
On Fri, 14 Aug 2015 15:15:26 +0200, Tim Daneliuk <tundra at tundraware.com> 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% > > > > Two questions: > > 1) Is this reasonable behavior from a machine wiht 512M of memory and > a 1G swap partition? I am doing things like running clamscan and > buildworld at the same time. That's why I tried to add space with > a file. > > 2) Why doesn't the extra swap disk appear in the hostinfo output. >Does the /dev/md99 device exist now? Otherwise something went wrong when you tried adding swap. Try swapon -a without the -q. Ronald
HI!> Am 14.08.2015 um 15:15 schrieb Tim Daneliuk <tundra at tundraware.com>: > > 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: > > [...] > So, I added this to fstab (after creating /usr/swap0):Did you create it with dd or just with touch? You need to create a file that actually occupies the disk blocks with dd. HTH Patrick -- punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info at punkt.de http://www.punkt.de Gf: J?rgen Egeling AG Mannheim 108285
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.