steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

please reopen: steamwebhelper consuming cpu even if minimized

Open kokoko3k opened this issue 5 years ago • 63 comments

Your system information

  • Steam client version: Nov 22 2021 at 22:12:42 ; Steam package version 1637624439
  • Distribution: Archlinux
  • Opted into Steam client beta?: NO
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

steamwebhelper uses cpu even when it is not necessary and uselessly.

Steps for reproducing this issue:

  1. From the steam client store tab, have a video playing
  2. note that the cpu is higher, it is due to steamwebhelper cpu usage, note it.
  3. minimize steam client
  4. Notice that the cpu usage remains the same

Imho, steamwebhelper has no use if nobody is watching it, so the process should be stopped, or at least paused, when minimized. If someone has some interest in just "listening" what it is playing in background, then he can keep it unminimized or at very last, an option like "low performance mode" should control even this behaviour.

kokoko3k avatar Nov 24 '21 11:11 kokoko3k

Bump. From my testing, it's not only consuming ~25% single core CPU but also some amount of GPU, potentially lowering gaming performance. This can be quite a dealbreaker and should be fixed.

I did not observe this behavior on Windows. Not sure about past Linux versions but this could be a Beta regression for Linux.

ishitatsuyuki avatar Dec 20 '21 11:12 ishitatsuyuki

Huh, reporter does not use Beta. So either the situation on Beta is worse or it's a issue that has existed for a while.

ishitatsuyuki avatar Dec 20 '21 11:12 ishitatsuyuki

I can confirm that steam cpu usage really high especially with latest versions stemwebhelper few processes consuming in total about 130-150%, just one process about 70-80% and never gets low no matter is it minimized or not. It's 4 cored laptop with hyperthreading so basically almost half of CPU resources are busy with steam client it is additionally to high memory usage... I haven't played any video just simply launched steam client and sometimes I can play some games...

coozoo avatar Dec 21 '21 20:12 coozoo

Huh, reporter does not use Beta. So either the situation on Beta is worse or it's a issue that has existed for a while.

Probably long standing issue, but can't be 100% sure.

A workaround for me that maybe still works in beta client is to switch away from the store page to the library so that webhelper process is not used.

In an ideal world those processes have to be stopped even when starting a game.

kokoko3k avatar Dec 21 '21 20:12 kokoko3k

Here's a recap after some investigations:

Problem: steamwebhelper (CEF) does not detect whether it's occluded/minimized and constantly continues rendering in the background. Workaround: Switch Steam to a page that does not have videos or animations. In the case of library pages, you need to enable "Low Performance Mode" from "Settings->Library" or the glowing achievements frames would ruin the performance.

ishitatsuyuki avatar Dec 22 '21 01:12 ishitatsuyuki

To add another feedback on Steam Beta for Linux, here on Arch:

  • Steamwebhelper uses a full cpu thread from the moment I launch it on the 'Store' page till I change to eg the 'Library' page.
  • Steamwebhelper's CPU use while playing a game goes up to 37.5% of my 4 threads 2 cores Intel CPU @3.3GHz (more CPU than the game I play...). That was after hours playing with Steam minimized before starting this game.
  • observations above all are with "Low Performance Mode" activated.
  • High CPU usage isn't new here. staying high is.

tukoz avatar Dec 31 '21 10:12 tukoz

Ate all my CPU too, indeed even with "low performance mode" Workaround ~ load steam without the browser function :

steam steam://open/minigameslist -console -no-browser

Steam looks really dated like that, but I can at least play my games without the 50% FPS decrease.

ianvm avatar Jan 22 '22 15:01 ianvm

Ate all my CPU too, indeed even with "low performance mode" Workaround ~ load steam without the browser function :

steam steam://open/minigameslist -console -no-browser

Steam looks really dated like that, but I can at least play my games without the 50% FPS decrease.

Doesn't switching to Library tab work for you instead of opening the whole thing with no-browser parameter?

kokoko3k avatar Jan 23 '22 14:01 kokoko3k

Ate all my CPU too, indeed even with "low performance mode" Workaround ~ load steam without the browser function : steam steam://open/minigameslist -console -no-browser Steam looks really dated like that, but I can at least play my games without the 50% FPS decrease.

Doesn't switching to Library tab work for you instead of opening the whole thing with no-browser parameter?

Nope!! eats my CPU no matter what I do

ianvm avatar Jan 23 '22 14:01 ianvm

