To apply tuned-adm network-latency on a Linux VPS: Install tuned, start tuned.service, and run sudo tuned-adm profile network-latency.[1][5] The profile inherits latency-performance, disables Transparent Huge Pages, sets net.core.busy_read=50, net.core.busy_poll=50, and net.ipv4.tcp_fastopen=3, and adds kernel boot parameters requiring a reboot.[1][2]
Use this production runbook to deploy and audit the tuned-adm network-latency profile on Debian, Ubuntu, AlmaLinux, and Rocky Linux nodes without triggering CPU burn or hypervisor noisy-neighbor throttling.[1][6]
How the Tuned-Adm Network-Latency Profile Works Under the Hood
TuneD is a dynamic system tuning daemon that switches kernel sysctl parameters, CPU power states, memory policies, and bootloader flags from declarative tuned.conf profiles.[5] When you activate network-latency, TuneD loads the upstream latency-performance base profile first and layers low-jitter network and scheduler overrides on top.[1][2]
From latency-performance, the kernel locks CPU frequency scaling to governor=performance, sets min_perf_pct=100, enforces force_latency=cstate.id_no_zero:1|3, sets acpi platform_profile=performance, reduces vm.swappiness to 10, and lowers dirty_bytes to 10% (dirty_background_bytes to 3%).[2] Lowering dirty page ratios starts flush activity sooner, avoiding sudden I/O stalls when memory pressure hits.[2][9]
On top of that base, network-latency disables Transparent Huge Pages (transparent_hugepages=never), disables automatic NUMA page migration (kernel.numa_balancing=0), disables the x86 NMI hard-lockup detector (kernel.nmi_watchdog=0), stops cross-CPU timer migration (kernel.timer_migration=0), sets vm.stat_interval=10, and enables socket busy-polling (net.core.busy_read=50, net.core.busy_poll=50) plus RFC 7413 TCP Fast Open (net.ipv4.tcp_fastopen=3).[1][7][8]
TuneD Profile Comparison: Network-Latency vs. Virtual-Guest vs. Network-Throughput
Choosing the wrong TuneD profile on a virtualized guest trades throughput or vCPU headroom for microsecond polling overhead you cannot leverage behind paravirtualized NICs.[3][6]
| Profile Setting | network-latency |
latency-performance |
virtual-guest |
network-throughput |
|---|---|---|---|---|
| Inherited Base Profile | latency-performance[1] |
Standalone base[2] | throughput-performance[3] |
throughput-performance[4] |
| CPU Governor & C-States | performance, min_perf_pct=100, cstate.id_no_zero:1|3[2] |
performance, min_perf_pct=100, cstate.id_no_zero:1|3[2] |
performance, min_perf_pct=100 (via base)[3] |
performance, min_perf_pct=100 (via base)[4] |
| Transparent Huge Pages | never[1] |
Kernel default | Kernel default (never on ThunderX ARM64)[3] |
Kernel default (never on ThunderX ARM64)[4] |
Busy Poll & Read (us) |
busy_read=50, busy_poll=50[1] |
0 (Kernel default)[6] |
0 (Kernel default)[6] |
0 (Kernel default)[6] |
| TCP Stack Tuning | net.ipv4.tcp_fastopen=3[1] |
0x1 (Kernel client default)[7] |
net.core.somaxconn=>2048 (via base)[3] |
tcp_notsent_lowat=131072, tcp_slow_start_after_idle=0, 16MB rmem/wmem[4] |
| VM & Dirty Writeback | swappiness=10, dirty_bytes=10%, dirty_background_bytes=3%[2] |
swappiness=10, dirty_bytes=10%, dirty_background_bytes=3%[2] |
swappiness=30, dirty_bytes=30%[3] |
swappiness=10, dirty_bytes=40%, dirty_background_bytes=10%[4] |
| Best Production Fit | Low-jitter RPC, FIX trading, VoIP, SR-IOV/bare-metal NICs | Compute-bound deterministic workloads | General KVM/cloud VPS guests | Bulk streaming and 40GbE+ data pipelines[4] |
Configuring Tuned-Adm Network-Latency on Cloud VPS and Bare Metal
If your workload runs latency-sensitive packet loops, real-time VoIP signaling, or algorithmic trading gateways, dedicated compute such as Nextgen Hosting Dedicated Servers or regional Pakistan Dedicated Servers gives tuned-adm direct control over physical C-states and NIC queues without hypervisor scheduling jitter.
1. Install TuneD and Inspect Available Profiles
Install tuned from your distribution repositories and verify which profile tuned-adm recommend suggests for your hardware or hypervisor environment.[5]
# Ubuntu / Debian
sudo apt update && sudo apt install -y tuned
# AlmaLinux / Rocky Linux / RHEL
sudo dnf install -y tuned
# Enable the daemon and inspect current state
sudo systemctl enable --now tuned
tuned-adm active
tuned-adm recommend
tuned-adm list
On most KVM virtual machines, tuned-adm recommend selects virtual-guest automatically.[3][5]
2. Apply Network-Latency and Inspect Bootloader Parameters
Switch to network-latency and inspect the active sysctl and kernel command-line entries.[1][5]
# Apply the profile
sudo tuned-adm profile network-latency
# Verify runtime sysctls and Transparent Huge Pages state
tuned-adm active
tuned-adm profile_info network-latency
sysctl net.core.busy_read net.core.busy_poll net.ipv4.tcp_fastopen kernel.numa_balancing kernel.timer_migration
cat /sys/kernel/mm/transparent_hugepage/enabled
Look closely at the [bootloader] stanza inside network-latency/tuned.conf: it injects skew_tick=1 tsc=reliable rcupdate.rcu_normal_after_boot=1 rcutree.nohz_full_patience_delay=1000 into GRUB.[1][10] Because kernel boot arguments are read during early initialization, tuned-adm verify will report a mismatch until you reboot the server.[5]
Common Pitfall: Blindly Enabling busy_read=50 and tsc=reliable on Shared Cloud VPS
The Linux kernel documentation warns that net.core.busy_read=50 and net.core.busy_poll=50 busy-loop for up to 50 microseconds waiting for packets on device queues, increasing CPU usage and power draw.[6] On oversubscribed KVM guests without dedicated vCPU pinning, spinning on paravirtualized virtio-net queues increases host CPU steal time instead of reducing tail latency.[6] Additionally, tsc=reliable disables boot-time and runtime Time Stamp Counter stability checks, which is safe only when the hypervisor guarantees invariant TSC.[10]
3. Build a Safe Custom KVM Child Profile Under /etc/tuned
Instead of editing distribution files under /usr/lib/tuned/ (which package updates overwrite), tuned-adm(8) reads user overrides from /etc/tuned/ (or /etc/tuned/profiles/ on newer TuneD releases).[5] Create a child profile vps-network-latency that inherits network-latency while toning down aggressive spin loops on multi-tenant KVM guests:[1][6]
# Support both classic /etc/tuned and /etc/tuned/profiles layouts
PROFILE_DIR="/etc/tuned/profiles/vps-network-latency"
[ -d /etc/tuned/profiles ] || PROFILE_DIR="/etc/tuned/vps-network-latency"
sudo mkdir -p "$PROFILE_DIR"
sudo tee "$PROFILE_DIR/tuned.conf" > /dev/null <<'EOF'
[main]
summary=Low-latency KVM VPS profile inheriting network-latency without spin-loop CPU burn
include=network-latency
[sysctl]
# Disable global busy polling if vCPUs are shared; use SO_BUSY_POLL per-socket if needed
net.core.busy_read=0
net.core.busy_poll=0
# Keep server+client TCP Fast Open enabled (0x1 | 0x2 = 3)
net.ipv4.tcp_fastopen=3
# Reduce aggressive dirty writeback stalls without virtual-guest's 30% buffer lag
vm.swappiness=10
EOF
sudo tuned-adm profile vps-network-latency
sudo tuned-adm verify
Pro Tip: Prefer Per-Socket SO_BUSY_POLL Over Global Sysctl Polling
Linux kernel networking documentation recommends configuring busy polling selectively per application socket using SO_BUSY_POLL rather than setting net.core.busy_read=50 globally.[6] Keeping global busy_read=0 in a custom child profile protects background SSH, database, and monitoring sockets from wasting cycles while still keeping transparent_hugepages=never and tcp_fastopen=3 active.[1][6]
Step-by-Step Action Plan: Auditing Latency Gains and Rollback Safety
Execute this verification checklist before declaring your tuning deployment complete:
- Record baseline latency and steal time: Measure
pingjitter,iperf3orsockperfp99 latency, andmpstat -P ALL 1 5(%stealand%sys) before changing profiles. - Verify
CONFIG_NET_RX_BUSY_POLLkernel support: Runzgrep CONFIG_NET_RX_BUSY_POLL /proc/config.gz || grep CONFIG_NET_RX_BUSY_POLL /boot/config-$(uname -r)before relying onbusy_pollorbusy_read.[6] - Check Transparent Huge Pages mode: Confirm
cat /sys/kernel/mm/transparent_hugepage/enabledoutputs[never]when running latency-sensitive Redis, PostgreSQL, or packet-forwarding daemons.[1][9] - Validate bootloader cmdline persistence: After rebooting, run
cat /proc/cmdlineandtuned-adm verifyto confirmskew_tick=1andtsc=reliableapplied cleanly without GRUB errors.[1][5] - Monitor
vm.stat_intervaland CPU temperature/steal: Watchtopormpstatunder load; if%stealclimbs on a shared VPS after enablingbusy_poll, switch to thevps-network-latencyoverride or revert tovirtual-guest.[3][6]
Frequently Asked Questions: Linux Tuned-Adm Network-Latency
What does tuned-adm profile network-latency actually change in Linux?
The network-latency profile inherits latency-performance (locking the CPU governor to performance, setting min_perf_pct=100, limiting deep C-states via force_latency=cstate.id_no_zero:1|3, and lowering vm.swappiness=10 and dirty_bytes=10%).[1][2] It then sets transparent_hugepages=never, net.core.busy_read=50, net.core.busy_poll=50, net.ipv4.tcp_fastopen=3, kernel.numa_balancing=0, kernel.nmi_watchdog=0, kernel.timer_migration=0, and appends skew_tick=1 and tsc=reliable to the kernel boot command line.[1]
Is the tuned-adm network-latency profile safe on a shared Cloud VPS or KVM guest?
Yes, with targeted overrides. On a KVM VPS with shared host cores, net.core.busy_read=50 and net.core.busy_poll=50 cause the kernel to spin-wait up to 50 microseconds on socket reads and polls, which increases CPU utilization.[6] If you observe higher CPU steal time or host throttling, create a child profile under /etc/tuned/ that includes network-latency and resets busy_read and busy_poll to 0, or use virtual-guest.[3][5]
What is the difference between network-latency, virtual-guest, and network-throughput?
network-latency builds on latency-performance to minimize jitter by disabling Transparent Huge Pages, limiting CPU C-states, and enabling 50-microsecond socket busy polling.[1][2] Both virtual-guest and network-throughput inherit throughput-performance: virtual-guest raises vm.swappiness to 30 and dirty_bytes to 30% for virtualized storage, while network-throughput tunes net.ipv4.tcp_notsent_lowat=131072, net.ipv4.tcp_slow_start_after_idle=0, and 16MB TCP rmem/wmem maximums for high-bandwidth streaming.[3][4]
How do I verify and persist tuned-adm network-latency bootloader parameters?
Run sudo tuned-adm verify after applying the profile.[5] Because network-latency appends skew_tick=1 tsc=reliable rcupdate.rcu_normal_after_boot=1 rcutree.nohz_full_patience_delay=1000 via the [bootloader] plugin, you must reboot the Linux host and confirm those flags appear in /proc/cmdline for verification to pass cleanly.[1][5]
How do I revert tuned-adm network-latency back to default VPS settings?
Switch back to your recommended profile with sudo tuned-adm profile virtual-guest (or sudo tuned-adm auto_profile) to roll back sysctl and THP settings automatically, or run sudo tuned-adm off to disable TuneD tuning entirely.[5] Reboot afterward if you want the bootloader arguments added by network-latency cleared from /proc/cmdline.[1][5]
Eliminate Hypervisor Jitter With Dedicated NVMe & Uncontended NIC Queues
When kernel busy polling and C-state tuning hit the ceiling of shared virtualization, deploy isolated bare-metal compute with direct hardware control at Nextgen Hosting.
Explore Global Dedicated Servers Explore Pakistan Dedicated ServersDisclaimer: This post is for informational and educational purposes only, accurate to the best of our knowledge at publication. It does not constitute advice. We do not guarantee accuracy or completeness and accept no liability for any decisions or losses resulting from reliance on this content.
Sources & Official References
- Red Hat Performance / TuneD Project. "profiles/network-latency/tuned.conf (Upstream Profile Definition)." GitHub. Available at: https://github.com/redhat-performance/tuned/blob/master/profiles/network-latency/tuned.conf
- Red Hat Performance / TuneD Project. "profiles/latency-performance/tuned.conf (Upstream Base Profile Definition)." GitHub. Available at: https://github.com/redhat-performance/tuned/blob/master/profiles/latency-performance/tuned.conf
- Red Hat Performance / TuneD Project. "profiles/virtual-guest/tuned.conf (Upstream Profile Definition)." GitHub. Available at: https://github.com/redhat-performance/tuned/blob/master/profiles/virtual-guest/tuned.conf
- Red Hat Performance / TuneD Project. "profiles/network-throughput/tuned.conf (Upstream Profile Definition)." GitHub. Available at: https://github.com/redhat-performance/tuned/blob/master/profiles/network-throughput/tuned.conf
- TuneD Project / Debian Manpages. "tuned-adm(8) — command line tool for switching between different tuning profiles." Available at: https://manpages.debian.org/bookworm/tuned/tuned-adm.8.en.html
- The Linux Kernel Organization. "Documentation for /proc/sys/net/ (busy_read, busy_poll)." Linux Kernel Documentation. Available at: https://docs.kernel.org/admin-guide/sysctl/net.html
- The Linux Kernel Organization. "IP Sysctl (tcp_fastopen)." Linux Kernel Networking Documentation. Available at: https://docs.kernel.org/networking/ip-sysctl.html
- The Linux Kernel Organization. "Documentation for /proc/sys/kernel/ (numa_balancing, timer_migration, nmi_watchdog)." Linux Kernel Documentation. Available at: https://docs.kernel.org/admin-guide/sysctl/kernel.html
- The Linux Kernel Organization. "Documentation for /proc/sys/vm/ & Transparent Hugepage Support." Linux Kernel Documentation. Available at: https://docs.kernel.org/admin-guide/sysctl/vm.html
- The Linux Kernel Organization. "The kernel's command-line parameters (skew_tick, tsc=reliable)." Linux Kernel Documentation. Available at: https://docs.kernel.org/admin-guide/kernel-parameters.html
