Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2025 17:40:49 -0800
From:      bob prohaska <fbsd@www.zefox.net>
To:        freebsd-current@freebsd.org, freebsd-arm@freebsd.org
Subject:   Re: kernel: warning: total configured swap (493567 pages) exceeds maximum recommended amount
Message-ID:  <aRKUIeAydIPE8pHN@www.zefox.net>
In-Reply-To: <aRJ1RgThaq5eZNKc@int21h>

index | next in thread | previous in thread | raw e-mail

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

 
> 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aRKUIeAydIPE8pHN>