toxcore
toxcore copied to clipboard
Constantly 8% CPU usage when idle
Happens with Toxic, Venom, uTox, doesn't matter, so I assume it's a toxcore issue.
When either of these clients are just idle, it uses 8% of CPU. Sometimes goes down to around 7%, sometimes up to 9-12%, but other than that it is stable 8% of CPU.
what kind of CPU and OS are you running it on?
I've test this on two computers:
Computer One
- OS: ArchLinux
- CPU: Intel(R) Pentium(R) Dual CPU E2140 @ 1.60GHz
- CPU Usage: Pretty stable 8%
Computer Two
- OS: Manjaro
- CPU: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz
- CPU Usage: Stable 6.7%, goes up to 9% at times, then down to 4% at times.
Related issues: https://github.com/Tox/toxic/issues/101 and https://github.com/irungentoo/toxcore/issues/459
i686 or x86_64?
i686
@Brottweiler Is this still an issue with the latest version of toxcore on your system?
Well I have a new computer so can't really test it on that old low end pc. :confused:
Well, I think this issue can be closed then since this is probably fixed already. When someone else is expecting high CPU usage, it might be better to open a new issue.
:+1:
it might be better to open a new issue.
Why new? This issue had never been fixed.
Idle CPU usage by qTox is still 3% on Intel(R) Core(TM) i7 CPU L 620 @ 2.00GHz. IMHO, that's enough to create issues with battery drain on notebooks and smartphones.
debian/jessie:
libtoxav0 0.1.3752.2e48a3f-1
libtoxcore0 0.1.3752.2e48a3f-1
libtoxdns0 0.1.3752.2e48a3f-1
libtoxencryptsave0 0.1.3752.2e48a3f-1
qtox 1.3.0-28-ge37e87d-1
Same here, I use recent git versions (Mar 7th) of toxcore (commit 2e48a3f51d81e9b4208281f685ae8722ba7cb155) and utox ( commit 54578239552660ee130b8f6e6fd5c6d60082c22b).
I have constant ~7% CPU usage on Intel(R) Atom(TM) CPU N270 1.80 GHz (SHE overclocking), Gentoo Linux.
@Brottweiler you appear to approve of reopening, you can do so
@ProMcTagonist It seems to still be an issue, and if a contributor had closed it I wouldn't be able to reopen so it's just luck/coincidence that I can reopen in this case. I would let a contributor do it, but I might aswell do it if I have the option.
@xaionaro @bircoph @Brottweiler Current OS? Arch (x32 x64)? Client, and client version?
I don't use Tox anymore, but the other two obviously are and one of them I think included the needed information.
@GrayHatter I already provided client/version/os/cpu information. Arch is x86, since CPU is 32-bit Intel Atom.
@bircoph sorry, must have been blind when I read your post, I missed the client version
I found other programs leading to CPU 100% when (such as compiling), Tox will be offline.
related; https://github.com/GrayHatter/uTox/issues/67#issuecomment-166054829
@GrayHatter, amd64, debian/jessie, Intel(R) Core(TM) i7 CPU L 620 @ 2.00GHz, toxcore-0.1.3752.2e48a3f-1, qtox-1.3.0-28-ge37e87d-1, CPU load by idling qtox is 3%
@quininer,
I found other programs leading to CPU 100% when (such as compiling), Tox will be offline.
Sorry, but what you mean? It's a somekind of sarcasm?
@xaionaro It's true. I use Rust, some large libraries when compiling consumed me a lot of CPU.
OS: ArchLinux Processor Type: Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz toxcore: https://github.com/irungentoo/toxcore/commit/c510e2407f8caa880f38d77386cebc52ae7c1360 qtox: https://github.com/tux3/qTox/commit/9d8561a526643659af8ec9f83c91aa0e4862a6ef
Perhaps the main reason is my CPU too far behind, because it is not able to reproduce on my other computer.
@quininer, sorry, misunderstood. I read
I found other programs leading to CPU 100% when (such as compiling), Tox will be offline.
as
I found other programs leading to CPU 100% such as compiling when Tox is offline.
On my system qtox CPU usage is about 27-50% when idle. I'm using a new profile. No friends. Never sent or received a message. qtox-1.4.1-3. toxcore-3747-1. Parabola GNU/Linux-libre. Intel Core 2 Duo E8400. x86-64.
does anyone see the same CPU load on uTox?
On utox built from git two days ago (as well as tox core library), new empty profile, no contacts, I have the following:
- CPU load 1.3 – 2.0 % (not constant)
- OS: Gentoo Linux (32-bit)
- CPU: Intel Atom N270 @ 1.8 GHz
That's similar to my tests as well. I'm thinking this could be closed as a qTox issue?
On Aug 6, 2016 5:40 AM, "Andrew Savchenko" [email protected] wrote:
On utox built from git two days ago (as well as tox core library), new empty profile, no contacts, I have the following:
- CPU load 1.3 – 2.0 % (not constant)
- OS: Gentoo Linux (32-bit)
- CPU: Intel Atom N270 @ 1.8 GHz
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/irungentoo/toxcore/issues/933#issuecomment-238021531, or mute the thread https://github.com/notifications/unsubscribe-auth/AAO20L-qxaAf_mpvwUT-2U_vjtTa68kjks5qdIC_gaJpZM4CHz96 .
On i5-4460 cpu load by toxic is 0-4% while idling (no chat or whatever).
That's similar to my tests as well. I'm thinking this could be closed as a qTox issue?
4% in idle mode on such powerful CPU as i5-4460 is no fun at all. And even 2% on Atom is no good too. Looks like someone have to run profiler to see what is happening.
Tox doesn't really do "idle" it's always responding to node requests, and searching through the DHT for the best spot for it to sit.
Is there any way to control this idle behaviour? E.g. how frequently to search or rate-limit requests.