Please enter your e-mail address & password to login to the VPS.net customer portal

Our VPS Cloud Community



Go Back   VPS.NET Forums » Public Forums » Tutorials and How-To's
Reply
 
Thread Tools
  #1  
Old 06-22-2009, 05:17 PM
envygeeks envygeeks is offline
I Got Nodes
 
Join Date: May 2009
Posts: 868
envygeeks is on a distinguished road
Default Configure Debian TCP/IP for performance

High Performance sites and even low performance sites will notice a significant performance boost on Debian if they configure their TCP/IP.


Code:
echo 0  >/proc/sys/net/ipv4/tcp_sack 
echo 0  >/proc/sys/net/ipv4/tcp_timestamps
echo 0  >/proc/sys/net/ipv4/tcp_window_scaling
echo 1800 >/proc/sys/net/ipv4/tcp_keepalive_time
echo 30 >/proc/sys/net/ipv4/tcp_fin_timeout
If you want to make the changes permanent:

Code:
vim /etc/sysctl.conf
Code:
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_window_scaling = 0
net.ipv4.tcp_sack = 0
net.ipv4.tcp_timestamps = 0
Code:
/etc/init.d/network restart
And yes you can reset your network while you are connected to SSH without losing the connection .

Last edited by envygeeks; 06-23-2009 at 07:57 PM. Reason: I put RC.D for some reason, correct that error...
Reply With Quote
  #2  
Old 06-22-2009, 07:16 PM
nullmind's Avatar
nullmind nullmind is offline
no title
 
Join Date: Feb 2009
Posts: 2,104
nullmind has disabled reputation
Default

Very cool stuff
__________________
Carlos Rego
onApp
Secret Sauce Cook
Reply With Quote
  #3  
Old 06-22-2009, 07:43 PM
webicero's Avatar
webicero webicero is offline
Banned
 
Join Date: May 2009
Posts: 1,107
webicero is on a distinguished road
Send a message via Skype™ to webicero
Default

Cool Stuff. I am going to get another node soon and play around with Debian.
Reply With Quote
  #4  
Old 06-22-2009, 07:46 PM
Ditlev Ditlev is offline
The Cloud Keeper
 
Join Date: Feb 2009
Posts: 1,593
Ditlev is on a distinguished road
Send a message via ICQ to Ditlev Send a message via MSN to Ditlev Send a message via Skype™ to Ditlev
Default

same for ubuntu?
__________________
a node a day keeps the doctor away...


http://twitter.com/ditlev/ <- follow me on Twitter!
Join the VPS.NET group on LinkedIN

Reply With Quote
  #5  
Old 06-22-2009, 07:55 PM
envygeeks envygeeks is offline
I Got Nodes
 
Join Date: May 2009
Posts: 868
envygeeks is on a distinguished road
Default

The latter works on Ubuntu (actually all Linux distros), via manual editing of /etc/sysctl.conf because those are Kernel features. The first should work on Ubuntu, it does on my intrepid build, but for a stable build I would just use /etc/sysctl.conf and do /etc/init.d/networking restart.
Reply With Quote
Reply

Thread Tools

Forum Jump