protonscr

Steam Client abnormal high GPU and CPU usage

steamclosed Steam clientDistro Family: ArchWeb Component
ValveSoftware/steam-for-linux#9207 · opened 2023-02-17 by gort818 · updated 2023-03-16 · 10 comments · github
Ggort818 2023-02-17 github

Your system information

  • Steam client version (Feb 10 2023):
  • Distribution (Arch):
  • Opted into Steam client beta?: [Yes]
  • Have you checked for system updates?: [Yes]

Log files and system information

SysInfo gist
cef_log.txt gist
steamwebhelper.log gist
webhelper.txt gist

Core Dump

assert_20230216164429_37.zip

Please describe your issue in as much detail as possible:

Steam client using close to 100% GPU and high cpu usage causing the client to become extremely unresponsive and laggy, games cannot be played in this state as steam is using all of my resources.

It does not always happen, sometimes it happens when the client is launched, other times it is seemingly random.

When closing steam in this state it always produces a core dump.

After a while steam returns to normal operation, but could take up to 20 mins. The issue comes back though after some time.

Steps for reproducing this issue:

  1. Open steam, high resource use at start or a few minutes later

Workarounds tried

  1. Turn off hardware acceleration ( doesn't help)
  2. Uninstall Steam and all it's config files ( doesn't help)
  3. Killing the plasma session and restarting steam ( Helps only momentarily)
  4. Tried stable steam release ( doesn't help)
  5. Disabling Allow background shader processing ( doesn't help)
  6. Running steam in small mode ( this seems to work)
Kkisak-valve maintainer 2023-02-17 github

Hello @gort818, since you're using a random git commit of mesa, can you do a basic video driver sanity check by checking how Steam behaves with a recent point release of mesa?

Ggort818 2023-02-17 github

I just tested with Mesa 22.3.4, it took a while for the issue to show up, but yeah same issue.

Ggort818 2023-02-18 github

Looks like I have a similar issue with discord on this new hardware, but setting this flag --enable-gpu-rasterization solved all my issues with discord.

I have now tried creating a new user, reinstalling all packages, tried different kernels, different mesa versions, different motherboard bios.

When turning off hardware acceleration the steam client itself uses 100% of my GPU.

Llflo5727 2023-02-18 github

I can confirm I also have this issue and am NOT using a git release of Mesa or opted into Steam client beta. Seems to have just started yesterday with no system/package updates (possibly something about Steam's webviews?).

Just updated all packages and still seeing it too. I am on Endeavour (basically just Arch)

Llflo5727 2023-02-19 github

Want to add to this, didn't have much a chance to test more things, but I tried launching a game (Team Fortress 2 if that matters) and the CPU usage went back down to expected.
However once I closed the game the CPU usage spiked back to 100% by the Steam process. Doesn't seem to matter where in the Steam app I am.

Also in difference to noted above by @gort818 , I do not seem to have the same issue on Discord.

Ggort818 2023-02-19 github

To rule out desktop environments I tried both Kde plasma and Gnome.. always the same Steam starts to run at a crawl.
Screenshot_20230219_134833

Ggort818 2023-02-20 github

also noticed this when running steam from the terminal.

Steam: An X Error occurred
X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  20 (X_GetProperty)
Resource id in failed request:  0x1
Serial number of failed request:  9
xerror_handler: X failed, continuing

Ggort818 2023-02-21 github

Not sure how I missed it, but in the screenshot above the gpu is running PCIe gen1@1x.

Actually might be a hardware issue or an amdgpu bug and nothing wrong with steam.

Testing with amdgpu.aspm=0

Ggort818 2023-02-22 github

Closing as not a steam issue, setting the kernel parameter amdgpu.aspm=0 solved my issue.

Llflo5727 2023-03-16 github

@gort818 Setting that kernel param did not change anything for me. Steam still sits using 100% CPU for me.
I did not have change in hardware between when this started and beforehand.

That said Steam is not laggy for me and I am able to play games as when I do, Steam starts using a reasonable amount of resources, so maybe we are reporting different issues. I'll open a new issue for what I am seeing.

Nothing extracted yet.