Closed wohltat closed 1 year ago
Just chiming in here to say I'm seeing high CPU use, too.
Signal is consistently using around 5% CPU for me, while idling. This puts it in the top three processes for CPU use much of the time, again, while idling. Many other apps are running, including Messages.app, various web browsers, and other apps that idle with less CPU use than Signal.
This seems like a lot of CPU use for a chat app that appears to be doing nothing. I'm using an M1-based system running MacOS Monterey 12.3.1. Signal causes excess battery drain when it should be a power sipper.
Lucky you,
I never go below 20% on Linux. And it lasts for months. (Several different versions tested). It looks like this problem does not have a high priority :(
On Thu, May 5, 2022 at 2:55 AM possiblerobot @.***> wrote:
Just chiming in here to say I'm seeing high CPU use, too.
Signal is consistently using around 5% CPU for me, while idling. This puts it in the top three processes for CPU use much of the time, again, while idling. Many other apps are running, including Messages.app, various web browsers, and other apps that idle with less CPU use than Signal.
This seems like a lot of CPU use for a chat app that appears to be doing nothing. I'm using an M1-based system running MacOS Monterey 12.3.1. Signal causes excess battery drain when it should be a power sipper.
[image: Screen Shot 2022] https://user-images.githubusercontent.com/38893123/166849627-841c6fc9-a3b9-46a5-91c6-6d919da9acd4.png
— Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-Desktop/issues/5444#issuecomment-1118067846, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZB6BRVUHFRZIBDAOBSMTVIMMBPANCNFSM5BWWERWQ . You are receiving this because you commented.Message ID: @.***>
So is this an Electron 'disease'? I also see the Discord and Teams apps jumping into the CPU top 5 every now and then with ALL windows closed here on Windows 10. But Signal (5.43.0) seems to take quite a bite. Whereas the Telegram App (made with Qt) barely ever shows up near the top. I guess its not like plug & play to put this on Tauri, right? But would be interesting to see a comparison. 🤔
fixed in signal beta
I'm looking forward to it!
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.
We'd love an update on what CPU usage you see with the latest builds!
I'm running signal-desktop 5.54.0 and I would say the issue seems to be resolved for me, thank you :)
not solved for me on version v5.62.0 (linux Mint)
Clean start. No open chats. No open windows.
Signal Version: v5.62.0
Operating System: No LSB modules are available. Distributor ID: Linuxmint Description: Linux Mint 20.1 Release: 20.1 Codename: ulyssa Linux 5.4.0-126-generic #142-Ubuntu SMP Fri Aug 26 12:12:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Linked Device Version: Signal (Android): 5.52.5
Adding my discovery to this issue:
I get a much lower idle CPU usage on version 5.60.0, but if I update to 5.61.1 I start getting around 5% CPU when idling, so something seems to have changed between these two versions. If I switch between these two versions the problem appears/disappears. 5.62.0 also exhibits the same problem.
I'm running: Arch Linux Linux 6.0.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 29 Oct 2022 14:08:39 +0000 x86_64 GNU/Linux
I'm currently (5.62.0) seeing 5% cpu usage on debian bullseye when idle (minimized). But my feeling is that the actual cause is somewhere deep in electron ... or in other words: There is little hope unless signal gets rid of this monster.
Updated to 5.63.1: Now at <= 1% cpu usage when idle (minimized) Maybe the electron update to 20.3.4 in 5.63.0 did something good ...
Very similar here. But no after restart of Signal. I started to be happy a few months ago but just because after restart as well as a few hours later everything was ok. But I let my system run nonstop for several months. Few days ago I noticed again that Signal doing nothing and using 40% of one CPU core.
For me it is strange. There has been a real problem for over one year. What is Signal doing? Instead of fixing it they started to focus on removing SMS support from Signal ....
All together for me it is a strong signal to stop supporting Signal and start to look around ...
Jozef
On Thu, Nov 10, 2022 at 1:34 PM Axel Dyks @.***> wrote:
I'm currently seeing 5% cpu usage on debian bullseye when idle (minimized to tray). And this is on an AMD CPU with 8 cores = 16 threads. Which means it's almost an entire thread (90%). This is very bad! But my feeling is that the actual cause is somewhere deep in electron ... or in other words: There is little hope unless signal gets rid of this monster.
— Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-Desktop/issues/5444#issuecomment-1310217417, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZB6BVOA6YX5VDZDZCVN3WHTTXDANCNFSM5BWWERWQ . You are receiving this because you commented.Message ID: @.***>
@xlsigned I'm glad to hear that 5.63.1 improved things for you!
@wohltat @habbbe @dodiak What are you seeing on the latest builds? Would you be interested in providing debug logs, devtools performance traces, or maybe system-level traces so we can get to the bottom of your issues?
@scottnonnenberg-signal: Unfortunately 5.63.1 doesn't improve things on my end.
Here is a debug log from 5.60.0 (where I don't have the issue): https://debuglogs.org/desktop/5.60.0/1760593d7adc53c5f910960c53168f421ccff47ded99edd6995350095be37946.gz
And from 5.63.1 (where I have the issue): https://debuglogs.org/desktop/5.63.1/c1577ecea8b6dafb6fed9fe752ba59422d60da38b65c859f7bd9236b61444d84.gz
strace
summaries (using strace --summary-only signal-desktop
for exactly 60 seconds for each version).
These are run on freshly linked signal-desktop instances, so no conversations were present in the list, and no
messages were received while getting the traces.
The futex
syscall seems to be an obvious outlier.
Let me know if there is any other specific information I can provide!
So is this an Electron 'disease'? I also see the Discord and Teams apps jumping into the CPU top 5 every now and then with ALL windows closed here on Windows 10.
I'm seeing a similar problem with Electron apps. On macOS the process "Signal Helper (Renderer)" idles at 3% with all windows closed and "Discord Helper (Renderer)" also idles at 3% with all windows closed.
edit: This was observed on macOS 11.7.1 using Signal 5.63.1
I tried building Signal with the latest versions of Electron 21.3.0 and 22.0.0-beta.6 but the issue was still there. However I am not seeing this issue when using the electron app "Electron Fiddle". The "Electron Fiddle Helper (Renderer)" idles at 0% with the window open, but I'm not certain if the issue is with a part of electron or with how it is being used.
@habbbe we just released a new beta version (v6.0.0-beta.1). Could you try installing it and running the binary with --enable-gpu
flag? I'm hoping that it might improve idle CPU usage for you. Please let me know if not!
@indutny-signal I tried the v6.0.0-beta.2, but it still gave me the same idle CPU usage. Adding or removing the --enable-gpu
flag did not change the outcome.
I don't know whether this is for sure related, but I err on the side of not opening a new issue :) I am using 6.0.1 on Windows 10 with a very nice Ryzen 9 processor and lots of RAM etc. Correct me if I'm wrong, but prior to 6.x, I think Signal only ran one Signal.exe process. Now it seems to run five of them. Some are below normal priority, I think one is normal, and one is Above normal. (I see Zoom doing the same sort of thing; is there a common reason?)
If I leave the priorities set that way, the rest of my system slows down a little. But more importantly, my OBS, which is often running a stream for a large audience with an Above Normal priority single process, begins to glitch.
Even with Signal totally idle, nothing really happening, my livestream begins to choke up and I am dropping hundreds of frames. CPU usage still shows as under 10%, and resource meters show everything I can think of is 2%-50% utilized; nothing above that. OBS is set to use a different GPU than Signal for rendering, but nonetheless, rendering is stuttery.
I find if I then do this: wmic process where name="signal.exe" call setpriority "64" The problem totally goes away. (That command sets all Signal.exe processes to Low priority.)
After that, OBS works perfectly, 0 dropped frames, and Signal seems totally responsive and perfectly usable for sending/receiving texts. No perceivable difference in performance, but OBS is now happy.
What in the living.
Thanks, by the way. I do love Signal and use it all the time.
Correct me if I'm wrong, but prior to 6.x, I think Signal only ran one Signal.exe process.
It didn't. This is usual for Chromium and Electron apps, and not something bad in itself.
I guess I never noticed. Thanks for the correction :)
OK,
few days waiting and it's again here. Signal Desktop is doing nothing and 15-18% of CPU. https://debuglogs.org/desktop/5.63.0/e42aff75b6c08663816d7726c1e07ebbde7c447b81c246a01fc0c7f9288fdfa4.gz
On Wed, Dec 7, 2022 at 1:38 PM therentabrain @.***> wrote:
I guess I never noticed. Thanks for the correction :)
— Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-Desktop/issues/5444#issuecomment-1340907111, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZB6EOP6WMSYBBLHXC5IDWMCALDANCNFSM5BWWERWQ . You are receiving this because you were mentioned.Message ID: @.***>
This is somehow solved for me. Version 6.0.1 just 3-4% idle.
ok, thanks, sorry. I am still on the old version. Upgrading ....
On Fri, Dec 9, 2022 at 11:11 AM mac-linux-free @.***> wrote:
This is somehow solved for me. Version 6.0.1 just 3-4% idle.
— Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-Desktop/issues/5444#issuecomment-1344110390, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZB6FMMUW2YWOEPM7KZCDWMMAU7ANCNFSM5BWWERWQ . You are receiving this because you were mentioned.Message ID: @.***>
Just reporting in that I'm still seeing 4-6% CPU when idle with 6.1.0.
This is still on our radar and we are trying to figure out what's going on. If y'all could send additional debug logs, that'd be very appreciated!
Could anyone on this thread try running profiler on it? I think perf is the recommended tool for it nowadays?
If someone here is on macOS - could you try profiling it using CPU Profiler in the Instruments.app that comes with Xcode?
Sorry, I know I'm asking for lots of details, but what we need to make progress on this is information!
Thanks!
See also issue #4459.
I can report that I'm seeing very low CPU usage (0-0.5%) when idling now. I could only test this back to 6.6.0, but the same is true for 6.8.0.
For me this seems to be solved!
Same here, Ubuntu 22.10. Very low CPU usage now.
Same here on Arch Linux.
Same here. Low CPU usage (less than 1%, where I could see more than 10% before) Pop!_OS 22.04 Signal 6.7.0, installed via flatpak
Thanks for all your reports, everyone. I'm going to close this.
Future folks: Please enter a new bug if you see this behavior again.
Bug Description
signal-desktop is constantly using around minimum 4% CPU on my computer even it is in the background and nothing is happening.
Steps to Reproduce
i just start signal-desktop via command line
signal-desktop
and minimize it.Actual Result: 4%-10% or more CPU usage in idle state. This around as much or more than my window manager uses.
Expected Result: 1% or less CPU usage.
Platform Info
Signal Version: v5.7.1
Operating System: No LSB modules are available. Distributor ID: Linuxmint Description: Linux Mint 20.1 Release: 20.1 Codename: ulyssa
Linux 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Linked Device Version: Android Version: 6.0.1
strace, ltrace
profiling for 10seconds of app running
Most time is spend in library calls and not in syscalls. I still don't really know how to interpret this since with 4% CPU usage over 10s should be something like 0.4 seconds.