From owner-freebsd-stable@freebsd.org Fri Aug 14 13:50:44 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 5429F9B842A for ; Fri, 14 Aug 2015 13:50:44 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1B7991B52 for ; Fri, 14 Aug 2015 13:50:43 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1ZQF8Y-0004xd-Ki for freebsd-stable@freebsd.org; Fri, 14 Aug 2015 15:35:17 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-stable@freebsd.org Subject: Re: Swap Questions References: <55CDE9EE.5090603@tundraware.com> Date: Fri, 14 Aug 2015 15:35:09 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <55CDE9EE.5090603@tundraware.com> User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, BAYES_40, URIBL_BLOCKED autolearn=disabled version=3.3.1 X-Scan-Signature: 1f72ff50073f138f9668c095d6f579a1 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 13:50:44 -0000 On Fri, 14 Aug 2015 15:15:26 +0200, 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% > > > > 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