From owner-freebsd-questions@FreeBSD.ORG Fri Oct 18 14:24:00 2013 Return-Path: Delivered-To: freebsd-questions@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 ESMTP id 2412377C for ; Fri, 18 Oct 2013 14:24:00 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B298325B0 for ; Fri, 18 Oct 2013 14:23:59 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id c11so3769731wgh.26 for ; Fri, 18 Oct 2013 07:23:58 -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=edHH/2Bng/MgZIOAz1IcC7tKnifGf3EcAMQFOUYQjP8=; b=C0jLfE35jKsT3+Lm1ylaE5yAfdDSa4Uy0E6fvgHyYoVVWGTBAfTxJH8UCGuniK5zkB 2dEMYxxbJ0wYq61GSKZZZY0nlfUVMfoZp4w+WcMo49UjKCnxUanOQ6aDoeV9qpOOuf4G MTZ+1WpJeG+jCpZPAz0ex8OFRQyIqKmIUgDSnl5yLW7XnvkD6LOC3UjkBrHgJj10j6Rx fLeBJBY1dprNQa2/UIgn2vNAucH2TRYUziEqAV4z7LutP7qaxpEgAyW+avo1WFdVJpDV bFGmGd4QjkJzs66/q7aX1xGUvWstMh1hRB7qjaAecH1QsJoD8L6IjOu9iPxurt10yy/f WNWw== X-Received: by 10.194.94.167 with SMTP id dd7mr2102136wjb.43.1382106238041; Fri, 18 Oct 2013 07:23:58 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPSA id bs15sm27503372wib.10.2013.10.18.07.23.56 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 18 Oct 2013 07:23:57 -0700 (PDT) Date: Fri, 18 Oct 2013 15:23:55 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: warning: total configured swap (8960911 pages) exceeds maximum recommended amount (8243200 pages). Message-ID: <20131018152355.69447de7@gumby.homeunix.com> In-Reply-To: <201310181254.r9ICshUi050154@mech-cluster241.men.bris.ac.uk> References: <20131018134153.4dc44e93@gumby.homeunix.com> <201310181254.r9ICshUi050154@mech-cluster241.men.bris.ac.uk> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 14:24:00 -0000 On Fri, 18 Oct 2013 13:54:43 +0100 (BST) Anton Shterenlikht wrote: > Looking at the article > ( http://blog.frankleonhardt.com/2011/large-swap-files-on-freebsd-die-with-mystery-killed-howto-add-lots-of-swap-space/ > ) the default value of kern.maxswzone has also > changed meaning. > > On r256683 I get: > > # sysctl kern.maxswzone > kern.maxswzone: 0 > # > > So I'm not sure, do I set this variable > to the *total* swap size? It would be the metadata size. > Or to the excess, above the "maximum > recommended amount" reported by dmesg? As I pointed out before, you can only use kern.maxswzone to reduce the size below the default. Actually I think you're going to be OK. I had a look at the code that generated the warning: "total configured swap (8960911 pages) exceeds maximum recommended amount (8243200 pages)." The recommended limit is half the theoretical maximum, so you're just reducing the safety margin by 9%.