Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bittorrent brings my internet connection to a crawl
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Wed Dec 17, 2003 6:26 am    Post subject: Bittorrent brings my internet connection to a crawl Reply with quote

When I don't have bittorrent running, I can download files at 200-300+kbps, gaims stays connected, everything seems to be fine.

But as soon as I load one up, it all goes down the drain. BT usually uploads a total (over all the .torrents running) of 40KB/s and uploads anywhere from 10-90KB/s, way below what my connection should be able to handel.

I have all the ports set up right as far as I know, if I run shadow's experimental client I see that there are remote users connecting to me, which means the ports are set up correctly.

Is there anything I could do or try to change to help this?
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Wed Dec 17, 2003 9:05 am    Post subject: Reply with quote

iam not aware that you can change the settings of bittorent.
However you can with some traffic shaping software, somehow, restrict how much bandwidth you use for the uploads so that your line isnt saturated.

usually keeping it at under 10% of max capacity will allow you to download / upload and still keep your connections without timeouts.

How, with which software and how to set that up, is something i dont know.
But if you think it makes sense, maybe you can fint some info about how to acomplish that somewhere n the net.
_________________
linux: #232767
Back to top
View user's profile Send private message
searcher
Apprentice
Apprentice


Joined: 13 Mar 2003
Posts: 175
Location: NL

PostPosted: Wed Dec 17, 2003 9:14 am    Post subject: Reply with quote

Bittorrent is overqueueing your internet connection. This means your modem is forced to handle the queue, which modems aren't usually very good at. If you are using the `official' bittorrent client you can restrict a few things, so bittorrent takes care of not over-saturizing your connection:
Code:
btdownloadcurses.py --responsefile <bittorrent file> --max_uploads <max people that can download> --max_upload_rate <upload speed in kbps>

Check for more options by executing bittorrent without any option.

~searcher
_________________
You are unique ... just like everyone else.
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Wed Dec 17, 2003 10:50 am    Post subject: Reply with quote

you can emerge bittorrent-theshadow for more options;
but please do not disable uploading or set it so low that
no one will benefit from it. bittorrent is great because it
actually works. it puts a lot of trust in people uploading
what they download. don't break the system.
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Wed Dec 17, 2003 4:27 pm    Post subject: Reply with quote

Yeah, I'm on a site that tracks your download/upload ratio and boots people who don't share, so I couldn't turn sharing off even if I didn't mind leeching off other people's generosity. Thanks for the tips, I'm using theshadow's client.. I'll have to try out some of those options.
Back to top
View user's profile Send private message
Koon
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 518

PostPosted: Wed Dec 17, 2003 5:17 pm    Post subject: Reply with quote

Your problem comes from upload trafic killing download bandwidth. ACK packets from the download get lost in the maxed upload traffic.

You can use a traffic shaper on the Linux network stack to have ACK packets prioritary. The LARTC WonderShaper is such a shaper. You lose a little bandwidth but you can upload and download at the same time (and keep a nice 10ms ping).

http://lartc.org/wondershaper/
I use it together with Shorewall (as a tcstart file). Note that the CBQ version works better for me than the HTB version. Needs tuning.

-K
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Thu Dec 18, 2003 6:23 am    Post subject: Reply with quote

Thanks for the tip, koon.. I'll have to try that program out
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum