From nobody Tue Nov 11 01:40:49 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4d58NP258zz64L8s; Tue, 11 Nov 2025 01:39:49 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pelorus.zefox.org", Issuer "pelorus.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d58NL54Zvz3Pmx; Tue, 11 Nov 2025 01:39:46 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.18.1/8.18.1) with ESMTPS id 5AB1eni6021673 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 10 Nov 2025 17:40:50 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.18.1/8.18.1/Submit) id 5AB1enmj021672; Mon, 10 Nov 2025 17:40:49 -0800 (PST) (envelope-from fbsd) Date: Mon, 10 Nov 2025 17:40:49 -0800 From: bob prohaska To: freebsd-current@freebsd.org, freebsd-arm@freebsd.org Subject: Re: kernel: warning: total configured swap (493567 pages) exceeds maximum recommended amount Message-ID: References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: - X-Spamd-Result: default: False [-1.10 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_WWW(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_DKIM_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DMARC_NA(0.00)[zefox.net]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-arm@freebsd.org]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record] X-Rspamd-Queue-Id: 4d58NL54Zvz3Pmx On Mon, Nov 10, 2025 at 11:29:10PM +0000, void wrote: > Hi, > > On a newly installed > FreeBSD-16.0-CURRENT-arm-armv7-GENERICSD-20251103-088ced14a69b-281661.img > > unmodified settings 32GB mmcsd. > > fstab entry for swap is: > > /dev/label/growfs_swap none swap sw 0 0 > > swap in top shows: > > Swap: 1928M Total, 1928M Free > > # sysctl kern.maxswzone > kern.maxswzone: 0 > > ??? > > how to fix/should I fix? I've not seen any recognizable benefit in heeding that warning, but YMMV I've two Pi2's with 3.6G of swap and one with 1.7G of swap. All misbehave in the same way. If using USB you could try something like (as root) swapoff /dev/da0s2 gpart resize -i 2 -s 1700M /dev/da0s2 swapon /dev/da0s2 If using microSD I'd be wary of swap; some very mysterious file corruption emerged on a Pi3 which had swap on the microSD. Not your situation, of course, just a cautionary tale. FWIW there is a random collection of "notes to self" at http://www.zefox.net/~fbsd/ It's poorly organized, out of date and at least partly wrong. HTH, bob prohaska >