aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Make compression between server/client a selectable item.  (Read 3357 times)

stoatwblr

  • Sr. Member
  • ****
  • Karma: 12
  • Offline Offline
  • Posts: 318
Make compression between server/client a selectable item.
« on: November 15, 2009, 07:07:44 PM »


Currently compression is forced on between client and server at all times.(*)

Server/client compression is always a tradeoff between consumption of available CPU resource and throughput gains.

For any given system: Beyond a threshold link speed/latency, throughput becomes hard-limited by compression engine throughput ability, not the network speed. At this point compression becomes a net loss and should be disabled.

For amule(d) - amulegui interactions this basically means that compression is getting in the way for Loopback and LAN connections and may well be a loss for faster WAN connections too.

Disabling client/server compression will have the greatest noticeable effect on low power desktops and setups such as routers, embedded systems or low power fileservers  running amuled that are accessed via a local network desktop.

(*) Amule(d) and the amuleweb client already have switchable compression on client/server interactions, so hopefully it's just a matter of reusing the same code for other Amule clents.


Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Make compression between server/client a selectable item.
« Reply #1 on: November 16, 2009, 01:51:02 AM »

IMO, amule's compression engine is very efficient and it should not be disabled. It always saves bandwidth, since on any recent machine (Pentium III onwards) compression engine throughput is faster than WAN links (I tested aMule with two clients on a single LAN and it threw like 20-25Mbps), so the option to disable it seems silly to me. Also, the compression on the amuleweb is just for the HTTP traffic from the web client to amuleweb, it has nothing to do with aMule's traffic compression. I have never used amuled, so I can't comment for sure on it, but I bet it's a similar option.

Regards.
Logged

lfroen

  • Guest
Re: Make compression between server/client a selectable item.
« Reply #2 on: November 16, 2009, 05:09:11 PM »

This is not an issue. In amuled <-> amuleweb communication compression turned on only for packets of > 1K IIRC. Majority of packets is smaller, thus no compression.
HTTP compression is good thing, since often access to amuleweb made over slow links, and html pages can be quite big.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Make compression between server/client a selectable item.
« Reply #3 on: November 16, 2009, 10:33:55 PM »

I think he means client<->client, on ED2K.
Logged

stoatwblr

  • Sr. Member
  • ****
  • Karma: 12
  • Offline Offline
  • Posts: 318
Re: Make compression between server/client a selectable item.
« Reply #4 on: November 17, 2009, 03:52:11 AM »

I mean between amule/amuled (server) and amulegui/amulecmd (client)


This has nothing to do with p-p, kad, ed2k or http traffic.
« Last Edit: November 17, 2009, 03:55:38 AM by stoatwblr »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Make compression between server/client a selectable item.
« Reply #5 on: November 17, 2009, 08:54:42 AM »

Oh I see. Then lfroen's applies.
Logged