[Bug 280846] Low memory freezes / OOM: a thread waited too long to allocate a page

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 16 Aug 2024 04:32:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280846

            Bug ID: 280846
           Summary: Low memory freezes / OOM: a thread waited too long to
                    allocate a page
           Product: Base System
           Version: 14.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: henrichhartzer@tuta.io

I've been getting these "a thread waited too long to allocate a page"
OOM-related freezes and crashes for at least 3 major releases. 12, 13, and 14.

I see it mostly with Firefox, possibly Gimp. Certain websites will seem to make
it a lot more likely to happen. System will lock up for 30 seconds to 5 minutes
until it kills something. Sometimes it kills nothing and it starts acting fine.

I have default sysctls in regards to OOM. Are there some settings I can use to
make it kill faster, or more conservatively allow allocations?

I'm on x86_64 with 16GB of memory. I can be pushing 50 tabs when this happens.
Sometimes less, sometimes more. It seems like it's much more likely to happen
on some bloated websites, like HomeDepot, than lean websites like freebsd.org.

I assume Firefox is partly to blame, but I feel like FreeBSD should be able to
tame it to some degree.

Thank you!

-- 
You are receiving this mail because:
You are the assignee for the bug.