Re: bcm283x_dwcotg0: usbpf: Out of memory
Carl Johnson <[email protected]> Fri, 17 Apr 2026 08:43:23 -0700
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <[email protected]> |
Mark Millard <[email protected]> writes: > On 4/16/26 20:50, Carl Johnson wrote: >> bob prohaska <[email protected]> writes: >> >>> On Thu, Apr 16, 2026 at 10:45:06AM -0700, Mark Millard wrote: >>> >>> It turns out a 1.8GB swap partition does not provoke the "excess >>> swap" warning and seems sufficient for a -j3 buildworld to proceed. >>> -j4 works usually, but if Clang is fully rebuilt in -j4 the machine >>> _can_ run out of swap and kill processes. >>> >>> Using swap on microSD or USB flash led (I think) to subtle binary >>> corruption that you helped me sort out. Since then I've used only >>> mechanical hard disks for swap and have not seen any obvious repeats. >> >> I was looking at some old notes for a Raspberry Pi 2 and I had set >> kern.maxswzone=20971520 in /boot/loader.conf with 3.5GB of swap space. > > Do you know what tradeoffs were involved from the use of: > kern.maxswzone=20971520 ? > > I've never figured out how to tell better from worse non-default > settings based on whatever the specific tradeoffs are versus workload > needs. No, I don't know what tradeoffs were involved. It was just something that I had tried that worked. My notes show that I also tried 15000000 and that wasn't large enough. I have also never been able to figure out what is best. >> That was on a swap partition on a 64GB SD card. I am not sure what size >> was necessary, but that was something that worked then without the swap >> space too large warning. I haven't tried that for some time, so I can't >> offer any more help than that. It looks like I was running FreeBSD >> 12.1-RELEASE at that time. >> >> I hope that helps some. >> -- Carl Johnson [email protected]