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 /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> <p><strong>Van:</strong> void <void@f-m.fm><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> >On Mon, Nov 10, 2025 at 11:29:10PM +0000, void wrote:<br> <br> >> fstab entry for swap is:<br> >> /dev/label/growfs_swap none swap sw 0 0<br> <br> >I've not seen any recognizable benefit in heeding that warning, but YMMV<br> >I've two Pi2's with 3.6G of swap and one with 1.7G of swap. All misbehave<br> >in the same way.<br> ><br> >If using USB you could try something like (as root)<br> >swapoff /dev/da0s2<br> >gpart resize -i 2 -s 1700M /dev/da0s2<br> >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> >If using microSD I'd be wary of swap; some very mysterious file corruption<br> >emerged on a Pi3 which had swap on the microSD. Not your situation, of course,<br> >just a cautionary tale.<br> <br> It's on the microsd by default for 16:main for armv7 too as per above<br> <br> >FWIW there is a random collection of "notes to self" at<br> ><a href="http://www.zefox.net/~fbsd/">http://www.zefox.net/~fbsd/</a><br> >It's poorly organized, out of date and at least partly wrong.<br> <br> Thanks, I'll have a read.<br> <br> -- <br> </div> <hr></div> </blockquote> <br> </body></html>help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1155875772.165920.1762865720265>
