From owner-freebsd-current@FreeBSD.ORG Fri Oct 5 11:50:19 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52DED1065672 for ; Fri, 5 Oct 2012 11:50:19 +0000 (UTC) (envelope-from levitch@iglou.com) Received: from rdsmtp.iglou.com (rdsmtp.iglou.com [192.107.41.63]) by mx1.freebsd.org (Postfix) with ESMTP id 0C3708FC16 for ; Fri, 5 Oct 2012 11:50:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iglou.com; s=alpha; h=Content-Type:MIME-Version:References:Message-ID:In-Reply-To:Subject:cc:To:From:Date; bh=O7yU+NBzrBVy73V4+g3UGR3A/maKl4t0TRCfVx/3m5I=; b=J3D8OUCXm+YR2QFVYafAcwxgDYbggaVkJKbPfYdOFwMZOfa7MiwEcjxDMeGI9e3Bn1cpSw9NITgUm3BYCaZihU5OhfUxsyeMlWdNp+/Chfxa+f3AkcvtFfmXeihYLhXMdJpkNwFHjx1CdiJm8bgB+8/gtbbtf1kzEhPZYXBuYWk=; Received: from iglou3.iglou.com ([192.107.41.6]:56454 helo=mail.iglou.com) by rdsmtp.iglou.com with esmtpa (Exim MTA/8.19.3) (envelope-from ) id 1TK6Q5-0004A4-B3 by authid with igloumta_auth for current@freebsd.org; Fri, 05 Oct 2012 07:50:17 -0400 Received: from shell1.iglou.com ([192.107.41.17]:62271 helo=shell1) by mail.iglou.com with esmtps (TLS cipher TLSv1:AES256-SHA:256) (Exim MTA/8.19.3) (envelope-from ) id 1TK6Q5-0007He-04; Fri, 05 Oct 2012 07:50:17 -0400 Date: Fri, 5 Oct 2012 07:50:16 -0400 (EDT) From: Darrel X-X-Sender: levitch@shell1 To: Sergey Kandaurov In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (GSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Originating-IP: 192.107.41.17 X-IgLou-Customer: 3cb6f76205bd20f518810676a67a982b X-Mailman-Approved-At: Fri, 05 Oct 2012 12:00:24 +0000 Cc: current@freebsd.org Subject: Re: memory warnings r240891 | dmesg X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2012 11:50:19 -0000 >> (30) @ 12:01:50> swapinfo >> Device 1K-blocks Used Avail Capacity >> /dev/zvol/bigD/swap 4194304 0 4194304 0% >> /dev/gpt/swap0.eli 3145728 0 3145728 0% >> /dev/gpt/swap1.eli 3145728 0 3145728 0% >> Total 10485760 0 10485760 0% > [...] >> ************************************************************* >> FreeBSD 10.0-CURRENT #1 r240891: Tue Sep 25 00:51:03 EDT 2012 >> warning: increase kern.maxswzone or reduce amount of swap. >> >> ************************************************************* >> >> Apparently kern.maxswzone is currently equal to 0. How might I tweak it >> just enough to fix this? > > So, reduce amount of swap :) > > This is because kernel needs some memory to manage swap too. > Currently for amd64 this roughly reduces to the following rule > (My apologies in advance for the extra simplification): > > 100MB RAM per 800MB swap space. > > So, with your current amount of RAM (893MB) it is recommended to setup > no more than 7144 MB of swap. [1] > Thanks for the good ideas. Thus far, # zfs get volsize bigD/swap NAME PROPERTY VALUE SOURCE bigD/swap volsize 4G local # zfs set volsize=1100m bigD/swap # zfs get volsize bigD/swap NAME PROPERTY VALUE SOURCE bigD/swap volsize 1.07G local (73) @ 6:55:44> swapinfo -h Device 1K-blocks Used Avail Capacity /dev/#C:0x6c 4194304 808k 4G 0% /dev/gpt/swap0.eli 3145728 772k 3G 0% /dev/gpt/swap1.eli 3145728 800k 3G 0% Total 10485760 2.3M 10G 0% - yes, it appeared that something weird happened to the file name # zfs destroy -V bigD/swap - file in use or some error # reboot # swapinfo -h Device 1K-blocks Used Avail Capacity /dev/zvol/bigD/swap 1126400 0B 1.1G 0% /dev/gpt/swap0.eli 3145728 0B 3.0G 0% /dev/gpt/swap1.eli 3145728 0B 3.0G 0% Total 7417856 0B 7.1G 0% So the zvol swap size was reduced, but the swzone error still exists. Also, the zfs create and destroy commands availed nothing- perhaps there were subsequent or subcommands to run there. Is there a good method to reduce the encrypted swap, perhaps? I might like to have a total of 3g encrypted swap plus 3g zvol swap. Darrel