{"id":88,"date":"2025-11-30T01:44:28","date_gmt":"2025-11-30T01:44:28","guid":{"rendered":"https:\/\/virtualserversvps.com\/blog\/?p=88"},"modified":"2026-07-11T22:12:53","modified_gmt":"2026-07-11T22:12:53","slug":"mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds","status":"publish","type":"post","link":"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/","title":{"rendered":"Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers"},"content":{"rendered":"<p class=\"wp-block-paragraph\">A default Linux VPS installation ships with conservative kernel parameters optimized for compatibility, not performance. This guide walks through practical tuning techniques that can improve your VPS throughput by 20-40% with zero hardware cost. Before diving in, <a href=\"https:\/\/virtualserversvps.com\/#providers\">compare VPS providers on our comparison table<\/a> to ensure your provider offers NVMe storage and dedicated vCPUs for consistent performance.<\/p><h2 class=\"wp-block-heading\">CPU Frequency Scaling and Governors<\/h2><p class=\"wp-block-paragraph\">Modern Linux kernels manage CPU frequency through governors. On a VPS, set the governor to &#8220;performance&#8221;:<\/p><pre class=\"wp-block-code\"><code># Check current governor\ncat \/sys\/devices\/system\/cpu\/cpu*\/cpufreq\/scaling_governor\n\n# Install cpupower\nsudo apt install -y linux-tools-common linux-tools-$(uname -r)\n\n# Set performance governor\nsudo cpupower frequency-set -g performance\n\n# Verify\ncat \/sys\/devices\/system\/cpu\/cpu*\/cpufreq\/scaling_governor<\/code><\/pre><p class=\"wp-block-paragraph\">Make it permanent with a systemd service:<\/p><pre class=\"wp-block-code\"><code>sudo tee \/etc\/systemd\/system\/cpupower.service &lt;&lt; 'EOF'\n[Unit]\nDescription=Set CPU governor to performance\n[Service]\nType=oneshot\nExecStart=\/usr\/bin\/cpupower frequency-set -g performance\n[Install]\nWantedBy=multi-user.target\nEOF\nsudo systemctl enable --now cpupower.service<\/code><\/pre><h2 class=\"wp-block-heading\">Memory Management: Swappiness and HugePages<\/h2><pre class=\"wp-block-code\"><code># Reduce swappiness to 10 (only swap under extreme pressure)\nsudo sysctl -w vm.swappiness=10\necho \"vm.swappiness=10\" | sudo tee -a \/etc\/sysctl.conf\n\n# Enable Transparent HugePages (best for database servers)\necho always | sudo tee \/sys\/kernel\/mm\/transparent_hugepage\/enabled\n\n# Tune dirty page ratios\nsudo sysctl -w vm.dirty_ratio=30\nsudo sysctl -w vm.dirty_background_ratio=5<\/code><\/pre><h2 class=\"wp-block-heading\">Disk I\/O Scheduler<\/h2><p class=\"wp-block-paragraph\">NVMe SSDs perform best with the &#8220;none&#8221; scheduler, while SATA SSDs benefit from &#8220;mq-deadline&#8221;:<\/p><pre class=\"wp-block-code\"><code># Check current scheduler\ncat \/sys\/block\/*\/queue\/scheduler\n\n# Set \"none\" for NVMe\necho none | sudo tee \/sys\/block\/nvme0n1\/queue\/scheduler\n\n# Set \"mq-deadline\" for SATA SSDs\necho mq-deadline | sudo tee \/sys\/block\/sda\/queue\/scheduler\n\n# Increase read-ahead\nsudo blockdev --setra 4096 \/dev\/nvme0n1<\/code><\/pre><h2 class=\"wp-block-heading\">Network Stack Tuning<\/h2><pre class=\"wp-block-code\"><code># Enable TCP BBR congestion control\necho \"tcp_bbr\" | sudo tee -a \/etc\/modules-load.d\/modules.conf\nsudo modprobe tcp_bbr\nsudo sysctl -w net.core.default_qdisc=fq\nsudo sysctl -w net.ipv4.tcp_congestion_control=bbr\n\n# Increase network buffer sizes\nsudo sysctl -w net.core.rmem_max=134217728\nsudo sysctl -w net.core.wmem_max=134217728\nsudo sysctl -w net.ipv4.tcp_rmem=\"4096 87380 134217728\"\nsudo sysctl -w net.ipv4.tcp_wmem=\"4096 65536 134217728\"\n\n# Increase backlog\nsudo sysctl -w net.core.somaxconn=65535\nsudo sysctl -w net.ipv4.tcp_max_syn_backlog=8192<\/code><\/pre><h2 class=\"wp-block-heading\">Verifying Tuning Impact<\/h2><p class=\"wp-block-paragraph\">Run before-and-after benchmarks:<\/p><pre class=\"wp-block-code\"><code># CPU performance\nsysbench cpu --cpu-max-prime=20000 --threads=$(nproc) run\n\n# Memory throughput\nsysbench memory --memory-block-size=1K --memory-total-size=10G run\n\n# Network throughput\niperf3 -c iperf.he.net -t 30<\/code><\/pre><p class=\"wp-block-paragraph\">These tuning techniques work on any Linux VPS. For rock-solid performance with managed support, consider <a href=\"https:\/\/cloudways.com\/en\/?id=2010927&#038;data1=virtualserversvps\" rel=\"noreferrer noopener sponsored\" target=\"_blank\">Cloudways managed VPS<\/a>. For unmanaged VPS with full root access, <a href=\"https:\/\/interserver.net\/vps?id=1067805&#038;sid=virtualserversvps\" rel=\"noreferrer noopener sponsored\" target=\"_blank\">InterServer VPS<\/a> offers KVM-based instances with NVMe storage. Always <a href=\"https:\/\/virtualserversvps.com\/#providers\">compare VPS providers on our comparison table<\/a> to find the best-performing provider for your specific workload.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you\u2019re ready to move beyond the limitations of basic shared hosting and unlock a new level of website performance, stability, and control, you\u2019re looking at the right solution. The interconnected terms virtual dedicated server vps vds represent the gold standard in flexible, powerful hosting, sitting perfectly between cheap shared plans and expensive, physical dedicated machines. <\/p>\n","protected":false},"author":1,"featured_media":89,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-88","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps-guides-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v26.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers - Virtual Servers VPS Blog<\/title>\n<meta name=\"description\" content=\"If you\u2019re ready to move beyond the limitations of basic shared hosting and unlock a new level of website performance, stability, and control, you\u2019re looking at the right solution. The interconnected terms virtual dedicated server vps vds represent the gold standard in flexible, powerful hosting, sitting perfectly between cheap shared plans and expensive, physical dedicated machines.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers\" \/>\n<meta property=\"og:description\" content=\"Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers\" \/>\n<meta property=\"og:url\" content=\"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/\" \/>\n<meta property=\"og:site_name\" content=\"Virtual Servers VPS Blog\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-30T01:44:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-11T22:12:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/11\/8866-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"426\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Virtual-Servers-Vps-Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Virtual-Servers-Vps-Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/\",\"url\":\"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/\",\"name\":\"Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers - Virtual Servers VPS Blog\",\"isPartOf\":{\"@id\":\"https:\/\/virtualserversvps.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/11\/8866-2.jpg\",\"datePublished\":\"2025-11-30T01:44:28+00:00\",\"dateModified\":\"2026-07-11T22:12:53+00:00\",\"author\":{\"@id\":\"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/82a299a8284a66ff49f97c74684724a0\"},\"description\":\"If you\u2019re ready to move beyond the limitations of basic shared hosting and unlock a new level of website performance, stability, and control, you\u2019re looking at the right solution. The interconnected terms virtual dedicated server vps vds represent the gold standard in flexible, powerful hosting, sitting perfectly between cheap shared plans and expensive, physical dedicated machines.\",\"breadcrumb\":{\"@id\":\"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/#primaryimage\",\"url\":\"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/11\/8866-2.jpg\",\"contentUrl\":\"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/11\/8866-2.jpg\",\"width\":640,\"height\":426},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/virtualserversvps.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/#website\",\"url\":\"https:\/\/virtualserversvps.com\/blog\/\",\"name\":\"Virtual Servers VPS Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/virtualserversvps.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/82a299a8284a66ff49f97c74684724a0\",\"name\":\"Virtual-Servers-Vps-Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d820b15f1cd028e97610d9adf536df7be5cb6423869967037d468d5355fa003f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d820b15f1cd028e97610d9adf536df7be5cb6423869967037d468d5355fa003f?s=96&d=mm&r=g\",\"caption\":\"Virtual-Servers-Vps-Editor\"},\"sameAs\":[\"https:\/\/virtualserversvps.com\/blog\"],\"url\":\"https:\/\/virtualserversvps.com\/blog\/author\/virtualserversvps\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers - Virtual Servers VPS Blog","description":"If you\u2019re ready to move beyond the limitations of basic shared hosting and unlock a new level of website performance, stability, and control, you\u2019re looking at the right solution. The interconnected terms virtual dedicated server vps vds represent the gold standard in flexible, powerful hosting, sitting perfectly between cheap shared plans and expensive, physical dedicated machines.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/","og_locale":"en_US","og_type":"article","og_title":"Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers","og_description":"Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers","og_url":"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/","og_site_name":"Virtual Servers VPS Blog","article_published_time":"2025-11-30T01:44:28+00:00","article_modified_time":"2026-07-11T22:12:53+00:00","og_image":[{"width":640,"height":426,"url":"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/11\/8866-2.jpg","type":"image\/jpeg"}],"author":"Virtual-Servers-Vps-Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Virtual-Servers-Vps-Editor","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/","url":"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/","name":"Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers - Virtual Servers VPS Blog","isPartOf":{"@id":"https:\/\/virtualserversvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/#primaryimage"},"image":{"@id":"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/#primaryimage"},"thumbnailUrl":"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/11\/8866-2.jpg","datePublished":"2025-11-30T01:44:28+00:00","dateModified":"2026-07-11T22:12:53+00:00","author":{"@id":"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/82a299a8284a66ff49f97c74684724a0"},"description":"If you\u2019re ready to move beyond the limitations of basic shared hosting and unlock a new level of website performance, stability, and control, you\u2019re looking at the right solution. The interconnected terms virtual dedicated server vps vds represent the gold standard in flexible, powerful hosting, sitting perfectly between cheap shared plans and expensive, physical dedicated machines.","breadcrumb":{"@id":"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/#primaryimage","url":"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/11\/8866-2.jpg","contentUrl":"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/11\/8866-2.jpg","width":640,"height":426},{"@type":"BreadcrumbList","@id":"https:\/\/virtualserversvps.com\/blog\/mastering-server-hosting-the-definitive-guide-to-virtual-dedicated-server-vps-vds\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/virtualserversvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Linux VPS Performance Tuning: CPU Governors, Swappiness, and I\/O Schedulers"}]},{"@type":"WebSite","@id":"https:\/\/virtualserversvps.com\/blog\/#website","url":"https:\/\/virtualserversvps.com\/blog\/","name":"Virtual Servers VPS Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/virtualserversvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/82a299a8284a66ff49f97c74684724a0","name":"Virtual-Servers-Vps-Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d820b15f1cd028e97610d9adf536df7be5cb6423869967037d468d5355fa003f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d820b15f1cd028e97610d9adf536df7be5cb6423869967037d468d5355fa003f?s=96&d=mm&r=g","caption":"Virtual-Servers-Vps-Editor"},"sameAs":["https:\/\/virtualserversvps.com\/blog"],"url":"https:\/\/virtualserversvps.com\/blog\/author\/virtualserversvps\/"}]}},"_links":{"self":[{"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/comments?post=88"}],"version-history":[{"count":2,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":619,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/posts\/88\/revisions\/619"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/media\/89"}],"wp:attachment":[{"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/categories?post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/tags?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}