Skip to content

vmmem memory leak exhaust host PC virtual memory #446

@mhtvsSFrpHdE

Description

@mhtvsSFrpHdE

Solution: Update to Windows August version 26100.4946 or above fixed this, no memory leak anymore

Original post: mhtvsSFrpHdE/unofficial-gpu-partition-document#2
But I can't find solution, here for ask help

Windows version: Both Host and Guest 26100.2033
Nvidia driver version: 580.97, Game Ready
Graphics card: Nvidia GeForce 1080 Ti

After start sunshine streaming, when time grows and program use graphics, sunshine will randomly say something like connection slow even in LAN environment, once the hint appears, guest OS vmmem process commit size grows about 4 GB. It may appear every 10~30 minutes randomly.

Typical games

  • Honkai: Star Rail, especially in Simulated Universe: Swarm Disaster, the game frequently show loading screen in this scene
  • Genshin Impact, leaks less, the game doesn't often show loading screen compare to Honkai: Star Rail
  • It also leaks on anything, even just open Firefox and watch some youtube videos, but not leak that fast compare to game

Leaked memory can't be measured inside guest VM.
In host VM, it reports as driver locked in sysinternals RAMmap, and commit size of vmmem process in task manager

Reboot virtual machine doesn't free commit size, only shutdown virtual machine do, I can start virtual machine again without reboot host OS

  • Change to Nvidia studio driver didn't fix this
  • Turn off Hardware-accelerated GPU scheduling in both guest and host feels like reduced bug happen frequency, but still exist

I also discover:
Don't have to disable Hyper-V virtual monitor to improve capture performance of virtual display driver, just raise the virtual display driver refresh rate (Hz) is OK, like target 60 FPS gaming, then set virtual display driver to 120 Hz and use RivaTuner to set a FPS limit to game, this allows OpenGL apps to run and provide decent capture performance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions