5 ms·
This seems like deja-vu, I swear this was on HN before. (yeah probably without the m=1 on the url) Anyway, super easy to try on linux servers. First double ch
by ck2 15y ago
This seems like deja-vu, I swear this was on HN before. (yeah probably without the m=1 on the url)
Anyway, super easy to try on linux servers.
First double check your existing setting
sysctl -a | grep tcp_slow_start_after_idle
then
sysctl -w net.ipv4.tcp_slow_start_after_idle=0
if you want to enhance to IW10 then first check the last line of
ip route show
should be something like
default via 1.2.3.4 dev eth0
then copy it to the middle of this
ip route change default via 1.2.3.4 dev eth0 initcwnd 10
if you are using a VERY current linux kernel, you can also add initrwnd like so:
ip route change default via 1.2.3.4 dev eth0 initcwnd 10 initrwnd 10
Note the ip route change is not permanent unless you add it to something like /etc/rc.local
You should be able to see the change before/after in wireshark if you look very very carefully at the milliseconds before the first real ack.
- RollAHardSix 15y agoThis has been on HN before. I read the article and comments as well as used the information at work. If I had time I would go dig it out but unfortunately I'm leaving for a midterm. Maybe someone else can find it; I think it had a good discussion with it.
- devgutt 15y agoYes, original post on HN 455 days ago http://news.ycombinator.com/item?id=1942442 http://news.ycombinator.com/item?id=1942442 Op Follow up http://blog.benstrong.com/2010/11/slow-start-follow-up.html http://blog.benstrong.com/2010/11/slow-start-follow-up.html
- finnw 15y agoI didn't realise it had been on HN already. I just saw it because Sam Saffron tweeted it. I guess I should search more thorougly (I just searched for "cheat" and checked the first page.)
- SkyMarshal 15y agoDon't sweat it, I didn't see it the first time and it's a good read, glad it was reposted. I'm sure I'm not the only one. Also, HN search for previous submissions is hit or miss. A more reliable way is to search ddg or google for 'site:news.ycombinator.com [url you want to submit]'.
- joeblau 15y agoI'm new so the re-post is awesome :)
- harshreality 15y agoRecent kernels already have initcwnd and initrwnd set to 10. Since 2.6.38 or so. If you're using recent kernels (any 3.x), manually setting those to 10 won't change anything. Somewhere in the early 2.6.3x, I think around .32 or .33, had the two patches to allow setting initcwnd and initrwnd as you demonstrate. Somewhere in 2.6.35 or 2.6.36 era, initrwnd was changed to 10. Later, around 2.6.38, initcwnd was changed to 10. I've seen people claim that certain web accelerators use an initcwnd more like 20 to 40.
- ck2 15y agoCentOS 6.2 (the most recent version of a very popular server linux) is using 2.6.32 You can change initcwnd on CentOS 6.2 but not initrwnd. And it defaults to 3 People can check their server kernel version with uname -a Servers that appear to be at 20 or especially 40 might just be setting the buffers to match the maximum client side window (which is what Microsoft appears to do on their servers).
- deleted 15y ago[deleted]
- el_presidente 15y agoIs there any reason to use sysctl over "echo > /proc" or is it just a matter of taste?
- merlincorey 15y agoFor loonix only sysctl's I guess it would be a matter of taste; however, if you want to keep your muscle memory strong for operating systems lacking full /proc support, you might prefer the sysctl command.
- bdarnell 15y ago"sudo sysctl -w ..." works as expected, but "sudo echo ...> /proc/..." doesn't, since only the echo and not the redirection happens as root.
- usetee 15y agoThat depends on what you expect, doesn't it? At any rate, you can easily do something like echo 1 | sudo tee /proc/foo This has the added bonus that you can replace "echo 1" with a complex script that may not be safe to run as root.
- newman314 15y agoWell, you can put your changes in /etc/sysctl.conf instead of coming up with a homegrown script to do a whole bunch of echos. For me, I can just copy over a modified sysctl.conf to a server and have such changes applied (reboot may be needed).