View previous topic :: View next topic |
Author |
Message |
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Wed May 22, 2002 6:23 pm Post subject: Tweak Your Connection |
|
|
Anyone doing any tweaking on there gentoo broadband connection, and if so notice any difference. I sometimes run a RTCW server and the pings are fairly good, but it would seem that I could tweak my connection to have better ping stability.
Cable Connection:
kbs = Kilobytes Per Second
300kbs -- Down
50kbs -- Up _________________ This message self destructed a long time ago. |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Wed May 22, 2002 6:57 pm Post subject: |
|
|
Check out DSLReports.com (bad name -- it isn't just for DSL)
Every broadband tweak under the sun is listed somewhere on that site. (though finding them all can be somewhat of a challenge.)
These are the four that I set on my system:
Code: | # echo 262144 > /proc/sys/net/core/rmem_default
# echo 262144 > /proc/sys/net/core/rmem_max
# echo 262144 > /proc/sys/net/core/wmem_default
# echo 262144 > /proc/sys/net/core/wmem_max |
This increases the amount of memory available to socket buffers and socket input queues. I got a ~700Kb performance increase on my cable connection after tuning these.
though some people recommend simply tuning the following because 2.4.x kernels are supposed to 'autotune' fairly well:
Code: | /proc/sys/net/ipv4/tcp_rmem
/proc/sys/net/ipv4/tcp_wmem |
EDIT: There are three valid settings for the above two parameters: "min default max"
BTW, not to be pedantic, but 'b' equals 'bits' and 'B' equals 'bytes'.
--kurt _________________ The problem with political jokes is that they get elected
Last edited by klieber on Wed May 22, 2002 7:10 pm; edited 1 time in total |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Wed May 22, 2002 7:09 pm Post subject: |
|
|
klieber wrote: | Code: | # echo 262144 > /proc/sys/net/core/rmem_default
# echo 262144 > /proc/sys/net/core/rmem_max
# echo 262144 > /proc/sys/net/core/wmem_default
# echo 262144 > /proc/sys/net/core/wmem_max |
|
I should also note that setting these parameters will chew up additional RAM. If you're regularly hitting swap as it is, these parameters may actually make your system slower.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Wed May 22, 2002 7:26 pm Post subject: |
|
|
Ooops yeah I saw I posted that in the wrong place but it was too late
About kbs vs kBs is why to avoid confusion I put:
kbs = Kilobytes Per Second
Anyway thanks for your input, I knew how to tweak in linux just wasn't sure if it was going to get me anywhere. Although from your above statement it may _________________ This message self destructed a long time ago. |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Wed May 22, 2002 7:29 pm Post subject: |
|
|
AutoBot wrote: | Although from your above statement it may |
That's on a 10Mbps connection, so YMMV.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
Aurix n00b
Joined: 26 May 2002 Posts: 16
|
Posted: Wed May 29, 2002 11:16 am Post subject: |
|
|
Any chance of some tweaking for a 56k connection ? *grin* |
|
Back to top |
|
|
|