Steam for Linux

Steam for Linux

Sanguivor 2014년 9월 26일 오전 7시 43분
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.
< >
151개 댓글 중 1-15개 표시
Dusk of Oolacile 2014년 9월 26일 오후 1시 20분 
Time to open a bug on the Steam bugtracker, if you haven't already done so. Nice catch!
Sanguivor 2014년 9월 26일 오후 6시 35분 
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 2014년 10월 4일 오후 10시 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)?
Sanguivor 2014년 10월 4일 오후 11시 22분 
Sorry, but I've never used or configured openSUSE.
Thunderboad 2014년 12월 2일 오후 2시 24분 
This really works!!! Very Thanks!!!
毕贤胜[Linux] 2014년 12월 16일 오후 6시 44분 
nice tip. this really stabilized my steam downloads greatly.
JDx 2014년 12월 22일 오후 10시 54분 
works +1
triodo 2014년 12월 24일 오전 10시 12분 
+1
The Dog's Day 2014년 12월 25일 오후 1시 33분 
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 2014년 12월 25일 오후 2시 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
毕贤胜[Linux] 2014년 12월 26일 오전 6시 18분 
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.
毕贤胜[Linux] 님이 마지막으로 수정; 2014년 12월 26일 오전 6시 19분
guga_ 2014년 12월 27일 오후 6시 15분 
Tyyyy! 231 days to 20min! haha
bartekbrak 2015년 1월 6일 오전 8시 51분 
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.
Kranky K. Krackpot 2015년 1월 7일 오후 2시 02분 
pdnsd is a nice caching DNS proxy. Besides, it keeps cached records between reboots.
JDx 2015년 1월 7일 오후 9시 21분 
Download speeds are still half then on windows client , even with dnsmasq
< >
151개 댓글 중 1-15개 표시
페이지당 표시 개수: 1530 50