Re: kernel: warning: total configured swap (493567 pages) exceeds maximum recommended amount

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Tue, 11 Nov 2025 16:58:45 UTC
bob prohaska <fbsd@www.zefox.net> writes:
> So I'm flirting with trouble on a system (Pi2/armv7 FWIW) reporting
> warning: total configured swap (1024000 pages) exceeds maximum recommended amount (467488 pages).
> warning: increase kern.maxswzone or reduce amount of swap. ?

The maximum recommended amount is half the maximum supported amount, so
you not only have more swap than recommended, you have more swap than
the kernel can actually use (467488 * 2 = 934976 pages) and should
consider either increasing kern.maxswzone so the kernel can use all of
the swap you've configured (at the cost of slightly reducing usasble
physical memory) or decreasing the amount of swap.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org