toxcore icon indicating copy to clipboard operation
toxcore copied to clipboard

Constantly 8% CPU usage when idle

Open Brottweiler opened this issue 11 years ago • 33 comments

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.

Brottweiler avatar Jun 26 '14 12:06 Brottweiler

what kind of CPU and OS are you running it on?

irungentoo avatar Jun 26 '14 15:06 irungentoo

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

Brottweiler avatar Jun 26 '14 18:06 Brottweiler

i686 or x86_64?

irungentoo avatar Jun 26 '14 18:06 irungentoo

i686

Brottweiler avatar Jun 26 '14 20:06 Brottweiler

@Brottweiler Is this still an issue with the latest version of toxcore on your system?

codedust avatar Jul 11 '15 21:07 codedust

Well I have a new computer so can't really test it on that old low end pc. :confused:

Brottweiler avatar Jul 11 '15 23:07 Brottweiler

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.

codedust avatar Jul 11 '15 23:07 codedust

:+1:

Brottweiler avatar Jul 12 '15 00:07 Brottweiler

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

xaionaro avatar Mar 13 '16 12:03 xaionaro

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.

bircoph avatar Mar 13 '16 13:03 bircoph

@Brottweiler you appear to approve of reopening, you can do so

ProMcTagonist avatar Mar 13 '16 19:03 ProMcTagonist

@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.

Brottweiler avatar Mar 13 '16 19:03 Brottweiler

@xaionaro @bircoph @Brottweiler Current OS? Arch (x32 x64)? Client, and client version?

GrayHatter avatar Mar 13 '16 21:03 GrayHatter

I don't use Tox anymore, but the other two obviously are and one of them I think included the needed information.

Brottweiler avatar Mar 13 '16 21:03 Brottweiler

@GrayHatter I already provided client/version/os/cpu information. Arch is x86, since CPU is 32-bit Intel Atom.

bircoph avatar Mar 14 '16 05:03 bircoph

@bircoph sorry, must have been blind when I read your post, I missed the client version

GrayHatter avatar Mar 14 '16 05:03 GrayHatter

I found other programs leading to CPU 100% when (such as compiling), Tox will be offline.

quininer avatar Mar 14 '16 14:03 quininer

related; https://github.com/GrayHatter/uTox/issues/67#issuecomment-166054829

cebe avatar Mar 14 '16 20:03 cebe

@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%

xaionaro avatar Mar 14 '16 20:03 xaionaro

@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 avatar Mar 14 '16 20:03 xaionaro

@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 avatar Mar 14 '16 20:03 quininer

@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.

xaionaro avatar Mar 14 '16 21:03 xaionaro

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.

ghost avatar Aug 05 '16 20:08 ghost

does anyone see the same CPU load on uTox?

GrayHatter avatar Aug 06 '16 02:08 GrayHatter

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

bircoph avatar Aug 06 '16 12:08 bircoph

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 .

GrayHatter avatar Aug 06 '16 17:08 GrayHatter

On i5-4460 cpu load by toxic is 0-4% while idling (no chat or whatever).

xaionaro avatar Aug 06 '16 21:08 xaionaro

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.

bircoph avatar Aug 07 '16 19:08 bircoph

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.

GrayHatter avatar Aug 07 '16 21:08 GrayHatter

Is there any way to control this idle behaviour? E.g. how frequently to search or rate-limit requests.

bircoph avatar Aug 11 '16 13:08 bircoph