This repository has been archived by the owner on May 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Reduce netroute syscalls #238
Comments
We can probably optimize this somehow, but will it save the power user's problem? Assume for the moment that we had optimized this so far that this code path becomes essentially free. Then they'd end up with tons of QUIC connections (assuming that a non-negligible fraction of the dials succeed). Am I missing something? |
Making a netroute router fetches the routing table from the kernel which is fairly expensive on creation. |
I'm not doing anything special, my connection manager has a setting of 2000/3000/1m and im running a dht node. |
Stebalien
added a commit
that referenced
this issue
Oct 28, 2021
Technically, someone can set net.ipv4.ip_nonlocal_bind=1 to bind to non-existent IP addresses, but I'm comfortable making this change and seeing if anyone complains. I highly doubt it'll have any impact. If it doesn't work out, we have other options (e.g., catch the "invalid route" error and try again). fixes #238
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Some... let's call them power users... seem to enjoy abusing their systems by dialing as fast as possible. Unfortunately, this means we're wasting a lot of CPU cycles on determining source addresses in:
go-libp2p-quic-transport/reuse.go
Lines 120 to 125 in 2e302b1
Ideally, we'd:
The text was updated successfully, but these errors were encountered: