mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[GH-ISSUE #101] Compatibility report: RTX 3070 Laptop 16 GB, VMware passthrough (10de:249d) #74
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#74
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 @alansxf on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/101
Result
Unlocked, and FP16/BF16 got faster
Card
NVIDIA GeForce RTX 3070 Laptop GPU (GA104M), reports 16 GB VRAM, passed through to a VMware ESXi guest
PCI IDs
VBIOS version
00000000:03:00.0, 94.04.35.00.25
Is the card modified?
Stock
Distribution
Ubuntu 24.04.5 LTS (guest, inside VMware ESXi with PCI passthrough)
Kernel
7.0.0-38-generic
NVIDIA driver
615.71.09, open kernel modules (Ubuntu 24.04 package nvidia-driver-615-open)
Initramfs generator
initramfs-tools
gpu-unlock version and install method
af28cbb, manual: make install-dkms + dkms add/build/install, then make install-firmware install-initramfs-toolsKernel command line
BOOT_IMAGE=/boot/vmlinuz-7.0.0-38-generic root=UUID=18cca73a-f1b6-4453-8d32-4dcf0a338acf ro quiet splash gpu_unlock.targets=0000:03:00.0 vt.handoff=7
Setup
VMware ESXi PCI passthrough (DirectPath I/O) to an Ubuntu guest — to my knowledge this is
the first VMware report; the only passthrough results so far have been Proxmox/KVM + vfio-pci.
Details:
DeviceName: pciPassthru0; the VMware SVGA II adapter (15ad:0405) is the console display.
and FWSEC parsing matched other GA104M reports exactly.
Kernel log
Benchmark before and after
torch 2.14.1+cu130 (cuBLAS), 4096³ dense GEMM, 5-sample medians, 115 W card, FP32 accumulation.
The FP32 control row is the useful part: it stayed flat while the three tensor paths doubled,
so the gain is the unlocked issue rate and not clocks.
Under sustained FP16 GEMM load: SM 1455 MHz (max 2100), 101.7 W of 115 W, 62–65 °C, 100% util.
It does NOT downclock, which I think explains why this card gets the full 2x instead of the
+40% seen on the 80 W RTX 3080 Laptop in #81 — that one had to drop to 840–900 MHz to stay
inside its power budget. Suggestion: gains here look like min(2x, whatever the power budget
allows), so power-limited laptop cards will always land below 2x.
Real workload, Wan2.2 5B image-to-video, 832×480, 33 frames, 20 steps, CFG 7, identical graph:
63.0 s → 41.7 s (−33.8%), sampling 1.54 s/it (≈2.6 s/it before, inferred from total).
Sampling itself gains ≈+69%, not the full +95%, because attention and memory traffic don't
benefit as much as pure GEMM.
Suspend and resume
None
Anything else
Two things that might be worth folding into the README:
Passthrough VMs cannot be snapshotted or suspended (vSphere DirectPath I/O limitation),
so there is no rollback safety net from the hypervisor side. In practice this was fine:
the module only reads PROM and writes volatile registers, and a power cycle resets
everything, so the only real rollback needed is the initramfs/GRUB change.
The unlock survives as intended, nvidia binds normally afterwards, and 3 consecutive
diffusion runs completed with 0 Xid events. No stability issues so far.
Thanks — the pre-driver kmod approach is a big improvement over re-patching the driver
every release.
@alansxf commented on GitHub (Oct 25, 2026):
The card reports 16 GB at 7001 MHz memory clock (407 GB/s measured); the reference RTX 3070 Laptop SKU is 8 GB at 12 Gbps. It was received in this configuration and the VBIOS was not reflashed by me.
DirectPath I/O VMs cannot be suspended by vSphere at all, so this path is not reachable here.
@alansxf commented on GitHub (Oct 25, 2026):
A/B follow-up: how the unlock is actually cleared, and where the gain really comes from
I got a clean before/after on the same machine, same engine, same model, same script. One thing worth flagging first: removing
gpu_unlock.targets=from the kernel cmdline is not enough to get back to a locked card.How the unlock state actually gets cleared
rebootinside the guestIn a passthrough VM, a guest power-off only removes vCPU/RAM — the PCIe device keeps auxiliary power, so the volatile speed selectors survive. For anyone benchmarking in a VM: you cannot A/B this by rebooting, you have to cut power to the host (or write the selectors back manually).
GEMM (N=4096, median of 3)
The FP32 control staying flat confirms the gain is the unlocked FP/BF16 issue path, not clocks or anything else.
Real LLM inference A/B (same engine version, same model, same script)
Under load the unlocked card ran at a lower SM clock (1620 vs 1695 MHz median, both peaking ~1900 MHz) with peak power 103.9 W against a 115 W limit — so this is genuinely issue rate, not overclocking, and it is not power-throttled.
Why prefill only gains 11.5% while GEMM gains 95%. Model prefill time as
C + M(compute + memory/other); the unlock only halvesC. Solving0.5C + M = 0.888 (C + M)givesM ≈ 3.3 C, i.e. compute is only ~23% of prefill wall time for a 3-bit MoE on a 16 GB card at 417 GB/s. Then0.5 × 23% ≈ 11.5%, matching the measurement exactly. Rule of thumb: gain ≈ compute share × 50%. Decode is pure bandwidth (compute share ≈ 0) so it does not move at all; a diffusion workload on the same card gained ~34% end-to-end because its compute share is much higher.One discrepancy with the source comments
The comments say the cold/default value is
SS0=0x22222222 / SS1=0x2. On this card, right after the power cycle with the driver bound and the GPU idle in P8, I read:Unlocked it reads exactly
0x88888888 / 0x8as documented. I do not know why the cold value differs — possibly related to this card being a modified 16 GB vBIOS (memory at 7001 MHz vs stock 6001 MHz). The practical takeaway is that reading the selectors is not a reliable locked/unlocked test on every card; the GEMM number is.Two corrections to the report form
Is the card modified?is currentlyStock. Given the 16 GB / 7001 MHz module this should probably readMemory upgrade.Suspend and resumeis currentlyNone. Per the vSphere DirectPath I/O limitations, suspend/resume is not supported at all for this VM, soNot testedis more accurate thanNone.@mcgl0vin commented on GitHub (Oct 26, 2026):
What version of VMWare are you using? Any specific tips or tricks you had to do inside of VMWare itself for this to work??
@alansxf commented on GitHub (Oct 26, 2026):
v8
@Zagitta commented on GitHub (Oct 27, 2026):
Thanks for the report! Success reports now live in one place: https://github.com/Zagitta/gpu-unlock/discussions/238. Closing this so the issue tracker stays focused on cards where the unlock fails. Your numbers stay searchable here under the
success-reportlabel. If something stops working later, please open an unlock failure issue.