Steam for Linux

Steam for Linux

Workaround for slow download speeds with the Steam for Linux client
Background
Due to a bug in the Steam for Linux client it can slow down not only its own download speeds, but all DNS using network activity at the same time. This happens because the client looks up the network address for all the download servers it connects to every time it makes a connection. This can mean it will request the same information ten times a second from the DNS servers your network connection is using. Depending on how that DNS server is configured, it can throttle down the amount of DNS requests you can make. This causes Steam download speeds to start fast, but then quickly slow down into nothing, before starting up again fast for a short while.

Workaround
To workaround this issue you can install a DNS cache daemon/program on the local machine running Steam so it only taxes your machine, and not your ISP.

In Ubuntu the easiest one to install is dnsmasq because a stripped down version of it (dnsmasq-base) is installed by default already. The base version installed by default does not have the caching functionality enabled.

Because the base version is already running by default the full version you install is not able to start. Easiest way is to just restart your computer, but you can also stop the old dnsmasq service and then start the new one.

Result
For me download speeds in Linux used to climb quickly to 3MB/s and then fall down to nothing in a few seconds until starting up again more than ten seconds later. This also affected all other network traffic. After installing dnsmasq my download speed is a steady 5 to 6MB/s; the same speed as in Windows.
< >
Beiträge 115 von 151
Time to open a bug on the Steam bugtracker, if you haven't already done so. Nice catch!
Ursprünglich geschrieben von LOLCAT:
Time to open a bug on the Steam bugtracker, if you haven't already done so. Nice catch!
Thanks! It's tracked at Issue 3401[github.com] . I got tired of having to leave Steam to download overnight and finally looked into it. This bug has existed for at least over a year, maybe even from the first version of the Linux client.
Matze 4. Okt. 2014 um 22:53 
Thanks for sharing the workaround. dnsmasq is already installed on openSUSE by default. Can you tell me how to configure it to cache the DNS (for Steam)?
Sorry, but I've never used or configured openSUSE.
This really works!!! Very Thanks!!!
nice tip. this really stabilized my steam downloads greatly.
JDx 22. Dez. 2014 um 22:54 
works +1
triodo 24. Dez. 2014 um 10:12 
+1
So, how *exactly* do we actually use this tip? I have dnsmasq installed but have no idea how to use it to fix the issue. Can someone please post a complete howto on this, instead of just a "fixed it for me" or "+1"?
JDx 25. Dez. 2014 um 14:24 

IIRC , I just installed that "dnsmasq" package from package manger in Ubuntu, and turn ff/ on computer and after a while the download speed started to go up in steam
Ursprünglich geschrieben von The Dog's Day:
So, how *exactly* do we actually use this tip? I have dnsmasq installed but have no idea how to use it to fix the issue. Can someone please post a complete howto on this, instead of just a "fixed it for me" or "+1"?

the "how" has already been explained:install dnsmasq

once installed domain name queries are then handled by dnsmasq. when your computer makes a domain name query, dnsmasq checks it's cached list of domain addresses, and if the address isn't currently cached, it forwards the query to the next available dns. it then caches the response, and all subsequent queries to that domain are then handled by dnsmasq.
Zuletzt bearbeitet von 毕贤胜[Linux]; 26. Dez. 2014 um 6:19
guga_ 27. Dez. 2014 um 18:15 
Tyyyy! 231 days to 20min! haha
Complete howto for those still confused:
sudo apt-get install dnsmasq
sudo service dnsmasq restart
# done, this immediatelt improved my download spee from few kbytes per second to full 1.2Mbit

No restart was required.
pdnsd is a nice caching DNS proxy. Besides, it keeps cached records between reboots.
JDx 7. Jan. 2015 um 21:21 
Download speeds are still half then on windows client , even with dnsmasq
< >
Beiträge 115 von 151
Pro Seite: 1530 50