Snark choking itself

Issues and ideas about I2PSnark
Post Reply
Xeyed1
Posts: 8
Joined: 19 Jun 2018 17:00

Snark choking itself

Post by Xeyed1 »

I am having troubles with Snark limiting itself. Often when starting i2prouter and then starting Snark there will be a notice in the log pane at the top of Snark with a line "Up bandwidth limit is 25 KBps." I used to be able to restart with all other applications that use the network shutoff and no other machines on the network. It seemed to help. I would eventually be able to get Snark to run and upload at speeds up to 100kbps.

Lately I have not been able to get it to do that. No matter what I do I cannot get decent upload speeds. What can I do to get Snark to quit limiting itself?

i2psnark.config is set to have:

i2psnark.i2cpOptions=inbound.length=3 inbound.quantity=4 outbound.length=3 outbound.quantity=4

Even though I have it set to 4 tunnels in i2psnark.config it will often start with 2 or 1 tunnel. It will also reset itself. If I have forced it to use more tunnels and I go back to check after a few hours I will often find that it is back to using 2 tunnels or sometimes 1 tunnel. Often I will increase the inbound and outbound tunnel quantities to 8 (sometimes as high as 16) which used to help get the bandwidth up. My reasoning is that if I have extra tunnels open I can lessen the effects of tunnels being built with slow relay hosts. Lately this does not seem to have any effect.

I have the following settings at http://127.0.0.1:7657/config

500KBps In
300KBps Out
100% share

Dropping the setting for Out to 100KBps or setting share to 40% does not seem to help. I double checked and the router for my broadband connection has the external and internal ports forwarded for the i2prouter machine.

After a restart and running just the router without Snark for 45 minutes the router connection gives the following values:

Peers:
Active: 1581 / 3844
Fast: 15
High capacity: 150
Integrated: 1862
Known: 5280
Failing: 0
Banned: 26
Congestion:
Job lag: 0
Message delay: 533 ms
Backlog: 0

Bandwidth:
3 sec: 94.08 / 94.48 KBps
5 min: 123.4 / 122.7 KBps
Total: 71.66 / 69.87 KBps
Used: 178.8 MB / 174.3 MB

Tunnels:
Exploratory: 8
Client: 2
Participating: 656
Share ratio: 26.24

Congestion:
Job lag: 0
Message delay: 254 ms
Backlog: 0

I am not sure if it is related to the last release (0.9.36-0-2ubuntu1) or not. Up until last week I used to be able to get sustained bandwidth usage of over 200kBps In and Out. I would like to be able to use more of my available bandwidth with Snark. Any suggestions?
User avatar
zzz
Posts: 208
Joined: 31 Mar 2018 13:15

Re: Snark choking itself

Post by zzz »

Ensure that the 'up bandwidth limit' in i2psnark config is high enough.
You can send to more peers at once by increasing the 'total uploader limit'
Snark automatically sets the number of tunnels, up to the configured limit. If it doesn't need the configured amount, it will build less.
Ultimately, snark is our network load tester. There's a lot of limitations in our i2p router implementations at the various layers, and of course you can only go as fast as your peers in the network, and the far end of your connection, will allow. Things could always be faster. The streaming layer continues to be a focus of ours for improvements. We never stop thinking about how to make i2p faster.
Thanks for your testing and report.
User avatar
AntibodyMama
Posts: 37
Joined: 18 Jun 2024 20:45

Re: Snark choking itself

Post by AntibodyMama »

I have the same problem.
Since my internet speed over 800Mb/s, i tried changing the "Bandwidth limit" up and down in i2p snark, but i can only enter 4 characters.
I searched and found this post https://lemmygrad.ml/post/3520257.
I went to `/home/user/.i2p/i2psnark.config.d/i2psnark.config` and changed
i2psnark.upbw.max=60000
and
i2psnark.downbw.max=60000
(60000 KB/s = 480Mb/s)

I am still testing to see if it will be better. I think the damn tunnels are still adjusting themselves.
In https://127.0.0.1:7667/configtunnels i see 1 tunnel for i2p snark
In https://127.0.0.1:7667/i2psnark/ i see 7 tunnels at the bottom, which is the value i set !!
In https://127.0.0.1:7667/tunnels, i see only 5 rows in i2p snark area, i don't think those are 7 tunnels.
Last edited by AntibodyMama on 04 Mar 2025 12:57, edited 1 time in total.
User avatar
AntibodyMama
Posts: 37
Joined: 18 Jun 2024 20:45

Re: Snark choking itself

Post by AntibodyMama »

[Update]

I noticed a nasty thing.

When i changed the "Bandwidth limit" manually in /home/user/.i2p/i2psnark.config.d/i2psnark.config to
i2psnark.upbw.max=60000
and
i2psnark.downbw.max=60000

the torrents are all stalled, i can download nothing.

When i made them back to 9999 both up and down, the torrents are working again.
Any idea why this is happening ?
User avatar
cumlord
Posts: 4
Joined: 13 Jul 2024 05:14

Re: Snark choking itself

Post by cumlord »

this isn't an answer to why it does that, but snark won't go that fast. i'd be impressed if it hung around 2000 for a while. that's pushing it, i think, with 3 hops and 16 tunnels.

snark will adjust dynamically to the number of tunnels it needs. you can allow it 16 tunnels up/down (you might as well, in my opinion) but if you're only downloading or uploading to a couple of peers it will only use a couple tunnels.
User avatar
AntibodyMama
Posts: 37
Joined: 18 Jun 2024 20:45

Re: Snark choking itself

Post by AntibodyMama »

Thanks for your reply.

I am using DHT and no trackers and i cant find any other seeders 🥲.
Yet i am sure there are 2 or 3 other seeders for the same file.
Don't know if this is natural or something is configured wrong.
Post Reply