From owner-freebsd-questions@freebsd.org Sun Jan 20 17:02:09 2019 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 C2102149A5A4 for ; Sun, 20 Jan 2019 17:02:09 +0000 (UTC) (envelope-from phascolarctos@protonmail.ch) Received: from mail1.protonmail.ch (mail1.protonmail.ch [185.70.40.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5C4926FA7E for ; Sun, 20 Jan 2019 17:02:09 +0000 (UTC) (envelope-from phascolarctos@protonmail.ch) Date: Sun, 20 Jan 2019 17:01:50 +0000 To: FreeBSD Questions From: Lorenzo Salvadore Reply-To: Lorenzo Salvadore Subject: Re: The mysterious kern.maxswzone Message-ID: In-Reply-To: <20190120094948.GA7774@admin.sibptus.ru> References: <20190116022046.GA45024@admin.sibptus.ru> <20190120094948.GA7774@admin.sibptus.ru> Feedback-ID: X6az_D2smWSR8MT5MHqXnWF0upxehDyHia7Id1cbayHNBUkRu3CIeusDsZHiivIIjmaKB1_OofpALrRUYjNz3w==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: 5C4926FA7E X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.986,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2019 17:02:09 -0000 > Victor Sudakov wrote: > > > I have a small 11.2-RELEASE-p8 i386 system with 512M swap and 256M RAM: > > > > swapinfo > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > Device 1K-blocks Used Avail Capacity > > /dev/mirror/gm0s1b 524288 29656 494632 6% > > I guess it's not an extraordinary amount of swap for this amount of RAM= . > > However, on boot I see the warning: > > warning: total configured swap (131072 pages) exceeds maximum recommend= ed amount (113792 pages). > > warning: increase kern.maxswzone or reduce amount of swap. > > Anyone? I am not an expert on the topic, but since you lack an answer I'll try. What is the problem exactly? You only want to get rid of the warnings or something does not work properly? Assuming you just want to get rid of the warnings try to do as suggested. According to the output of "sysctl -d kern.maxswzone" this variabile regula= tes the maximum memory for swap metadata. In my case it is 0: probably this mea= ns "do not set any maximum", "use as much memory as you need". You might want to set the same value. In any case, I suggest you write us what your v= alue is. This might be related (not sure): https://stackoverflow.com/questions/4029838/determine-page-table-size-for-v= irtual-memory Lorenzo Salvadore.