winboat icon indicating copy to clipboard operation
winboat copied to clipboard

[Bug] Unusually high GPU usage in Winboat

Open Contruffin opened this issue 5 months ago • 13 comments

What version of WinBoat are you running?

0.9.0

Your Environment

Kubuntu 26.04 (also 25.10) on Framework 16, AMD Ryzen 7 7840HS CPU + iGPU (Radeon 780M)

Steps to Reproduce / Context

  1. Install winboat using the provided deb file
  2. Run it
  3. Fans start to whir really loudly, GPU usage spikes by ~50%

You do not need to be running any Windows program, just having Winboat open is sufficient to cause the GPU usage spike

Logs

install.log migrations.log container.log winboat.log

Expected Behavior

Having Winboat open does not have 50% GPU usage

Current Behavior

Unusually high GPU usage

Possible Solution

No response

Quality Notice

  • [x] I have checked the issue tracker and verified that this bug is a unique case.

Contruffin avatar Jun 16 '26 18:06 Contruffin

Triage: Cannot Reproduce on Arch - Requesting More Info

Tested WinBoat v0.9.0 on:

  • OS: Arch Linux, kernel 7.0.9-arch2-1

  • Install method: using yay through AUR

  • Result: Launched WinBoat, stayed idle with no Windows apps. GPU usage normal ~2-5%. No fan spin-up or ~50% spike observed.

  • CPU/GPU: Core I7-12700, RTX 3080 10GB

  • Note: My hardware/software stack differs from yours (Arch vs Kubuntu 25.10/26.04, different Mesa/kernel). This may be specific to Ubuntu + Framework 16 + 7840HS/780M.

Could you help narrow this down:

  1. Run radeontop or nvtop with WinBoat open — which process shows high GPU?
  2. Are you on Wayland or X11? Kubuntu 25.10 defaults to Wayland
  3. Does the AppImage build have the same issue?

This helps determine if it's a .deb packaging, Wayland, or Mesa issue on Ubuntu.

Tagging as needs-repro and hardware-specific for now. If others with Framework 16 + Ubuntu can confirm, we should escalate.

AhmadNajiKam avatar Jun 16 '26 20:06 AhmadNajiKam

Thanks for the suggestions.

  1. Run radeontop: At idle: Image With Winboat open: Image

  2. Wayland or X11: Wayland

  3. Try with Appimage: Happens here as well. The pattern of GPU usage when running radeontop is similar

Contruffin avatar Jun 16 '26 20:06 Contruffin

I tested on another setup: Kubuntu 26.04, running a Radeon RX6800 GPU.

I see an unusually high spike in GPU usage with winboat open, though it's ~10% GPU usage instead of ~50%. The difference in usage % is likely due to difference in GPU power (dedicated GPU vs. iGPU).

This seems to suggest that the GPU spike is not hardware specific (though if anyone else can help to confirm, that will also be helpful), but that it seems to be conserved in Kubuntu and/or Ubuntu systems

Contruffin avatar Jun 18 '26 20:06 Contruffin

Hi, I confirm here, install through rpm, on wayland kde. container: podman. Windows 11 Pro.

It happens during windows install, I did not finish the install of windows yet. os-release and kernel version in the attachment.

