how to set RWIN

Questions about cabled networking
Forum rules
Before you post please read this

how to set RWIN

Postby h2sammo on Tue May 22, 2012 6:39 am

how do i go about setting the rwin value in linux mint? i made some google searches and found similar questions with no concrete answer. please help.

ex: http://www.dslreports.com/faq/586
h2sammo
Level 1
Level 1
 
Posts: 3
Joined: Sun May 20, 2012 3:56 pm

Linux Mint is funded by ads and donations.
 

Re: how to set RWIN

Postby eanfrid on Tue May 22, 2012 8:06 am

The name "RWIN" is a Windows feature. For a desktop Linux, there is no real reason to alter the defaut values but if you want to, you must modify /etc/sysctl.conf and add these lines (near-optimal values):

Code: Select all
net.core.rmem_default = 256960
net.core.rmem_max = 256960
net.core.wmem_default = 256960
net.core.wmem_max = 256960


then "sudo sysctl -p" and you're done.
Image
Never attribute to malice that which is adequately explained by stupidity.
User avatar
eanfrid
Level 5
Level 5
 
Posts: 512
Joined: Mon Apr 30, 2012 2:49 am
Location: France

Re: how to set RWIN

Postby h2sammo on Wed May 23, 2012 6:45 am

thank you.

so if i use this tool, it tells me to modify the rwin. (http://www.dslreports.com/tweaks)

what is the difference between rmem and wmem and how do they relate to rwin value?
h2sammo
Level 1
Level 1
 
Posts: 3
Joined: Sun May 20, 2012 3:56 pm

Re: how to set RWIN

Postby eanfrid on Wed May 23, 2012 7:29 am

rmem is rwin :)
rmem => receive window; wmem => write (send) window

Buffers have automatically calculated values for most uses. Unless very high latency, heavy packet-loss or very high performance requirements are in your mind, buffer settings do not have to be tuned at all. The real question is: why do you want to modify these values ?
Image
Never attribute to malice that which is adequately explained by stupidity.
User avatar
eanfrid
Level 5
Level 5
 
Posts: 512
Joined: Mon Apr 30, 2012 2:49 am
Location: France

Re: how to set RWIN

Postby h2sammo on Wed May 23, 2012 7:03 pm

i remember back in my few windows days this tweak used to improve my cable connection based on the dsl reports tool.
h2sammo
Level 1
Level 1
 
Posts: 3
Joined: Sun May 20, 2012 3:56 pm

Re: how to set RWIN

Postby eanfrid on Mon May 28, 2012 6:31 pm

Linux is not Windows :)
Image
Never attribute to malice that which is adequately explained by stupidity.
User avatar
eanfrid
Level 5
Level 5
 
Posts: 512
Joined: Mon Apr 30, 2012 2:49 am
Location: France


Return to Ethernet

Who is online

Users browsing this forum: xox101 and 3 guests