LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-30-2006, 02:45 PM   #16
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16

Quote:
echo 0 >/proc/sys/net/ipv4/tcp_window_scaling
That works here with konqueror on sid amd64. What does it do?
 
Old 12-30-2006, 03:58 PM   #17
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
Wtf? Using echo 0 >/proc/sys/net/ipv4/tcp_window_scaling and I can connect to the site.

With it on I can't even with firewall off and a direct connection to my cable modem. Weird.

Is that something that is in the kernel?
If it is , it might explain why I couldn't connect and others using "pure" Debian Sid could; since I am using a Sidux kernel 2.6.18.5-slh-up-1 and not a "vanilla" Debian kernel.
 
Old 12-30-2006, 04:00 PM   #18
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
The funny thing is, on Ubuntu this value is set to 1, not 0. Exactly as on my Slackware box. So it's probably not this value directly, but something linked to it.
 
Old 12-30-2006, 04:48 PM   #19
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
It appears to be an issue with TCP window scaling and broken routers. The scaling options have changed as of kernel 2.6.17 and the problem seems to occur if you have a lot of RAM and of course a broken network equipment between you and the server.

Setting back the values to those of an earlier kernel does the trick:
Code:
root@slackw:$ echo "4096 16384 131072" > /proc/sys/net/ipv4/tcp_wmem
root@slackw:$ echo "4096 87380 174760" > /proc/sys/net/ipv4/tcp_rmem
And I checked on Ubuntu, it has exactly those values which explains why it works.

Some reading on this issue.

Last edited by uselpa; 12-30-2006 at 04:49 PM.
 
Old 12-30-2006, 05:52 PM   #20
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
From my 64-bit Debian, Kernel 2.6.18-3, 512MB RAM ... which handles the site fine:

Code:
debian64:~# cat /proc/sys/net/ipv4/tcp_wmem
4096    16384   1048576
debian64:~# cat /proc/sys/net/ipv4/tcp_rmem
4096    87380   1048576
debian64:~#

Last edited by rickh; 12-30-2006 at 05:57 PM.
 
Old 12-30-2006, 06:40 PM   #21
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
cat /proc/sys/net/ipv4/tcp_wmem
4096 16384 2097152
cat /proc/sys/net/ipv4/tcp_rmem
4096 87380 2097152

Without using the echo 0 > /proc/sys/net/ipv4/tcp_window_scaling cant connect to the site. Using the 0 connects to the site almost instantly.

Did this and now it works without doing echo 0 > /proc/sys/net/ipv4/tcp_window_scaling

vi /etc/sysctl.conf

add the following two lines

net.ipv4.tcp_wmem = 4096 16384 131072
net.ipv4.tcp_rmem = 4096 87380 174760

sysctl -p

Which is basically the same thing uselpa said to do. So it does come down to something having to do with the kernel I take it?

Wonder what other sites I couldn't connect to that this might have fixed? Thanks for the information on how to fix this issue.

Last edited by craigevil; 12-30-2006 at 06:42 PM.
 
Old 12-30-2006, 06:49 PM   #22
Azizcoos
Member
 
Registered: Nov 2004
Location: KHIE
Distribution: Debian et al
Posts: 81

Original Poster
Rep: Reputation: 16
Here's the info from my three afflicted systems:
Code:
uname -r
2.6.18-2-amd64
cat /proc/sys/net/ipv4/tcp_wmem
4096    16384   4194304
cat /proc/sys/net/ipv4/tcp_rmem
4096    87380   4194304

uname -r
2.6.18-3-686
cat /proc/sys/net/ipv4/tcp_wmem
4096    16384   262144
cat /proc/sys/net/ipv4/tcp_rmem
4096    87380   262144

uname -r
2.6.17-2-k7
cat /proc/sys/net/ipv4/tcp_wmem
4096    16384   524288
cat /proc/sys/net/ipv4/tcp_rmem
4096    87380   524288
After changing them as suggested, they all work!
So is this a kernel bug or what?

Last edited by Azizcoos; 12-30-2006 at 07:32 PM.
 
Old 10-25-2012, 02:28 PM   #23
Fred Caro
Member
 
Registered: May 2007
Posts: 791

Rep: Reputation: 70
might have missed something but... connecting to Debian.org problems

All-

Iceweasel will not connect with 'www.debian.org', previous posts suggested my set up was wrong but this seems odd, have debian servers got extra security I do not know about or is my router an issue, this has no security on it as I was hoping to use it as a switch; any thoughts?

Fred.
 
Old 10-27-2012, 01:49 PM   #24
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,899

Rep: Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626
Fred this thread is about 5 weeks off being 6 years old. May I recommend you start a new thread because 99.9999999% chance your issue is different to the OPs issue. You really must have searched through the dungeons to rake this old beasty up.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
Wont load web page in Konqueror munkie_poo Linux - Software 5 01-24-2006 08:51 PM
Web page load time in Linux browsers is slow compared to ... the_rhino Linux - General 1 02-11-2005 08:23 PM
Web page does not load CyberEd Linux - Newbie 3 11-05-2003 12:56 AM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM


All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration