Skip to content

Steam client is very aggressive in using CPU time and RAM even when IDLE #8553

Open

Description

@ezdev128

Your system information

  • Steam client version (build number or date): 1647446817
  • Distribution (e.g. Ubuntu): Ubuntu
  • Opted into Steam client beta?: [Yes/No] No
  • Have you checked for system updates?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

The last time (during almost year) there has been an excessive consumption of CPU time and RAM, even at IDLE.
The restart solves the problem.

It happens at random times, there is no apparent periodicity or reason. The best way to reproduce this - do not do anything special, just work at your job and play your favorite games on Steam.
Sometimes you can't even play the game normally without restarting the Steam client.

Steps for reproducing this issue:

  1. do not play any game or touch Steam client during several days
  2. launch and play any game
  3. drink coffee between games

Activity

  1. kisak-valve commented on Apr 25, 2022

    @kisak-valve
    Member

    Hello @ezdev128, when this happens, can you find what the name of the thread is which is using more resources than you expected? (#7372 (comment))

  2. ezdev128 commented on Apr 25, 2022

    @ezdev128
    Author

    Hi, @kisak-valve. I'll let you know as soon as I get it.

  3. ryao commented on Apr 27, 2022

    @ryao

    I have noticed this. For me, it is caused by fossilize-replay from shader pre-caching. It is easy to see in htop after sorting by CPU utilization when the CPU fan spins up when the system should be idle.

  4. ezdev128 commented on Apr 27, 2022

    @ezdev128
    Author

    @ryao, is it at the very beginning before the game starts or just in idle?

  5. dos1 commented on Apr 27, 2022

    @dos1

    This happens even on Steam Deck.

    powertop signals about 1400-1600 wakeups per second in gaming mode, and about 1600-1700 wakeups per second in desktop mode. Shutting down Steam in desktop mode takes it down to 140-150 wakeups per second (and no, there's no zero missing there ;)). All measurements made when idle with nothing running.

    For a comparison, I get about 1500-1600 wakeups per second on my laptop right now with tons of apps open, including Firefox with 900 tabs.

    I imagine this hurts battery consumption a lot. Also, it appears that Steam client remains active in this way also when games are running, which can hurt their performance as well.

    [edit] For the record: simply shutting the Steam client down in Deck's desktop mode reduces power consumption when idle from ~4.1W to ~2.7W. This nearly doubles estimated battery life. I'm not interacting with Steam client in any way before shutting it down.

  6. exa18 commented on May 5, 2022

    @exa18

    @dos1 confirm, opened only Deck and rised CPU usage to 1/3 (all cores). This issue also prevents display to blank (power manager). Also list steam in htop show over 100 pids open where ps reports only 12-15.

  7. TTimo commented on May 5, 2022

    @TTimo
    Collaborator

    this comment is probably still relevant: #7372 (comment) (kisak mentioned above)

    you could also tail the steam logs to narrow down what the Steam client may be doing, as there is some 'expected' background work in the client (related to shader cache for instance, or background game updates etc.).

  8. dos1 commented on May 7, 2022

    @dos1

    So, in my case it appears that CSteamControlle thread is the worst offender, followed by CIPCServer::Thr. All the rest is negligible compared to these two threads.

  9. N00byKing commented on May 14, 2022

    @N00byKing

    I've been hitting this issue as well on two seperate systems, both Arch, Kernel 5.17.7. However, with the new update (About Steam says build May 14) it doesn't seem to happen? I was about to write another confirmation, but got an update in the middle. Just in case, adding a screenshot of previous htop output if it happens again; I just got the update and don't have time to test in depth. Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions