You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I maintain EchoBot, a small service for Tox that allows users to test their audio and video. It runs version 0.2.17 of c-toxcore. We've recently started seeing very large amounts of CPU and network usage. 100% CPU usage on the Tox thread and around 28 Mbit/s worth of network transmission, continuously. EchoBot has always been rough on resources when starting up, but would settle down eventually. The settling down part appears to no longer happen now that it has ~1400 friends.
I used Jfreegman's netprof branch of toxcore to do some monitoring of the types of packets that are being sent. Here's a chart of the top packet types over the course of half a day:
Toxcore sends almost ~7500 ONION_SEND_INITIAL packets per second, continuously. @JFreegman provided some patches to try and nail down why toxcore seems to never back off of sending so many onion packets. He found that in this case toxcore regularly thinks that we're no longer connected to the Tox network and then resets the announcement run counter:
Hi, how about a workaround until the issue get proper fixed ?
I would propose that EchoBot "forget" a friend after an hour.
This way you never get 1000+ concurrent user.
The most common EchoBot use case is 1st time test and re-test after hardware/environment changes.
A 1 hour "test window" would be fine in, I guess, 99% of all use cases. If not, just remove EchoBot and re-add it to get another hour. RFC.
I maintain EchoBot, a small service for Tox that allows users to test their audio and video. It runs version 0.2.17 of c-toxcore. We've recently started seeing very large amounts of CPU and network usage. 100% CPU usage on the Tox thread and around 28 Mbit/s worth of network transmission, continuously. EchoBot has always been rough on resources when starting up, but would settle down eventually. The settling down part appears to no longer happen now that it has ~1400 friends.
I used Jfreegman's netprof branch of toxcore to do some monitoring of the types of packets that are being sent. Here's a chart of the top packet types over the course of half a day:
Toxcore sends almost ~7500 ONION_SEND_INITIAL packets per second, continuously. @JFreegman provided some patches to try and nail down why toxcore seems to never back off of sending so many onion packets. He found that in this case toxcore regularly thinks that we're no longer connected to the Tox network and then resets the announcement run counter:
c-toxcore/toxcore/onion_client.c
Lines 1886 to 1895 in 7dde71c
I think there are possibly two things to do here:
The text was updated successfully, but these errors were encountered: