Closed electronic-van closed 1 year ago
Try hevc instead of h264, that seems to drop RAM and VRAM usage by half (at least in other applications that use nvenc)
I originally tested with hevc, but switching to h264 does use about double the vram (130mb vs 350mb). 4k Xorg capture only gets 24fps on my machine so I have to use nvfbc. With h264, vram increases by around the same amount as Xorg capture but on top of the 2gb nvfbc adds.
Likely fixed by #1098. Please retest the latest nightly.
Can confirm the VRAM part is fixed with #1098. VRAM usage is down to 500MB but the GPU still maxes out at 87% usage.
Can you post the actual usage stats from nvidia-smi pmon -i 0
? I want to see the per-engine utilization numbers, because a global GPU utilization number is not necessarily representative of the utilization of all engines.
For example, some tools will report the 3D engine only, while others will report the utilization of the engine with the highest utilization. An 87% utilization of NVENC may be expected based on encoding settings (and wouldn't impact game performance), but 87% usage of the 3D engine by Sunshine would be very unexpected
gpu-screen-recorder
mentions that memory clocks are reduced by the Nvidia driver when executing CUDA workloads. Do you think that could be happening on your system?
I won't be able to test until the end of the week, but that does sound like a possible cause.
I did some testing with both Sunshine and gpu-screen-recorder and Sunshine seems to limit the actual 3D usage. The memory clock speeds are the same as not streaming or recording. This happens on all games I tested, different games don't change anything. These results are with Minecraft shaders.
I also tried Sunshine on Windows, which performs similarly to gpu-screen-recorder on Linux.
# gpu pid type sm mem enc dec command # Idx # C/G % % % % name 0 1332 C+G - - - - sunshine 0 1519 G - - - - plasmashell 0 1572 G - - - - firefox 0 1803 G - - - - plasma-browser- 0 8370 G - - - - python 0 16463 G - - - - konsole 0 20998 G - - - - krunner 0 21035 G - - - - baloorunner 0 21268 G 99 33 - - java
# gpu pid type sm mem enc dec command # Idx # C/G % % % % name 0 1332 C+G - - 18 - sunshine 0 1519 G - - - - plasmashell 0 1572 G - - - - firefox 0 1803 G - - - - plasma-browser- 0 8370 G - - - - python 0 16463 G - - - - konsole 0 20998 G - - - - krunner 0 21035 G - - - - baloorunner 0 21268 G 87 31 - - java
# gpu pid type sm mem enc dec command # Idx # C/G % % % % name 0 21268 G 99 29 - - java 0 22530 G - - - - dolphin 0 23127 G - - - - konsole 0 25016 C+G - - 63 - gpu-screen-reco
I suppose that asking this here is wrong.
How to install the nightly version? I am using Ubuntu 22.04.
I suppose that asking this here is wrong.
How to install the nightly version? I am using Ubuntu 22.04.
https://github.com/LizardByte/Sunshine/releases/tag/nightly-dev
I suppose that asking this here is wrong. How to install the nightly version? I am using Ubuntu 22.04.
https://github.com/LizardByte/Sunshine/releases/tag/nightly-dev
Thank you very much :)
This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.
This issue was closed because it has been stalled for 10 days with no activity.
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the nightly release?
Describe the Bug
When using NvFBC under Linux,
nvidia-smi
shows 650MB of VRAM usage at 1080p, and 2GB at 4K. Game performance also drops more than it should, with MangoHud showing more frametime variance and GPU usage around 85-90%.Expected Behavior
Lower VRAM usage at higher resolutions and less of a performance hit
Additional Context
This is specific to Sunshine and not the Nvidia driver, as gpu-screen-recorder doesn't drop the performance much and uses around 300MB of VRAM at 4K.
I tried both nvidia-utils-nvlax in the AUR and nvidia-patch to enable NvFBC with the same results.
Host Operating System
Linux
Operating System Version
Arch Linux
Architecture
64 bit
Sunshine commit or version
0.18.1
Package
Linux - AUR
GPU Type
Nvidia
GPU Model
GeForce GTX 1660 Ti
GPU Driver/Mesa Version
525.85.05
Capture Method (Linux Only)
NvFBC
Relevant log output