aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Bandwidth hog  (Read 2962 times)

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
Bandwidth hog
« on: March 18, 2005, 01:03:03 PM »

I'm running Amule CVS 20050315 on Debian Sarge 2.6.8-2-386 on an Amd64 Asus machine (but with a 32bit kernel - sorry, I'm waiting for Etch to go to 64). I'm connect by a router on an ASDL .5Mbs line.
Basically everything is fine. High ID, my ports are forwarded, no crashes, no dropped connections, instant connection to a server. No I'm not going to complain about DL speed.
But... amule seems to grab a huge amount of bandwidth. I can only run it while I'm sleeping because the net connection slows to a crawl. Here's a bench mark. I run aptitude udate && aptitude upgrade 2 or 3 times a week. I've go a fairly large sources.list file so doing this takes a while an I can study the dl speed. Without amule running it is a very constant 54.1-4kBs which I take to be reasonable for my connection. When I do the same thing at the same time of day and the same day of the week (controlling for as many variables as I can), aptitude udating and ugrading slows down to between 1 and 16kBs (and usually closer to 1 than to 16).
Amule is configured to DL 28kBs UL 12kBs Max connections 180 Slot allocation 2kBs. Any ideas about what I can tweak to improve the situation and cut down on amule's bandwidth hogging.
Thanks in advance.
Jonathan
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Bandwidth hog
« Reply #1 on: March 18, 2005, 03:54:54 PM »

Try lowering amules upload limit. I'm missing information about the upload capacity of your line, but you have to remember that amule takes the upload you set + overhead which can really slow down downloads...
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
Bandwidth hog
« Reply #2 on: March 18, 2005, 04:38:15 PM »

Thanks Dude,
Sorry my UL line speed is 128kbs (remember my DL is 512kbs). My UL limit is currently set to 12kbs. This seems reasonable to me but I'll try lowering it as  you suggest. (BTW - before changing to Linux I had a Win 2k box on a slower line (Telefonica raised it from 256kbs to the current 512 a couple of months ago) and using emule with similar setting I never experiences the bandwidth hogging.) Anyhow, I'll lower it and let you know how it works.
Thanks again,
Jonathan
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1551
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Bandwidth hog
« Reply #3 on: March 18, 2005, 04:41:06 PM »

I think aptitude upgrade isn't good for benchmarking. Update is OK, because the Packages.gz and Release files are replaced, but the upgrade, brings some new files which might be on a really different place on the servers hd, and the Variety of updated packages may result in some files that have to be read from really different places, the packages is usually often read, so it is in the Servers Cache.
For benchmarking I would suggest, that you take some webspace, bring their some files and wget them.
Logged
Homefucking is killing prostitution

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Bandwidth hog
« Reply #4 on: March 18, 2005, 04:47:58 PM »

OK, for 128 kbit upload 12k is a little too much (I have a 128/1024 line myself). 128 kbit upload means 16kbyte. The problem is that there is a bug in amule so it uses chosen upload + overhead + 4k (bug). You can see that this maxes out (and still wants more) than your line capacity. And you always have to remember that every downloaded (TCP) package needs a little upload speed to acknowledge that it has reached its destination. That is why your download is so slow.

I have set amules upload limit to 10k and this is quite the borderline, sometimes other downloads are fine and sometimes they are slowed down by amule...
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
Re: Bandwidth hog
« Reply #5 on: March 18, 2005, 07:25:02 PM »

Thanks Vollstecker & Dude,
Re. aptitude update vs. upgrade, I monitor them and if I'm installing a big package the speeds are quite consistent between the update & upgrade. It's quite remarkable day after day between 54.1kBs & 54.4. Anyway it's not a precision instrument. I tried some of the web speed tests and the general outcome is that I lose about 10 to 15 kBs when Amule is running. I've turned down the UL to a max of 8 kBs and the bandwidth loss is tolerable. My girlfriend isn't complaining anymore about her speeds suffering (we're both connected to the same router).
Is there any long term fix in sight or is this as good as it gets?
Thanks to both of you.
Jonathan
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Bandwidth hog
« Reply #6 on: March 18, 2005, 07:42:19 PM »

The "4k bug" is being adressed, the problem is only that nobody has a clue where these 4k come from. But sooner or later this will be sorted out  ;)
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
Re: Bandwidth hog
« Reply #7 on: March 18, 2005, 09:43:55 PM »

Quote
Originally posted by thedude0001
The "4k bug" is being adressed, the problem is only that nobody has a clue where these 4k come from. But sooner or later this will be sorted out  ;)
That sounds good to me. Lowering the UL to 8 kBs certainly boosted my dl speed. Should I feel guilty? Anyway I am now totally totally happy with Amule. You guys do a great job and you are appreciated.
Cheers,
Jonathan
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Bandwidth hog
« Reply #8 on: March 19, 2005, 03:16:15 AM »

Quote
Originally posted by thedude0001
The "4k bug" is being adressed, the problem is only that nobody has a clue where these 4k come from. But sooner or later this will be sorted out  ;)

I know where does it come from.
Logged