I wonder if the high CPU / high RAM usage is correlated with the number of games in library ? With around ~2000 games, my steam/steamwebhelper processes uses more than 1.45 GB, just after launch. (Despite that I have all "low performance" boxes checked) + 10-40% CPU (on a 12-cores Ryzen). Minimizing steam windows does not change anything.

If I launch steam with -no-browser (what a lifesaver !), steam uses only 261 MB + 0/1 % CPU

Saroumane avatar Feb 16 '22 22:02 Saroumane

I wonder if the high CPU / high RAM usage is correlated with the number of games in library ? With around ~2000 games, my steam/steamwebhelper processes uses more than 1.45 GB, just after launch. (Despite that I have all "low performance" boxes checked) + 10-40% CPU (on a 12-cores Ryzen). Minimizing steam windows does not change anything.

If I launch steam with -no-browser (what a lifesaver !), steam uses only 261 MB + 0/1 % CPU

It's absolutely unrelated. It's related to bad programming style and worse technologies. I have just about 40 games and it's usually from start more than 1 GB....

nobrowser option it's saving some RAM for me it's about 50MB in RAM till the moment when I want to maximize steam window.

high cpu usage usually related that steam making some sale and hot it's cool to make falling snow or some another crap and yahoo CPU loaded with this crap even when you minimizing changing tabs it is still loads you cpu with that sh*t. But it is just one case...

coozoo avatar Feb 16 '22 22:02 coozoo

steam steam://open/minigameslist -console -no-browser

This seems to be the only working solution for me. Otherwise 1 cpu core of my laptop is 25% utilized and the fans scream when ever steam just idles in the background.

kaphula avatar Apr 01 '22 23:04 kaphula

Curious if there is correlation here with DE. I'm using Arch with KDE/Plasma and lately have been having occasional bog downs that I'd get out of with a killall plasma_session. Just today I'm realizing I have this same issue with Steam, so I wonder if that is behind it all, because killing the session also closes the Steam client. So far the "switch to library tab" solution seems to be working for me.

brianstamper avatar Apr 08 '22 17:04 brianstamper

Have had CPU issues with steamwebhelper for at least a year or so, LInux Mint, CInnamon. Don't think there is a correlation to DE used. For me keeping the Library tab open was the only solution that worked most of the time, until I now ticked the low-performance mode which seemed to have helped. The CPU usage would be fairly low on the library page with full effects, but as soon as it was minimized the CPU would go to 100% and stay there till the Library page was opened again.

kriss-s avatar Apr 15 '22 13:04 kriss-s

Curious if there is correlation here with DE. I'm using Arch with KDE/Plasma and lately have been having occasional bog downs that I'd get out of with a killall plasma_session. Just today I'm realizing I have this same issue with Steam, so I wonder if that is behind it all, because killing the session also closes the Steam client. So far the "switch to library tab" solution seems to be working for me.

Same here, steamwebhelper is always active even in background (KDE/Arch/X11). Only when switching to the library tab and minimizing that steamwebhelper stop using any meaningful CPU cycles. This is especially an issue on systems on a constrained power budgets like laptops. Hope to see it fixed soon.

RodoMa92 avatar Apr 17 '22 08:04 RodoMa92

In my case, I only get high idle steamwebhelper usage if I have the friends menu opened. With that menu closed, even if I still have chat windows opened, I don't have abnormal CPU usage.

Can't remember this happening years ago, it must have started sometime in the last year or so. Is it possible a bug introduced with the animated avatars and frames?

@kisak-valve this should get proper attention, as using 45% of a modern CPU core to display a simple friend list means someone fucked up greately.

sabian2008 avatar Apr 20 '22 04:04 sabian2008

I can confirm that -no-browser is the only way to stop the steamwebhelper to waste a lot of power. Archlinux, gnome, wayland here.

This is a serious issue, so Valve, please fix it.

degasus avatar May 13 '22 11:05 degasus

I can confirm that -no-browser is the only way to stop the steamwebhelper to waste a lot of power. Archlinux, gnome, wayland here.

This is a serious issue, so Valve, please fix it.

I have the same problem Archlinux, gnome, xorg.

Same fix with -no-browser worked.

Tricky12321 avatar May 17 '22 13:05 Tricky12321

Same issue with Wayland. Still broken on the Beta branch.

1player avatar May 21 '22 07:05 1player

This bug is really annoying. While -no-browser works, it breaks a lot of other functions like chats, stuff in the overlay etc.

jhenninger avatar May 26 '22 15:05 jhenninger