From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 20:30:34 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 78F024BC for ; Sun, 30 Mar 2014 20:30:34 +0000 (UTC) Received: from mail-we0-x22a.google.com (mail-we0-x22a.google.com [IPv6:2a00:1450:400c:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 10CD3819 for ; Sun, 30 Mar 2014 20:30:33 +0000 (UTC) Received: by mail-we0-f170.google.com with SMTP id w61so4018786wes.1 for ; Sun, 30 Mar 2014 13:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=QIHvapwooPxM0fmW1QmV/1FIu89ke3Dr5nlZqogXuYc=; b=0/jVgPYrsZgPtmAl8V0bA+e5Or3YfCbRc/2sEVLSn60o+y8jkZxz8D2M76VNYUUhcS CDvblfUStYgU2jaRtUjKSxfo3GpBkPW7JBVVzVEEKdMXwBipNO7Ri6DykO7BmzESQyRu ZioSRSYnvN92+RKN/9pGaLQNa4l6DJ4elWDfcyppHSEJuHOmb8bxz5dy8ZKjBTF/pN31 IIWX/TGlrSz8eAUCSDvc9vRq00ZlIjCpk8OL5NsURMCAYcQ/Gbd351wmtgeS66nuJ/ef rkRGkLs5tQSyci3TzoBGlpcJ+SxNuVj8pjp+iFnDc2+a3sfI9hi7+HHLFkkI/m840jHa olqw== X-Received: by 10.194.174.197 with SMTP id bu5mr497989wjc.71.1396211432310; Sun, 30 Mar 2014 13:30:32 -0700 (PDT) Received: from gumby.homeunix.com (5ec2dcc4.skybroadband.com. [94.194.220.196]) by mx.google.com with ESMTPSA id cl9sm9347210wjc.25.2014.03.30.13.30.30 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 30 Mar 2014 13:30:31 -0700 (PDT) Date: Sun, 30 Mar 2014 21:30:28 +0100 From: RW To: freebsd-hackers@freebsd.org Subject: Re: kern.maxswzone Message-ID: <20140330213028.261022f4@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2014 20:30:34 -0000 On Fri, 7 Mar 2014 21:57:05 +0100 (CET) Wojciech Puchar wrote: > i configured 4.7GB swap on 512MB computer and i see in logs > > warning: total configured swap (1249880 pages) exceeds maximum > recommended amount (986496 pages). warning: increase kern.maxswzone > or reduce amount of swap. > > > fine, but after increasing maxswzone to 60000000 from less than 40 > millions of default, no difference in message kern.maxswzone can only be used to reduce the space used below the default, not increase it. According to loader(8) the default allows for a swap size of 8x ram. However, it's not an exact calculation, and there is a safety margin, so you may be OK if you ignore the warning.