Systems90 by Webglobe
  • Help
  • API Documentation
  • Login
Explore help topics
  • General questions
  • First steps
  • Operating systems
  • Backup & Storages
  • Network settings
  • Configuration changes
  • User interface
  • Billing
  1. Virtual servers (VPS)
  2. Operating systems
  3. Linux
  4. Recommended settings for VPS with Linux

Recommended settings for VPS with Linux

General information

For optimal functionality, you must use the kernel with support for paravirtualized drivers (available by default in virtually all modern distributions).

Sysctl.conf

For optimal functionality of the VPS with Linux OS for most types of deployment we recommend that you set the following in /etc/sysctl.conf:


		net.ipv4.tcp_ecn = 1
		net.ipv4.tcp_syncookies = 1
		net.ipv4.tcp_synack_retries = 3
		net.ipv4.tcp_syn_retries = 3
		net.ipv4.tcp_no_metrics_save=1
		net.ipv4.icmp_echo_ignore_broadcasts = 1
		net.ipv4.icmp_ignore_bogus_error_responses = 1
		net.ipv4.tcp_congestion_control = bic
		net.ipv4.tcp_timestamps = 0
		net.ipv4.tcp_rmem = 4096 87380 16777216
		net.ipv4.tcp_wmem = 4096 65536 16777216
		net.ipv4.conf.all.accept_redirects = 0
		net.ipv4.conf.all.accept_source_route = 0
		net.ipv4.conf.all.rp_filter = 1
		net.ipv4.conf.all.log_martians = 0
		net.ipv4.conf.default.accept_redirects = 0
		net.ipv4.conf.default.accept_source_route = 0
		net.ipv4.conf.default.rp_filter = 1
		net.ipv4.conf.default.log_martians = 0
		net.ipv6.conf.all.autoconf = 1
		net.ipv6.conf.all.accept_redirects = 0
		net.ipv6.conf.all.accept_ra = 0
		net.ipv6.conf.all.hop_limit = 64
		net.ipv6.conf.default.autoconf = 1
		net.ipv6.conf.default.accept_redirects = 0
		net.ipv6.conf.default.accept_ra = 0
		net.ipv6.conf.default.hop_limit = 64
		net.ipv6.conf.eth0.accept_ra = 1
		net.ipv6.conf.default.use_tempaddr=0
		net.ipv6.conf.all.use_tempaddr=0
		net.ipv6.conf.eth0.use_tempaddr=0
		net.core.rmem_max = 16777216
		net.core.wmem_max = 16777216
		net.core.netdev_max_backlog = 2500
		net.core.somaxconn = 1024
		kernel.sysrq = 0
		kernel.panic = 3
		vm.vfs_cache_pressure = 60
		vm.swappiness = 10
	

These settings are verified by us to the ideal value for most Linux servers on our VPS. In specific cases, it is of course possible to value any edit according to your needs and requirements. These values are the products intended primarily for the Web, email and other general Internet services on the server.