A minor network speed boost

For the past few months I’ve been suffering with noticeably slow network speeds on my battered Thinkpad. It’s running almost 24/7 as an rtorrent slave, so the crappy performance wasn’t really a big deal, and that’s why I didn’t chase it very much. I don’t really care if I seed the Ubuntu 8.04.1 ISOs at 2kbps or 20, since I’m only doing it to help out.

Yesterday I noticed this bug report for Ubuntu, which rather tersely mentions network speeds on the 2.6.2? kernel. Apparently, if the comments are correct, one of the sysctl.conf options is set in a way that can interfere with performance.

Mind you that laptop is running Arch, and the network port is nothing spectacular anyway, but installing procps (which owns the sysctl framework) and adding this line to /etc/sysctl.conf

net.ipv4.tcp_window_scaling = 0

doubled the download and upload speeds in rtorrent. Of course, they were rather paltry to start with, so doubling them isn’t that spectacular, but at least I’m getting total download speeds in the 50-60kbps range, when they were barely peaking at 12kbps before.

I can’t guarantee it’s a winner for every system, but I’ve added it to two Arch systems and an Ubuntu one, and it doesn’t seem to hurt anything. First thing, do no harm. ;)

About these ads

One thought on “A minor network speed boost

  1. Onyros

    Jeez… I gotta keep tabs on this one, too.

    It didn’t double my rtorrent speeds, it quadrupled them. Thanks!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s