mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#266
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 @mero20j1 on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/303
What happened
RTX 3090 passthrough VM hard-freezes the Proxmox host during model loading (Direct mode, PR #252)
I tested GPU Unlock in an Ubuntu 24.04 VM with four RTX 3090 GPUs passed through from a Proxmox VE host. The GPUs are arranged as two pairs connected by NVLink. The guest has a 220 W power limit per GPU.
Software and setup
6.8.0-147-generic580.196.0762105cf46bd905d67c055c77bab0c2e3b7b3bc80make installWhat happened
GPU Unlock reported success for all four GPUs during guest boot. The logs showed
stage=plm mode=direct,untouched=1,stage=handoff ret=0, andunlockedfor each card. All four GPUs were visible innvidia-smi.The guest remained idle for about 1 hour and 27 minutes without any Xid or fatal PCIe errors in the guest or host logs that we checked.
I then started loading the model. The checkpoint load progressed to at least 90% of 30 safetensors shards. At that point, SSH access to both the guest and the Proxmox host stopped responding. The Proxmox host appeared completely frozen and had to be powered off using the physical power switch.
After the forced reboot, the ZFS pool was online and reported no known data errors. The guest EFI FAT filesystem had its dirty bit set after the unclean shutdown;
fsck.fatcleared it, and a follow-up read-only check reported no remaining filesystem errors. This may be a consequence of the forced power-off rather than the cause of the freeze.Questions
I have not yet established the cause of the freeze. The model load did not complete, and the guest and host became unreachable before I could collect final logs.
[Optional details to add: motherboard/CPU, PCIe topology or switch/riser details, Proxmox VM PCI configuration, PSU/cabling, and the host journal from the previous boot.]
Additional confirmed guest details:
6.8.0-147-genericinitramfs-tools0.142ubuntu25.8580.196.07After the forced host reboot, Proxmox logs showed VFIO resets for the four GPU PCI functions during VM startup. The host ZFS pool completed a scrub with 0 bytes repaired and 0 errors. Unfortunately, the persistent host journal does not appear to contain the final minutes before the hard freeze, so I cannot provide a PCIe/AER/Xid error immediately preceding it.
The VM was reverted to a pre-test snapshot after the incident. Therefore, its current configuration may not be identical to the configuration used during the failed test.
Repeated failure across two GPU Unlock versions
This was not an isolated failure. We have now had two separate test attempts, using different GPU Unlock versions, and both resulted in the same complete system freeze while loading the model.
The first attempt used an older GPU Unlock version. The second attempt used the Direct-mode code from PR #252, commit
62105cf46bd905d67c055c77bab0c2e3b7b3bc80, installed inside the Ubuntu guest. In both attempts, the Proxmox host and the VM became completely unresponsive during model loading. Recovery required powering the host off with the physical power switch.This repeated result suggests the problem is not limited to the older implementation or to the PLM-opening behavior addressed by Direct mode. We have not established the root cause.
Both test attempts booted successfully with GPU Unlock enabled, and all four RTX 3090 GPUs were detected and reported as unlocked. The system remained responsive while idle for approximately 1 hour and 27 minutes after boot. The complete freeze occurred only after we started loading the Qwen 3.8 Flash Next model. During checkpoint loading, the VM and Proxmox host became unreachable, and the host had to be powered off using the physical power switch.
The earlier attempt with an older GPU Unlock version showed the same sequence: successful boot, followed by a complete freeze during model loading.
Distribution
Proxmox 9.2.25 VM Ubuntu 24.04.5 LTS (GNU/Linux 6.8.0-147-generic x86_64)
Kernel
6.8.0-147-generic
Initramfs generator
dracut
gpu-unlock version and install method
GPU Unlock PR #252 Direct mode, commit
62105cf46b, version 2.0.0. Built and installed inside the Ubuntu 24.04.5 guest usingmake install; this created and installed thegpu-unlock-dkmsandgpu-unlock-firmwareDebian packages. The module was included in the initramfs byinitramfs-tools.Output
@dpusta commented on GitHub (Nov 5, 2026):
Same signature here on a single RTX 3090, bare metal (no VM). I can now trigger it within seconds, and found what sets it off on my machine. Posting in case it helps narrow down #303.
Setup
7eb51bc(PLM route, not direct mode),gpu_unlock.targets=0000:0a:00.0; unlock verified: cuBLAS FP16 GEMM (FP32 acc) 120 TFLOPS unlocked vs 79 stockThe freeze
Whole machine hard-locks: black screen, all fans to max, power button needed. Nothing reaches the log: no Xid, NVRM, AER, MCE, lockup or RCU line, even with
/dev/kmsgcopied to disk with an fsync per line. Withhardlockup_panic=1 softlockup_panic=1 panic_on_rcu_stall=1andefi_pstore.pstore_disable=0, pstore stays empty, so the kernel never gets to detect anything. About 10 freezes in one day.What triggers it
It happens when the inference engine has GPU threads read a lot of data straight from mapped (zero-copy) pinned host memory over PCIe while tensor-core work runs. On a MoE expert-cache miss, Strata's default path launches a copy kernel (384 blocks × 256 threads, 16-byte loads) that pulls thousands of 2.6 MB blobs from
cudaHostAllocMappedmemory, saturating the link (about 25 GB/s).Looping the request that causes the biggest miss burst, on the unlocked card:
--pcie-frac 0)cudaMemcpyAsync,--pcie-mode dma); 1.1 M blobs movedSo it isn't PCIe volume (C moved more than A) and it isn't tensor load on its own. These ran 15 minutes clean on the unlocked card:
cudaMemcpyAsyncH2D/D2HWhat fails is SM-issued reads of host memory over PCIe, at high volume, on an unlocked card.
Caveats
#303 also froze during model loading (vLLM). If that path reads host memory from kernels (UVM, mapped or pinned zero-copy), it may be the same mechanism.
Happy to run a test build or collect anything specific.