mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3877] [Engine] --vram-reserve-mib 4096 reserves 8192 GB and wastes 4 GB on dual GPU #1651
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#1651
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 @MarkSwanson on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3877
$ ./strata --version
strata 0.1.44.1
I appreciate what --vram-reserve-mib is doing - it leaves 4 GB free so Ubuntu / Wayland / Firefox / Blender / etc. can still run. Great!
But on a dual GPU system it also reserves 4 GB on the second card -> and this is just wasted.
Perhaps you could use that 4 GB to hold another layer or parts of the n-gram table or ...?
@github-actions[bot] commented on GitHub (Oct 23, 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:
strata --version).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 (Oct 23, 2026):
Thanks, this follows the format now.
@ravensergio commented on GitHub (Oct 23, 2026):
Hi. Have You tried this?:
"A separate VRAM reserve for the later cards: --vram-reserve-later-mib N (default: --vram-reserve-mib's value). The card that drives the monitors needs more headroom than one that drives none; with the display on the last card, --vram-reserve-mib 300 --vram-reserve-later-mib 1800 gives the first card's cache that VRAM." - taken from https://github.com/Niko1221/Strata/blob/main/docs/MULTI_GPU.md
@MarkSwanson commented on GitHub (Oct 24, 2026):
No, but I just spent some time with it and found a way to make it work for me. Here's my relevant options:
"--vram-reserve-mib",
"5120",
"--vram-reserve-later-mib",
"256"
"layer_split": "20" <-- I had to use "20" here instead of "auto"
GPU0: uses 30.2 GiB / 31.9 GiB
GPU1: uses 31.6 GiB / 31.9 GiB <-- SUCCESS!
What I noticed:
When using layer_split "auto" the strata startup process looks like this:
Guess: it's as if "auto" then puts MTP and other data into free VRAM. The math used to calculate 5120 MB left over doesn't account for this.
So my workaround is to specify 20 layers on GPU0. This way when the MTP etc. data is loaded it leaves enough for me to run Blender, FreeCAD, full screen firefox youtube videos, etc.
"20" worked for me, but I can see others adjusting that number based on the apps they have running.
Thanks for letting me know about --vram-reserve-later-mib ! :-D
@ravensergio commented on GitHub (Oct 24, 2026):
Nice. Sorry I forgot about that . I noticed this also Strata on auto doesn't fill the second gpu in my case. Coming from a fork strata-DualGPU which made auto work, I had also to do layer split 22 (cause both my cards are headless so i had all the vram free)
Here are my params, just to share maybe something you can compare (Windows- using Gyro M here on 5070 ti + 5060 ti (32 VRAM + 32 gb ram).
I get 100-150 tps with this model (5060 ti makes it slower).
For detecting :
"--pcie-frac",
"0.75",
"--spec-min-p",
"0.50",
"--pool-workers",
"5"
, I ran the CALIBRATE module from strata so it measured the best settings for me.
Params: