yggdrasil-network / yggdrasil-go

An experiment in scalable routing as an encrypted IPv6 overlay network
https://yggdrasil-network.github.io
Other
3.66k stars 246 forks source link

[Bug] Yggdrasil process eating lots of CPU and slowing down network #1167

Open lemonzest79 opened 2 months ago

lemonzest79 commented 2 months ago

Hi

I'm on Fedora 40 Cinnamon and install yggdrasil from the copr repo, since the last update I've noticed the yggdrasil process eating a lot of CPU (I have btop open constantly) and it seemed to be affecting networking, my wireless devices were running really slow but when I disabled the yggdrasil service sudo systemctl disable --now yggdrasil.service on all machines full network speed resumed, I've no idea what is going on with this, I have it installed an approx 10 machines at home, mostly fedora 40 but 4 debian sid machines too

neilalexander commented 2 months ago

How many peers? If you do yggdrasilctl getPeers do you see large amounts of TX/RX traffic?

lemonzest79 commented 2 months ago

Yes there was lots of traffic, the 10 local machines here each had an in/out and then there was the public peer

neilalexander commented 2 months ago

You'll need to be more specific about which peers are the ones with high traffic movement, as it is possible that your computer was just being used to route a lot of traffic (far more likely with a higher number of peers).

lemonzest79 commented 2 months ago

I think I know whats causing the wireless slowdown its the wireless machines all talking to each other through the wifi and like 5 devices is slowing the wifi down, heres the results from one machine thats running high cpu %

yggdrasil0 yggdrasil1

Vort commented 1 month ago

its the wireless machines all talking to each other through the wifi

State ... Down ... 0s ago looks suspicious. Are they constantly connecting and disconnecting?