-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
high CPU usage in signal-desktop
7.0.0 when a chat is open
#6808
Comments
@dkg , thanks for the report. Some amount of CPU usage when a chat is opened -- in particular soon after opening -- is expected. Do you observe this happens more for some chats over others? Any patterns you've noticed? |
Hi @trevor-signal ! how soon is "soon after opening"? if a chat has only, say, 50 text and notification messages in its history, and i've waited a couple seconds after opening, should that be enough to stabilize CPU usage? Below are the summary results table of all chats closed
group chat open, ~5 messages arriving to that chat
group chat open, no incoming activity at all
|
@dkg These numbers seem in the normal range to me. There are a couple background tasks that can happen when we open a group chat, including fetching updated profiles for all members, making sure we have the most up-to-date group state, sending sync messages to your other linked devices to keep read states in sync... it's possible those are responsible for much of this CPU usage. Does the CPU usage generally drop off within ~1 minute of opening the chat? |
These measurements are all taken after waiting a minute after opening the chat in question. it is certainly possible that some remote read responses are coming in, and i wouldn't be able to tell that this is happening because it doesn't affect the UI.
Does this mean that it's to be expected that the CPU usage for no chat open is ~0.5%, but with a chat open it's ~2%? Or do you mean that there could be background activity that i'm unaware of (like read receipts coming in on other chats) and i'm just happening to capture CPU usage at alternate times? Maybe someone else can provide their measurements from comparable scenarios. |
confirmed |
Since the last two versions of Signal-desktop on Linux, CPU usage is almost constant 100% on two cores. Is there a way to fix this? |
@artelse Does it change if you have a conversation open vs. not? Does it change over the course of your user session? Does the app seem responsive when this is happening? Would you be willing to give us a debug log ( |
@scottnonnenberg-signal A conversation open or closed makes no difference. The app remains responsive and over the course not much changes in terms of CPU usage. What I did notice today, it that the high CPU had disappeared when my laptop came out of suspended (sleep) mode. When I than restart the app, it has high CPU again. Let it sleep/awake and it's gone again, so this is completely reproducible. |
@artelse I took a look at your log, and there's nothing particularly interesting about it. And we have a lot of Signal users on various platforms that haven't reported this. Maybe you could gather some low-level metrics about Signal Desktop from your system, like what files are being accessed, and more information about exactly when CPU is high and when it's not, so we can correlate that against your log? |
i am now using Signal v7.2.1 (snap) in xubuntu 22.04.4 LTS the system was hibernated and is now awaked. i have an inactive multiuser-chat in foreground (means open conversation, but nothing happens ATM), no gif's, only textmessages. this window causes a constant high cpu-usage and load. %CPU of PID 989096 toggles between 20% and 40%. the usage drops immediately below 1% when the window loses it's focus, and increases immediately over 20% if the window gets it's focus back again. i recognized this behaviour with the upgrade to v7.0 and it's not the first time this happened after an upgrade. please take note: i am not using the beta-channel of the snap-package. it's the stable-package i am talking about. here's another debug log: |
@FiSHYsolutions Thanks! Your hardware stats could be interesting as well? |
T470 i5-7300U ; 2x CMSX64GX4M2A2666C18 ; 1x TS240GMTS420S ; 1x CT2000MX500SSD1 |
@scottnonnenberg-signal |
@artelse If you could try to figure out what Desktop is doing during that time, that would really help. Is it accessing files? Is it thrashing in the UI? Is the CPU happening in the main process or the renderer process? Is it happening in Electron code, or in our code? |
@scottnonnenberg-signal
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to inactivity. |
Seeing this on 7.7.0 on Ubuntu 24.04. |
A few releases ago, the issue has been resolved for me. My current version is 7.15.0. |
I've just seen Signal 7.16.0 hover around 10% CPU when the app is closed and I'm not even logged in on the desktop (on Windows 11). Over the past few hours, it used more battery than any other of my apps. I believe the usage should have been close to 0, I don't understand why it needs to do anything. |
Using a supported version?
Overall summary
I was using Signal Desktop 6.47.1, and signal could sit idle without burning any significant CPU.
I upgraded to Signal Desktop 7.0.0 and as long as i have any chat open, signal consumes at least 2-3% cpu even when nothing is happening and i'm not interacting with it.
This seems like a regression back to #6544, though i don't know whether it is the same cause.
Steps to reproduce
top
)signal-desktop
rise to the top of the list.signal-desktop
drop down below 1% of CPU usageExpected result
When nothing is happening and no one is interacting with Signal, it should be quiet and idle in the background and not consume any noticeable CPU.
Actual result
As long as a chat is open, it burns a noticeable fraction of a CPU.
Screenshots
No response
Signal version
7.0.0
Operating system
debian GNU/Linux (testing+unstable, debian 13 aka trixie), amd64, Linux 6.6.15
Version of Signal on your phone
6.47.5
Link to debug log
No response
The text was updated successfully, but these errors were encountered: