
Quick Links:
Empeg FAQ
|
RioCar.Org
|
Hijack
|
BigDisk Builder
|
jEmplode
|
emphatic
Repairs: Repairs
|
#298292 - 10/05/2007 15:05
Re: Odd problem with networking on CentOS 5 (Linux)
[Re: drakino]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14506
Loc: Canada
|
Quote:
Quote: Then try toggling the value of /proc/sys/net/ipv4/tcp_window_scaling (eg. just do echo 0 > /proc/sys/net/ipv4/tcp_window_scaling).
Initially it was 1, set it to 0, and the speeds went to what was expected on the next attempt. Looks like it only works for new connections, won't change existing ones. No big deal though since we can just toss this in a startup script and be done with it.
I think that most distros have a "proper" place for setting stuff like this, for what it's worth.
The file is /etc/sysctl.conf, into which you could place this line:
net/ipv4/tcp_window_scaling=0
Or this better alternative:
net/ipv4/tcp_rmem=4096 87380 174760
Doing it this way (via that file) is somewhat preferable, because the /proc/sys/* interface is supposed to go away in a few years, in favour of a binary socket "netlink" style of setting the same value. The tools that use the sysctl.conf file are supposed to "just work" either way.
Cheers
Edited by mlord (10/05/2007 15:06)
|
Top
|
|
|
|
|
|
|