Image Image [os-release.txt](https://github.com/user-attachments/files/29725251/os-release.txt) [uname.txt](https://github.com/user-attachments/files/29725252/uname.txt)
NAME="Ultramarine Linux"
ID=ultramarine
VERSION="44 (Plasma Edition)"
VERSION_CODENAME=flyingfish
ID_LIKE=fedora
PLATFORM_ID="platform:um44"
VERSION_ID=44
PRETTY_NAME="Ultramarine Linux 44 (Plasma Edition)"
ANSI_COLOR="0;34"
LOGO=ultramarine
CPE_NAME="cpe:/o:ultramarine:um:44"
DEFAULT_HOSTNAME="ultramarine"
HOME_URL="http://ultramarine-linux.org"
SUPPORT_URL="https://fyralabs.com/discord"
BUG_REPORT_URL="https://github.com/Ultramarine-Linux/ultramarine"
DOCUMENTATION_URL="https://wiki.ultramarine-linux.org"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=44
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=44
PRIVACY_POLICY_URL="https://fyralabs.com/privacy"
VARIANT="Plasma Edition"
VARIANT_ID=plasma


Linux ultramarine 7.0.14-201.fc44.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul  1 13:34:38 UTC 2026 x86_64 GNU/Linux

pablodav avatar Jul 07 '26 01:07 pablodav

Same issue with the Appimage on Bazzite, with a 7840HS+780M.

https://github.com/user-attachments/assets/3b131ae0-2b9e-4d60-923e-669f23ce1ae5

ykshek avatar Jul 07 '26 03:07 ykshek

Same issue on CachyOS. Windows 11 Pro. Docker. WinBoat Beta v0.9.0 Prod. RAM Allocation: 8 GB. CPU Cores: 4. I have both integrated Raphael graphics and discrete Nvidia GeForce RTX 5080 graphics. WinBoat is using about 50% of the Raphael GPU when no WinBoat apps are launched. Even when the WinBoat Guest API and Container are stopped, WinBoat is still using about 50%. Also, WinBoat is achieving that 50% Raphael GPU usage by spiking and then backing off repeatedly. In the image, you see Raphael GPU at 100% (while the print-screen app was running, of course). When I closed WinBoat (and the print-screen was done), Raphael GPU usage went to 0%.

Image

colinkeenan avatar Jul 17 '26 02:07 colinkeenan

Switching Winboat to SwiftShader instead of my iGPU eliminated 50% GPU usage, but now there's 6% CPU usage on idle even with WinBoat Guest API Offline and Container Exited. For some reason, Winboat’s host-side compositor is rendering frames even when nothing is happening and failing to enter an idle state. Here is how I switched to SwiftShader:

[colin] ~  % cat /usr/local/bin/winboat-softgpu 
#!/bin/bash

# Force Vulkan to use SwiftShader (software GPU)
export VK_ICD_FILENAMES=/opt/winboat/vk_swiftshader_icd.json

# Force OpenGL to use software rendering
export LIBGL_ALWAYS_SOFTWARE=1

# Optional: disable DRI entirely for this process
export LIBGL_DRIVERS_PATH=/dev/null

# Launch Winboat
exec /opt/winboat/winboat
[colin] ~  % 

This file was created by Copilot running in the Edge browser (on Linux, not Winboat).

colinkeenan avatar Jul 22 '26 12:07 colinkeenan

Does 44f8518 fix the issue? I checked on my side and idle GPU is pretty much 0%, while interacting with the app hovers around 4-5%. Previously 9-11% with the animation that was removed still in-tact.

TibixDev avatar Jul 26 '26 14:07 TibixDev

I ended up switching to WinApps using virt-manager for the VM. After days of setup, it's what I really wanted, and I've uninstalled Winboat. I hope someone else tests your fix and lets you know.

colinkeenan avatar Jul 29 '26 10:07 colinkeenan

@TibixDev I'm having a tough time understanding how to compile from source, so I can't test it. I get an error when I try building, and I suspect I probably didn't set something up correctly

Contruffin avatar Jul 29 '26 20:07 Contruffin

Does 44f8518 fix the issue? I checked on my side and idle GPU is pretty much 0%, while interacting with the app hovers around 4-5%. Previously 9-11% with the animation that was removed still in-tact.

Issue appears to be mostly fixed with 44f8518, though there is still a much less severe severe (around 6% usage compared to around 30% usage to previously, on a Radeon 780M)

https://github.com/user-attachments/assets/40252c5a-d549-417f-8bae-6cb6c815735b

I think there is an additional issue related to the system resource usage charts and/or its animations on the home page, because the spike in GPU usage now only occurs when a container is started:

https://github.com/user-attachments/assets/5b3eabfc-763f-4827-badd-be614c376144

And when the "Home" page is displayed, see the correct behavior where usage is only 0 to 1% on other pages:

https://github.com/user-attachments/assets/e1bf7e4c-081a-4d6d-bc82-71f8dd2c4aea

ykshek avatar Aug 03 '26 03:08 ykshek

Following up on @ykshek's note about the residual after 44f8518, since I can build from source and measure it.

It's the resource charts on Home. Same container running, guest API online, the only thing I changed between these two was which page was showing:

Home     106.9% CPU
About      7.9% CPU

Third data point, Home with the container up but the guest API offline so metrics never refresh: 20.8%.

That's CPU across the electron process tree, not GPU, so it isn't directly comparable to the 6% figure above. Either way roughly a full core is going to three sparklines.

Cause looks like chartOptions in Home.vue, which sets no animations block, so the ApexCharts defaults apply and dynamic animation runs at 350ms per update. Metrics refresh every 1000ms across three radialBars, so they're animating most of the time the container is up. Turning off chart animation or slowing the metrics interval should both help.

Build from main at b9a2df2, Ubuntu 26.04, KDE on Wayland, RX 9070 XT.

stevenlafl avatar Sep 11 '26 22:09 stevenlafl

The commit e8a0f5aa682e40eff817d217574697be0878f0ba removed apexcharts in favor of an svg implementation, so this likely won't be an issue in the 1.0 release

Levev avatar Sep 13 '26 20:09 Levev