We are aware of a potentially service impacting issue. Learn more

KVM VPS Optimization Guide - Linux Network, Disk & DNS Tuning Print

  • linux, performance, sysctl, network, tcp, optimization, disk io, kvm, solusvm, vps, virtio, dns, cloud vps, debian, ssh, server tuning, ipv4, ipv6, vfs cache, scheduler, swappiness, swap, noop, knowledgebase, google dns, setup guide, ubuntu, getting started
  • 56

A few tweaks to get the most out of your Owned Networks Cloud VPS. All commands require root or sudo access via SSH.


Network performance

These settings increase TCP buffer sizes so your VPS handles high-throughput connections more efficiently. Copy the text from the box below and paste it into your SSH terminal.

SSH terminal — copy this text
cat >> /etc/sysctl.conf << 'EOF' net.core.rmem_max=16777216 net.core.wmem_max=16777216 net.ipv4.tcp_rmem=4096 87380 16777216 net.ipv4.tcp_wmem=4096 65536 16777216 EOF sysctl -p

Note: These changes persist across reboots automatically — no further action needed.


DNS servers

We recommend Google's public DNS servers for fast, reliable resolution.

IPv4

8.8.8.8
8.8.4.4

IPv6

2001:4860:4860::8888
2001:4860:4860::8844

How to apply: Edit /etc/resolv.conf and add or replace nameserver lines with the IPs above. If your system uses systemd-resolved, update /etc/systemd/resolved.conf instead.


Disk I/O optimization

Your VPS uses a virtual disk — telling Linux about this enables a faster I/O scheduler and better caching.

Note: If you installed from an ISO (not our default template), change your disk driver from IDE to Virtio in SolusVM → Settings first, then power cycle your VPS. Our templates use Virtio by default.

Step 1 — Apply immediately (this session only)

SSH terminal — copy this text
echo 0 > /sys/block/vda/queue/rotational echo 0 > /sys/block/vda/queue/rq_affinity echo noop > /sys/block/vda/queue/scheduler

Step 2 — Persist across reboots

SSH terminal — copy this text
cat >> /etc/rc.local << 'EOF' echo 0 > /sys/block/vda/queue/rotational echo 0 > /sys/block/vda/queue/rq_affinity echo noop > /sys/block/vda/queue/scheduler EOF chmod +x /etc/rc.local

Step 3 — Tune memory and cache behavior

SSH terminal — copy this text
cat >> /etc/sysctl.conf << 'EOF' vm.swappiness=5 vm.vfs_cache_pressure=50 EOF sysctl -p

What this does: vm.swappiness=5 tells Linux to keep data in RAM rather than swapping to disk. vm.vfs_cache_pressure=50 keeps file and directory metadata cached longer — both improve responsiveness.


Verify your settings

Run these read-only commands to confirm everything applied correctly — they won't change anything on your server.

Check sysctl values

SSH terminal — copy this text
sysctl net.core.rmem_max net.core.wmem_max vm.swappiness vm.vfs_cache_pressure

Check I/O scheduler

SSH terminal — copy this text
cat /sys/block/vda/queue/scheduler

The scheduler output should show [noop] highlighted. If anything looks off, open a support ticket and we'll help you sort it out.


Was this answer helpful?

« Back