mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5519] [Engine] Strata is treating ZFS ARC Cache as unreclaimable memory, limits its own ram allocation with usable memory to spare #5488
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5488
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tannisroot on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5519
Specs:
GPU: RTX 5060 Ti 16GB
CPU: Ryzen 5950X
RAM: 128GB DDR4
OS: TrueNAS CE 25.10.8
Strata: 0.2.12, official docker cuda13 image
Model: UD-Q4_K_XL
On a typical Linux system with openzfs, the ZFS filesystem will use almost all available RAM for ARC cache, which if another program needs it, will get evicted. On my system, ARC cache can grow to 100 GB.
When Strata is doing its calculation for how much memory it can allocate for the model in system ram, it treats ARC cache as memory that cannot be reclaimed and reduces its system memory footprint to account for that, which leads to heavy SSD usage and degraded performance.
In strata monitor, memory shows up as almost entirely filled, even though most of it is just ARC cache.
For Strata to actually use all the memory it needs and avoid reading heavily from the SSD, I have to run
echo 3 > /proc/sys/vm/drop_cachesas a root user to drop ZFS cache from RAM.For information, this is what my
/proc/meminfolooks like with ARC is filled up to around 60GB:And this is memory usage from TrueNAS dashboard:
From my understanding there is no way for Strata to know those 60GBs are reclaimable from
/proc/meminfo, so if this issue is to be fixed, some other metric will need to be used for systems with ZFS, like one from ZFS -/proc/spl/kstat/zfs/arcstats, which is available within a docker container as well.@github-actions[bot] commented on GitHub (Nov 7, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 7, 2026):
Thanks, this follows the format now.