Date: Thu, 17 Oct 2013 16:26:16 +0100 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: warning: total configured swap (8960911 pages) exceeds maximum recommended amount (8243200 pages). Message-ID: <20131017162616.70795c30@gumby.homeunix.com> In-Reply-To: <201310171404.r9HE4ouQ018448@mech-cluster241.men.bris.ac.uk> References: <201310171404.r9HE4ouQ018448@mech-cluster241.men.bris.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 17 Oct 2013 15:04:50 +0100 (BST) Anton Shterenlikht wrote: > I'm using a 72gb swap disk. > I've 10gb RAM > > I get this warning: > > warning: total configured swap (8960911 pages) exceeds maximum > recommended amount (8243200 pages). warning: increase kern.maxswzone > or reduce amount of swap. > > What is max. recommended amount based on? > What is the danger of exceeding it? > How should I increase kern.maxswzone? > > # sysctl kern.maxswzone > kern.maxswzone: 0 > # > > Do I set it to the total swap size? > Where is kern.maxswzone described? $ sysctl -d kern.maxswzone kern.maxswzone: Maximum memory for swap metadata see also loader(8) However setting kern.maxswzone can only be used to reduce the metadata size below the default, not increase it. from swap_pager.c: n = cnt.v_page_count / 2; if (maxswzone && n > maxswzone / sizeof(struct swblock)) n = maxswzone / sizeof(struct swblock); n2 = n;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131017162616.70795c30>