From owner-freebsd-stable@freebsd.org Fri Aug 14 17:40:05 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BF1F19B8875 for ; Fri, 14 Aug 2015 17:40:05 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 830F41ABE for ; Fri, 14 Aug 2015 17:40:05 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id t7EHdwdf023321 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 14 Aug 2015 11:39:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id t7EHdvV3023318; Fri, 14 Aug 2015 11:39:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 14 Aug 2015 11:39:57 -0600 (MDT) From: Warren Block To: Tim Daneliuk cc: FreeBSD Stable Maling List Subject: Re: Swap Questions In-Reply-To: <55CDE9EE.5090603@tundraware.com> Message-ID: References: <55CDE9EE.5090603@tundraware.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 14 Aug 2015 11:39:58 -0600 (MDT) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2015 17:40:05 -0000 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.