Re:_FYI;_14.3:_A_discord_report_o f_Wired_Memory_growing_to_17_GiBy tes_over_something_like_60_days;_ ARC_shrinks_to,_say,_1942_MiBytes

From: Sulev-Madis Silber <freebsd-stable-freebsd-org730_at_ketas.si.pri.ee>
Date: Tue, 12 Aug 2025 01:24:31 UTC
damn if this is the same thing that i experience on 13. battled for long time now

the worst version of this is when wired grows to entire ram size. then entire system becomes unusable, unless you don't need userland ever

things that use mmap seem to be very good at it, as well as having storage device write speeds low "helps" as well

i'm not the only one who reports it

the problem is also hard to debug it seems, otherwise it would have been fixed? i've seen number of zfs related wtf's over a decade but they do get eventually fixed

in my case, i don't think it leaks. it does give it back on memory pressure. to a point, still super high wired and i can't see where it goes to. it's not in anywhere in that lines that various stats utils give

i think that it rightfully assumes that free ram is wasted ram and just caches something somewhere and doesn't ever give it back or at least does it very slowly

i for example observe it being ok for a while after a reboot but after you start to actually using zfs, running scrubs and so on, it gets into weird state where it's slower. nothing fails, it just stays like this

anyone else with such issues?



On August 11, 2025 11:18:47 PM GMT+03:00, Mark Millard <marklmi@yahoo.com> wrote:
>Context reported by notafet :
>
>14.3-RELEASE-p2 GENERIC on amd64 with ZFS in use
>
>RAM:  looks to be 24 GiBytes, not explicitly mentioned
>SWAP: 8192 MiBytes
>(From using the image of top's figures.)
>
>Wired:       17 GiBytes 
>ARC Total: 1942 MiBytes
>
>SWAP used: 1102 MiBytes
>
>The link to the storage channel's message is:
>
>https://discord.com/channels/727023752348434432/757305697527398481/1404367777904463914
>
>
>===
>Mark Millard
>marklmi at yahoo.com
>
>