AlmaLinux 9 VPS Infrastructure: Storage I/O and Network Driver Tuning

System Context\n- OS: AlmaLinux 9.3 (SeaFoam Lynx)\n- Kernel: 5.14.0-362.8.1.el9_3.x86_64\n- Package Sources: BaseOS, AppStream, EPEL\n\n### Context & Infrastructure Evaluation\nWhen evaluating virtual private server (VPS) hosting infrastructure for enterprise workloads, storage throughput and virtio network driver responsiveness are primary performance indicators. To establish performance baselines on KVM-based virtual environments running AlmaLinux 9, I conducted benchmarking on standard storage and network subsystems.\n\n### Commands Attempted and Output\n\n1. Checking loaded VirtIO modules:\nbash\nlsmod | grep virtio\n\nSanitized Output:\n\nvirtio_net 61440 0\nvirtio_blk 24576 3\nvirtio_pci 32768 0\n\n\n2. Benchmarking disk I/O with fio:\nbash\nsudo dnf install -y epel-release\nsudo dnf install -y fio\nsudo fio --name=rand_write --ioengine=libaio --rw=randwrite --bs=4k --numjobs=1 --size=512M --iodepth=16 --runtime=30 --time_based --group_reporting\n\nSanitized Output:\n\nwrite: IOPS=35.2k, BW=138MiB/s (145MB/s)(4050MiB/30001msec)\n\n\n### Focused Question\nWhat kernel parameters (/etc/sysctl.conf) or udev rules do you recommend on AlmaLinux 9 to optimize IOPS and reduce virtio-net packet processing latency on VPS infrastructure?

Hi,

A few points worth checking before applying sysctl or udev tuning:

  1. AlmaLinux 9.3 is quite old. Please update to a currently supported AlmaLinux 9 release and kernel.

  2. Your fio command does not include --direct=1, so the results may be affected by the page cache.

  3. Loading virtio-net does not demonstrate network performance or latency.

I would recommend establishing reproducible storage and network benchmarks before changing kernel parameters.

Could you also share whether you have access to the KVM host or only the VPS guest?

Thanks!