From owner-freebsd-questions@freebsd.org Fri Jun 29 16:54:21 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F33E6EFE82D for ; Fri, 29 Jun 2018 16:54:20 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from out1-7.antispamcloud.com (out1-7.antispamcloud.com [185.201.16.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 71D9172691 for ; Fri, 29 Jun 2018 16:54:19 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from [153.92.8.106] (helo=srv31.niagahoster.com) by mx61.antispamcloud.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1fYsUM-0000V1-BP for freebsd-questions@freebsd.org; Fri, 29 Jun 2018 14:26:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sumeritec.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3ISRmpocXjOC+rKpbXYUdOpSSAqWCWuJoEhmPPYINPs=; b=P+MasSWo4gv4K/gurmLwf2Sg58 Df+yYM5z0829avFQC47ZlH/kVfNZoBfzbxzFJ4taLREgP53zkAZG1vId1hh5eQ8F00EE4+lSkP6QV 5GKdkWemqVGdMFbMIl3QPFV+W3iL8vO0qKZgOeTEcjzXDgbGD2XGg5z959jM1RscGuTIU9bKbCchB fjlml9g351PvMPuWY2+s1lTTVFkEaUQ2XEJyMCbLy3A3sTqeeTKRMEDyq+sQ3tHB56npAQFnjvy7l JU5AAWOUfy53Ci7NCBcTnWLzcUbdlIXfsfz0dK5lvs5k6QE4HHQjUh3T2HH+whnb53arF6czyNB0R G+E+56uA==; Received: from [182.1.74.53] (port=40491 helo=X220.sumeritec.com) by srv31.niagahoster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fYsTU-0004nv-PC; Fri, 29 Jun 2018 19:26:11 +0700 Date: Fri, 29 Jun 2018 20:26:03 +0800 From: Erich Dollansky To: "@lbutlr" Cc: freebsd-questions Subject: Re: swap_pager_getswapspace Message-ID: <20180629202603.0492ab82.freebsd.ed.lists@sumeritec.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-1.0 X-AuthUser: freebsd.ed.lists@sumeritec.com X-Originating-IP: 153.92.8.106 X-AntiSpamCloud-Domain: out.niagahoster.com X-AntiSpamCloud-Username: niaga Authentication-Results: antispamcloud.com; auth=pass (login) smtp.auth=niaga@out.niagahoster.com X-AntiSpamCloud-Outgoing-Class: unsure X-AntiSpamCloud-Outgoing-Evidence: Combined (0.16) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5g/+pBooMkww4zscrp7ze7F602E9L7XzfQH6nu9C/Fh9KJzpNe6xgvOx q3u0UDjvO16ABlNNUDIJIcF7N1k9wYur48C+/LzRqVzELXf1NLUsbNbo7palBZjCExzO+3olYpYA zu5kHBGUdC/aZiJWYs7O4k7ydv2Rs1VgfbHBQGgnSBWlL1zfgiPkRstzHteqQaPOkgHSemy7YOTU rTHPBdcf0wQn+qGFwFhnrZWr3AIw/crUMSB3/ZTeY4yyWjyvJUSUj3/0l2xJw0rGpf82c3OJ/VWX a+0QBQ+ZkcKKFGIcDD2gT2inkFvv0JWjnb/IrH7z+YauX/TUnX9nBqcvEWtGC53MZRR6sQBUf+3R GI7qa79VWvIC7YhNSc5yi7SDTTW5KDfvCgzPRFW9kOuxXwthYiyAm6HMnFRMH2XEM34an71UyEAm SYRWDakYlAJqAMcksCiD7GGgTVI22JLT+xx6UYABPEJmokgMViEN6xeV5xw+1JGTSb+RC3fnxNB9 mtjlDHh8k6TTdHl8m1/8O/9GdTBtdXUKO/O6WszodTDWWbQtePY27N+zj0M4GWTk2F6ZJ6jUSPgk Vd7ca7Vh+D7wB4KXwOGHMdCYNltiusneB5hQ6nsDvccjqgmDvD9Wh8h5QZDw2Glt87yeT4eNbI71 r/By9WC92Z/ExP3uCDI0N/kxUwE2fwTj8G7sDFT0fs0BGji0kUvhpmitD1Kk+2xE9dVWPMgt7WcA P3KoMcwSctgzcDoFd+96Xw4QUNtTncDTVmNP4h4hHW4W3FZBHvoP/6nnOTzuWNRjx34Wtjqqsnhg d0PJoh9pE/Qh+DBNrhiXYpmGRqLoqCVipDGlRxr4YiFPnuFy2mGGjEOFutm9c8akPXl1rSwDcf9K l92R02ti1C+8zrvIuFHNqxhfHcjaWlktivzVM5fl1rJHKB/g3mGyjSnaoQr28ssfojBfD+azqbrx /09hywAjAcAQ/dI= X-Report-Abuse-To: spam@quarantine1.antispamcloud.com X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2018 16:54:21 -0000 Hi, there was recently a long discussion regarding this. My solution is to create a file-backed memory disk and use it for swap when the media is not able or has to be reformatted. I still use the old-fashioned 2 * RAM size to determine my swap space. It seems overkill but I never had problems with this saving a lot of my time. Erich On Fri, 29 Jun 2018 04:13:54 -0600 "@lbutlr" wrote: > Getting a lot of swap_pager_getswapspace errors and erratic behavior > from my FreeBSD 11.1 mail server. > > # pstat -sm > Device 1M-blocks Used Avail Capacity > /dev/ada0p3 3656 647 3008 18% > /dev/md99 1024 444 579 43% > Total 4680 1092 3588 23% > > Which seems like I have enough... > > => 40 468862048 ada0 GPT (224G) > 40 1024 1 freebsd-boot (512K) > 1064 461372408 2 freebsd-ufs (220G) > 461373472 7488615 3 freebsd-swap (3.6G) > 468862087 1 - free - (512B) > > Should I made the md99 file larger, or should I try to expand the > freebsd-swap partition (the drive is about half full) > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"