Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tweak Your Connection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Wed May 22, 2002 6:23 pm    Post subject: Tweak Your Connection Reply with quote

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
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed May 22, 2002 6:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed May 22, 2002 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Wed May 22, 2002 7:26 pm    Post subject: Reply with quote

Ooops yeah I saw I posted that in the wrong place but it was too late :oops:

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
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed May 22, 2002 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Aurix
n00b
n00b


Joined: 26 May 2002
Posts: 16

PostPosted: Wed May 29, 2002 11:16 am    Post subject: Reply with quote

Any chance of some tweaking for a 56k connection ? *grin*
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum