Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2025 13:55:20 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        void <void@f-m.fm>
Cc:        freebsd-current@freebsd.org, freebsd-arm@freebsd.org
Subject:   Re: kernel: warning: total configured swap (493567 pages) exceeds maximum recommended amount
Message-ID:  <1155875772.165920.1762865720265@localhost>
In-Reply-To: <aRMqTQLTnl12EBBi@int21h>
References:  <aRJ1RgThaq5eZNKc@int21h> <aRKUIeAydIPE8pHN@www.zefox.net> <aRMqTQLTnl12EBBi@int21h>

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

[-- Attachment #1 --]
Hi,

You can take a look at the script /etc/rc.d/growfs .
It runs on firstboot. The script contains a comment explaining what it does.

Regards,
Ronald.

 
Van: void <void@f-m.fm>
Datum: dinsdag, 11 november 2025 13:45
Aan: freebsd-current@freebsd.org, freebsd-arm@freebsd.org
Onderwerp: Re: kernel: warning: total configured swap (493567 pages) exceeds maximum recommended amount
> 
> On Mon, Nov 10, 2025 at 05:40:49PM -0800, bob prohaska wrote:
> >On Mon, Nov 10, 2025 at 11:29:10PM +0000, void wrote:
> 
> >> fstab entry for swap is:
> >> /dev/label/growfs_swap  none            swap    sw              0       0
> 
> >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
> 
> I'm thinking maybe raising this as a PR because that swap thing - it came
> as-is, pre-installed. I downloaded the Nov 3rd armv7 snapshot,
> wrote it to mmcsd and it was there. I have no idea how to resize or otherwise
> modify /dev/label/growfs_swap or if it's a device or a file.
> Raising it as a PR because if incorrectly sized by default then that's
> a fault.
> 
> I had planned to remove the above swap entry anyway and instead have
> swap nfs-mounted. it'd be faster than anything local on the rpi2b.
> 
> >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.
> 
> It's on the microsd by default for 16:main for armv7 too as per above
> 
> >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.
> 
> Thanks, I'll have a read.
> 
> -- 
>  
> 
> 
> 

 
[-- Attachment #2 --]
<html><head></head><body>Hi,<br>
<br>
You can take a look at the script&nbsp;/etc/rc.d/growfs .<br>
It runs on firstboot. The script contains a comment explaining what it does.<br>
<br>
Regards,<br>
Ronald.<br>
<br>
&nbsp;
<p><strong>Van:</strong> void &lt;void@f-m.fm&gt;<br>
<strong>Datum:</strong> dinsdag, 11 november 2025 13:45<br>
<strong>Aan:</strong> freebsd-current@freebsd.org, freebsd-arm@freebsd.org<br>
<strong>Onderwerp:</strong> Re: kernel: warning: total configured swap (493567 pages) exceeds maximum recommended amount</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="TextPlainViewer" id="P.P">On Mon, Nov 10, 2025 at 05:40:49PM -0800, bob prohaska wrote:<br>
&gt;On Mon, Nov 10, 2025 at 11:29:10PM +0000, void wrote:<br>
<br>
&gt;&gt; fstab entry for swap is:<br>
&gt;&gt; /dev/label/growfs_swap &nbsp;none &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap &nbsp;&nbsp;&nbsp;sw &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>
<br>
&gt;I've not seen any recognizable benefit in heeding &nbsp;that warning, but YMMV<br>
&gt;I've two Pi2's with 3.6G of swap and one with 1.7G of swap. All misbehave<br>
&gt;in the same way.<br>
&gt;<br>
&gt;If using USB you could try something like (as root)<br>
&gt;swapoff /dev/da0s2<br>
&gt;gpart resize -i 2 -s 1700M /dev/da0s2<br>
&gt;swapon /dev/da0s2<br>
<br>
I'm thinking maybe raising this as a PR because that swap thing - it came<br>
as-is, pre-installed. I downloaded the Nov 3rd armv7 snapshot,<br>
wrote it to mmcsd and it was there. I have no idea how to resize or otherwise<br>
modify /dev/label/growfs_swap or if it's a device or a file.<br>
Raising it as a PR because if incorrectly sized by default then that's<br>
a fault.<br>
<br>
I had planned to remove the above swap entry anyway and instead have<br>
swap nfs-mounted. it'd be faster than anything local on the rpi2b.<br>
<br>
&gt;If using microSD I'd be wary of swap; some very mysterious file corruption<br>
&gt;emerged on a Pi3 which had swap on the microSD. Not your situation, of course,<br>
&gt;just a cautionary tale.<br>
<br>
It's on the microsd by default for 16:main for armv7 too as per above<br>
<br>
&gt;FWIW there is a random collection of "notes to self" at<br>
&gt;<a href="http://www.zefox.net/~fbsd/">http://www.zefox.net/~fbsd/</a><br>;
&gt;It's poorly organized, out of date and at least partly wrong.<br>
<br>
Thanks, I'll have a read.<br>
<br>
--&nbsp;<br>
&nbsp;</div>

<hr></div>
</blockquote>
<br>
&nbsp;</body></html>
help

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