You are not logged in.

#1 2024-12-14 23:43:41

8bitredstone
Member
Registered: 2024-05-11
Posts: 13

[SOLVED] NVIDIA Driver Causing high CPU Usage on Certain Apps

PROBLEM
Sometime within the 1-2 weeks I started having issues with some programs (discord, terraria, Pixtopix, ...) running at extremely high CPU usage (70-98%), normally 15-20%. Some applications are unaffected, namely Minecraft; which is odd, as it is way more resource intensive than the other applications.

WHAT I TRIED
From what I can tell this is not a kernel issue, as I had the same issue under linux-lts + nvidia-lts, linux-zen + nvidia-dkms, linux + nvidia, and linux + nvidia-open
https://imgur.com/a/VUdkkey
This also doesn't appear to be a dual monitor issue because
    1. I ran linux with an NVIDIA card for 6 months with 2 monitors with zero issues
    2. If I keep the NVIDIA driver installed, but remove my xorg settings for the monitor and disconnect the monitor I still have issues

The only fix for this is if I uninstall the NVIDIA driver, so it is clearly an issue with the driver from my perspective
https://imgur.com/a/zro9RjE

So does anyone know a fix to this? Is anyone else having this issue?

Here some hardware specs to help diagnose:
OS: Arch Linux x86_64
Packages: 1086 (pacman)
Display (LG FHD): 1920x1080 @ 60 Hz in"
DE: Xfce4 4.18
WM: Xfwm4 (X11)
CPU: Intel(R) Core(TM) i5-6400 (4) @ 3z
GPU 1: NVIDIA GeForce GTX 1650 [Discre]
GPU 2: Intel HD Graphics 530 @ 0.95 GH]
Memory: 3.54 GiB / 15.50 GiB (23%)
Swap: 0 B / 2.00 GiB (0%)
Disk (/): 138.36 GiB / 913.32 GiB
Disk (/Music): 427.34 GiB / 931.51 GiB

here's also my installed packages:
https://pastebin.com/2czAdvTd

Last edited by 8bitredstone (2024-12-16 00:18:50)

Offline

#2 2024-12-15 08:57:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,153

Re: [SOLVED] NVIDIA Driver Causing high CPU Usage on Certain Apps

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General and the outputs of

glxinfo -B; prime-run glxinfo -B; vulkaninfo --summary

Offline

#3 2024-12-15 18:43:35

8bitredstone
Member
Registered: 2024-05-11
Posts: 13

Re: [SOLVED] NVIDIA Driver Causing high CPU Usage on Certain Apps

output of commands
https://pastebin.com/45Ga5eUL

xorg log
https://pastebin.com/CLVz6vyn

Last edited by 8bitredstone (2024-12-15 18:53:46)

Offline

#4 2024-12-15 20:10:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,153

Re: [SOLVED] NVIDIA Driver Causing high CPU Usage on Certain Apps

[     7.336] (II) IGLX: Loaded and initialized swrast
[     7.337] (II) GLX: Initialized DRISWRAST GL provider for screen 0

Remove xf86-video-intel, report back with the result of that.

Also

failed to load driver: nouveau

What'sthe output of

printenv

Offline

#5 2024-12-16 00:07:45

8bitredstone
Member
Registered: 2024-05-11
Posts: 13

Re: [SOLVED] NVIDIA Driver Causing high CPU Usage on Certain Apps

as it turns out the entire issue was just being caused by having the "xf86-video-intel" installed

Thank you for your expertise big_smile

it weird though that this used to be fine to have installed but now was causing me issues. It also made me have to change my lightdm monitor setup script:
xrandr --output DP1 --off --output DP2 --off --output HDMI1 --off --output HDMI2 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI3 --off --output VIRTUAL1 --off --output DVI-D-1-0 --off --output HDMI-1-0 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1-0 --off --output DP-1-1 --off

xrandr --output DP-1 --off --output HDMI-1 --off --output HDMI-2 --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI-3 --off --output DP-2 --off --output DVI-D-1-0 --off --output HDMI-1-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1-0 --off --output DP-1-1 --off

either way, at least it's fixed

Offline

#6 2024-12-16 08:16:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,153

Re: [SOLVED] NVIDIA Driver Causing high CPU Usage on Certain Apps

The output names -unfortunately- depend on the driver.
But fwwi, you don't have to explicitly off anything and there's https://wiki.archlinux.org/title/Multih … _xorg.conf

Offline

Board footer

Powered by FluxBB