You are not logged in.

#1 2008-06-11 16:37:17

kclive18
Member
From: Columbus, Ohio, USA
Registered: 2008-05-08
Posts: 219

Figured out problem with stalling websites

I have noticed in many distributions, including Arch, that certain web sites tend to stall, and this is a TCP window scaling problem specific to Linux.  To fix it, run (as root or preceded with "sudo"):

sysctl -w net.ipv4.tcp_window_scaling=0

And it should work. cool

Source: http://forums.fedoraforum.org/showthread.php?t=127165 (in post #5)


My Rigs:
- Mid-2007 iMac 20", Intel 2GHz Core 2 Duo, 2x1GB DDR2-800, 250GB SATA HDD, and...MIGHTY MOUSE!!! tongue, OSX 10.5 Leopard, ATI Radeon 2400XT 128MB
- HP zv6203cl, AMD Athlon 64 3200 S939, 2x512MB DDR400, 80GB 4200rpm HDD, ATI Radeon Xpress 200M 128MB, Arch i686 cool
- 1986 Gibson SG Junior Cherry Red, Ibanez 15W amp, DigiTech RP250 modeling processor

Offline

#2 2008-06-11 17:26:01

zouzou85
Member
From: hopefully some where peaceful
Registered: 2007-12-25
Posts: 29

Re: Figured out problem with stalling websites

Is this a permanent fix? or will we have to run this every boot?


It's nice to be in a peaceful place like this. smile

Offline

#3 2008-06-11 17:58:14

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: Figured out problem with stalling websites

zouzou85 wrote:

Is this a permanent fix? or will we have to run this every boot?

I don't know if it really works or not, but you could make it permanent by adding it to /etc/sysctl.conf


oz

Offline

#4 2008-06-11 18:56:55

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Figured out problem with stalling websites

I think I had some sites stalling, but not any I remember or have bookmarked, do you know any?

Also, I presume this can be undone with sysctl -w net.ipv4.tcp_window_scaling=1?

Last edited by Procyon (2008-06-11 18:57:47)

Offline

#5 2008-06-11 19:42:31

kclive18
Member
From: Columbus, Ohio, USA
Registered: 2008-05-08
Posts: 219

Re: Figured out problem with stalling websites

Yeah, you have to put it in /etc/rc.local for it to happen at boot time.  But it does work.  I have had troubles accessing some parts of my school's website (Ohio State) and resizing the TCP window scaling to 0 fixed the issue.

EDIT: And yes, you can alternatively add it to /etc/sysctl.conf, without the "sysctl -w" of course.

Last edited by kclive18 (2008-06-11 19:45:31)


My Rigs:
- Mid-2007 iMac 20", Intel 2GHz Core 2 Duo, 2x1GB DDR2-800, 250GB SATA HDD, and...MIGHTY MOUSE!!! tongue, OSX 10.5 Leopard, ATI Radeon 2400XT 128MB
- HP zv6203cl, AMD Athlon 64 3200 S939, 2x512MB DDR400, 80GB 4200rpm HDD, ATI Radeon Xpress 200M 128MB, Arch i686 cool
- 1986 Gibson SG Junior Cherry Red, Ibanez 15W amp, DigiTech RP250 modeling processor

Offline

#6 2008-06-11 20:22:13

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: Figured out problem with stalling websites

Here's more info for anyone interested:

http://en.wikipedia.org/wiki/TCP_window_scale_option


oz

Offline

#7 2017-04-16 15:07:11

maxmoon
Member
Registered: 2014-11-30
Posts: 16

Re: Figured out problem with stalling websites

kclive18 wrote:

I have noticed in many distributions, including Arch, that certain web sites tend to stall, and this is a TCP window scaling problem specific to Linux.  To fix it, run (as root or preceded with "sudo"):

sysctl -w net.ipv4.tcp_window_scaling=0

And it should work. cool

Source: http://forums.fedoraforum.org/showthread.php?t=127165 (in post #5)

For months I had issues with some websites like Amazon and I couldn't do anything on those websites, till now.

Thanks a lot for this fix.

Last edited by maxmoon (2017-04-16 15:07:43)

Offline

#8 2017-04-16 15:54:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,769

Re: Figured out problem with stalling websites

maxmoon,  Glad it worked for you.
I am now going to use this opportunity to wrap up this 9 year old thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB