Skip to content
Back to Blog
Performance10 min read

9 NVMe VPS Performance Mistakes That Kill Speed in 2026

NVMe drives are fast, but bad tuning, bloated kernels, and ignored I/O queues destroy throughput. Here's what most VPS owners get wrong and how to fix it.

Written by Abdul AbrorTechnical Hosting Support Engineer
9 NVMe VPS Performance Mistakes That Kill Speed in 2026
On this page

NVMe storage is supposed to be fast. That's the whole point. But I've worked with dozens of VPS owners who upgraded to NVMe and saw little to no performance gain because they left default settings in place or made tuning decisions that actively hurt throughput.

Here are nine mistakes that kill NVMe VPS speed and what to do instead.

Mistake 1: Leaving swappiness at the default value

Linux defaults to a swappiness value of 60, which tells the kernel to be moderately aggressive about swapping memory to disk. That made sense when spinning disks were slow and you wanted to keep working data in RAM. With NVMe, the latency penalty is much smaller, but swapping still introduces overhead you don't need.

On a VPS with enough RAM for your workload, lower swappiness to 10 or even 1. Check your current value:

cat /proc/sys/vm/swappiness

Set it temporarily:

sudo sysctl vm.swappiness=10

Make it permanent in /etc/sysctl.conf:

vm.swappiness=10

If you're running a database or high-traffic web app, test with swappiness set to 1. The kernel will still swap under memory pressure, but it won't do it preemptively.

Mistake 2: Using the wrong I/O scheduler

Most distributions ship with the mq-deadline or bfq scheduler enabled. These were designed for rotational disks and try to minimize seek time by reordering requests. NVMe doesn't have seek time. The overhead of reordering requests just adds latency.

Check your current scheduler:

cat /sys/block/nvme0n1/queue/scheduler

You'll see something like [mq-deadline] none kyber bfq. The active one is in brackets. For NVMe, switch to none (also called noop on older kernels):

echo none | sudo tee /sys/block/nvme0n1/queue/scheduler

Make it persistent by adding a udev rule in /etc/udev/rules.d/60-ioschedulers.rules:

ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/scheduler}="none"

Reload udev rules:

sudo udevadm control --reload-rules && sudo udevadm trigger

The none scheduler bypasses the queue logic entirely and sends requests straight to the drive.

Mistake 3: Ignoring the nr_requests queue depth

NVMe drives can handle many more simultaneous I/O operations than SATA SSDs or spinning disks. The default nr_requests value is often 128 or 256, which bottlenecks throughput under load.

Check the current value:

cat /sys/block/nvme0n1/queue/nr_requests

Increase it to 1024 or 2048:

echo 1024 | sudo tee /sys/block/nvme0n1/queue/nr_requests

Add the same attribute to your udev rule:

ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/scheduler}="none", ATTR{queue/nr_requests}="1024"

Higher queue depth helps when you have multiple processes hitting the disk at once, like a database under concurrent queries or a web server serving static assets.

Mistake 4: Running an outdated or bloated kernel

NVMe support improved significantly in the Linux kernel after version 4.10. If you're on an older LTS release, you're missing performance patches and bug fixes. Worse, some distributions ship with hundreds of unused modules that add boot time and memory overhead.

Check your kernel version:

uname -r

If you're below 5.4, consider upgrading to a mainline or HWE (hardware enablement) kernel. On Ubuntu:

sudo apt install --install-recommends linux-generic-hwe-22.04

On Debian, you can use backports to get a newer kernel:

sudo apt -t bookworm-backports install linux-image-amd64

Reboot and confirm:

uname -r

A modern kernel will also include better NVMe power management and thermal throttling support.

Mistake 5: Leaving NCQ and TRIM disabled

Native Command Queuing (NCQ) allows the drive to reorder internal operations for efficiency. TRIM tells the SSD which blocks are no longer in use so it can garbage-collect them in the background. Both should be on, but I've seen VPS images ship with one or both turned off.

Check TRIM support:

lsblk --discard

If DISC-GRAN and DISC-MAX show non-zero values, TRIM is supported. Enable a weekly TRIM job with a systemd timer:

sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer

For NCQ, check the queue depth reported by the drive:

sudo hdparm -I /dev/nvme0n1 | grep -i queue

NVMe drives handle queuing at the hardware level, so there's no explicit NCQ toggle. Just make sure you're not using an old SATA-to-NVMe adapter that strips out command queuing.

So what if you've done all that and writes are still slow?

Check your filesystem mount options.

Mistake 6: Using ext4 without noatime or nodiratime

By default, ext4 updates the access time (atime) every time a file is read. That means every read operation triggers a write. On a busy VPS, this creates pointless I/O.

Check your current mount options:

mount | grep nvme0n1

If you don't see noatime or nodiratime, edit /etc/fstab and add them:

UUID=your-uuid / ext4 defaults,noatime,nodiratime 0 1

Remount the filesystem:

sudo mount -o remount /

Verify:

mount | grep nvme0n1

You'll see noatime in the options list. If you absolutely need atime for some legacy application, use relatime instead, which only updates atime if it's older than the modification time.

Mistake 7: Running a database without tuning for NVMe

MySQL and PostgreSQL ship with conservative defaults that assume slow disks. On NVMe, you can increase buffer pool sizes, reduce fsync frequency, and raise the I/O capacity setting.

For MySQL (MariaDB), edit /etc/mysql/my.cnf or /etc/mysql/mysql.conf.d/mysqld.cnf:

[mysqld]
innodb_buffer_pool_size = 2G
innodb_log_file_size = 512M
innodb_flush_log_at_trx_commit = 2
innodb_io_capacity = 2000
innodb_io_capacity_max = 4000

Restart MySQL:

sudo systemctl restart mysql

For PostgreSQL, edit /etc/postgresql/15/main/postgresql.conf:

shared_buffers = 2GB
effective_cache_size = 6GB
wal_buffers = 16MB
checkpoint_completion_target = 0.9
random_page_cost = 1.1

Restart PostgreSQL:

sudo systemctl restart postgresql

The random_page_cost setting is important. It defaults to 4.0, which assumes random reads are four times slower than sequential reads. On NVMe, random and sequential speeds are nearly identical, so set it to 1.1 or even 1.0.

Mistake 8: Ignoring thermal throttling

NVMe drives generate heat under sustained load. If your VPS provider crammed multiple NVMe drives into a poorly ventilated chassis, throttling will cut your speed in half without warning.

Check the drive temperature:

sudo nvme smart-log /dev/nvme0 | grep temperature

You'll see output like:

temperature                         : 45 C

If it's above 70°C under normal load, throttling is likely. Some drives report throttling events in the SMART log:

sudo nvme smart-log /dev/nvme0 | grep -i therm

You can't fix airflow on a VPS, but you can ask your provider to migrate you to a different node or a slot with better cooling. I've done this twice and it solved the problem both times.

Mistake 9: Using software RAID or LVM snapshots without tuning

Software RAID and LVM add layers that introduce latency if not tuned for NVMe. If you're running mdadm RAID, set the stripe cache size higher:

echo 8192 | sudo tee /sys/block/md0/md/stripe_cache_size

For LVM thin provisioning or snapshots, increase the chunk size to reduce metadata overhead. When creating a thin pool:

sudo lvcreate --type thin-pool -L 100G --chunksize 1M -n thinpool vg0

Default chunk size is 64K, which causes excessive metadata updates on NVMe. A 1MB chunk size reduces overhead significantly.

If you're using LVM on top of NVMe, also disable the issue_discards option during snapshot removal to avoid blocking I/O:

issue_discards = 0

Add that to /etc/lvm/lvm.conf under the devices section.

What to check first

Start with the I/O scheduler and swappiness. Those two settings alone will fix the most common performance problems I see in support tickets. Then verify your filesystem is mounted with noatime and that you're running a recent kernel.

If you're running a database, tune it for NVMe. Default configs assume your disk is slow, and NVMe isn't.

Finally, monitor drive temperature under load. A throttled NVMe drive performs worse than a well-tuned SATA SSD.

Frequently asked questions

Q: Will setting swappiness to 1 break anything?
No. The kernel will still swap under memory pressure, but it won't swap preemptively. If you run out of RAM, the OOM killer will still trigger.

Q: Can I use the none scheduler on non-NVMe SSDs?
Yes, but test it first. SATA SSDs benefit less from bypassing the scheduler than NVMe drives do. mq-deadline or bfq may perform better on SATA.

Q: How do I know if my VPS actually has NVMe storage?
Run lsblk -d -o name,rota. If ROTA is 0, it's an SSD. Then check ls /dev/nvme*. If you see nvme0n1, it's NVMe. If you see sda or vda, it's SATA or virtio.

Q: Should I disable writeback cache on NVMe?
No. NVMe drives have power-loss protection built in on most enterprise models. Disabling writeback cache will hurt performance without improving safety. Check your drive's datasheet if you're unsure.

Q: Does the nr_requests setting apply to each CPU core?
No. It's a per-device limit, not per-core. But NVMe drives support multiple hardware queues (one per core by default), so increasing nr_requests helps saturate those queues under load.

Final checks

Run a quick baseline test with fio after making changes:

sudo fio --name=randwrite --ioengine=libaio --iodepth=32 --rw=randwrite --bs=4k --direct=1 --size=1G --numjobs=4 --runtime=60 --group_reporting

Compare IOPS and latency before and after tuning. You should see measurable improvement, especially in the 99th percentile latency.

If you don't, check dmesg and /var/log/syslog for NVMe errors or warnings. Some VPS providers use shared NVMe pools with QoS limits that cap your throughput regardless of tuning.