{"id":28132,"date":"2021-11-16T15:06:44","date_gmt":"2021-11-16T15:06:44","guid":{"rendered":"https:\/\/hosting.nl\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/"},"modified":"2023-11-27T13:44:48","modified_gmt":"2023-11-27T13:44:48","slug":"how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f","status":"publish","type":"post","link":"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/","title":{"rendered":"How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f"},"content":{"rendered":"\n<p>Want clarity on the performance of your <a style=\"user-select: auto;\" href=\"https:\/\/hosting.nl\/en\/products\/vps\/\" target=\"_blank\" rel=\"noreferrer noopener\">VPS<\/a>? Then it is useful to find out objectively what the read and write speed is. To determine the read or write speed of your VPS, a number of useful (free) programs are available such as dd, hdparm and fio.<\/p>\n\n<p>In this article, I explain how to use fio to measure the read and write speed of a VPS. Specifically, we are going to measure the number of IOPS and throughput.<\/p>\n\n<h2 class=\"wp-block-heading\">Install FIO<\/h2>\n\n<h3 class=\"wp-block-heading\">Linux \/ FreeBSD<\/h3>\n\n<p>CentOS: sudo yum install epel-release -y &amp;&amp; sudo yum install fio<br\/>Debian and Ubuntu: sudo apt-get update &amp;&amp; apt-get install fio<br\/>FreeBSD: sudo pkg install fio<\/p>\n\n<h3 class=\"wp-block-heading\">MacOS<\/h3>\n\n<p>To use fio, you need Brew. Not using Brew yet?  <a href=\"https:\/\/brew.sh\" target=\"_blank\" rel=\"noreferrer noopener\">Follow these steps to install Brew on macOS.<\/a><\/p>\n\n<p>Once Brew is installed, you can install fio in the following way:<\/p>\n\n<pre class=\"wp-block-code\"><pre><code>sudo brew install fio<\/code><\/pre><\/pre>\n\n<h3 class=\"wp-block-heading\">Windows<\/h3>\n\n<p><a href=\"https:\/\/bsdio.com\/fio\/\" target=\"_blank\" rel=\"noreferrer noopener\">Download the Windows installation files for fio here.<\/a><\/p>\n\n<p><br\/>Importantly for Windows testers, there are fewer ioengines available, so in the examples below, change the ioengine to:<\/p>\n\n<pre class=\"wp-block-code\"><pre><code>--ioengine=windowsaio<\/code><\/pre><\/pre>\n\n<h2 class=\"wp-block-heading\">Using FIO to measure IOPS<\/h2>\n\n<p><br\/>Now that FIO is installed, we can get down to business. Make sure your terminal is in the correct folder since FIO tests the hard drive speed of the current folder.<\/p>\n\n<h3 class=\"wp-block-heading\">Start read test to measure IOPS<\/h3>\n\n<pre class=\"wp-block-code\"><pre><code>fio -direct=1 -iodepth=128 -rw=randread -ioengine=libaio -bs=4k -size=1G -numjobs=1 -runtime=60 -filename=iotest -name=test<\/code><\/pre><\/pre>\n\n<h3 class=\"wp-block-heading\">Write test start <meta charset=\"utf-8\" style=\"user-select: auto;\"\/>to measure IOPS<\/h3>\n\n<pre class=\"wp-block-code\"><pre><code>fio -direct=1 -iodepth=128 -rw=randwrite -ioengine=libaio -bs=4k -size=1G -numjobs=1 -runtime=60 -filename=iotest -name=test<\/code><\/pre><\/pre>\n\n<h2 class=\"wp-block-heading\">Using FIO to measure throughput<\/h2>\n\n<h3 class=\"wp-block-heading\"><meta charset=\"utf-8\" style=\"user-select: auto;\"\/>Start read test to measure throughput read speed<\/h3>\n\n<pre class=\"wp-block-code\"><pre><code><meta charset=\"utf-8\" style=\"user-select: auto;\">fio -direct=1 -iodepth=128 -rw=randread -ioengine=libaio -bs=1024k -size=1G -numjobs=1 -runtime=60 -filename=iotest -name=test<\/code><\/pre><\/pre>\n\n<h3 class=\"wp-block-heading\"><meta charset=\"utf-8\" style=\"user-select: auto;\"\/>Write test start <meta charset=\"utf-8\" style=\"user-select: auto;\"\/>to measure throughput write speed<\/h3>\n\n<pre class=\"wp-block-code\"><pre><code><meta charset=\"utf-8\" style=\"user-select: auto;\">fio -direct=1 -iodepth=128 -rw=randwrite -ioengine=libaio -bs=1024k -size=1G -numjobs=1 -runtime=60 -filename=iotest -name=test<\/code><\/pre><\/pre>\n\n<h2 class=\"wp-block-heading\">Explanation of the parameters used<\/h2>\n\n<ul class=\"wp-block-list\"><li>direct=1: Ignores the I\/O buffer and writes data away directly<\/li><li>iodepth=128: Works in conjunction with &#8216;direct=1&#8217; and gets us started asynchronously<\/li><li>rw=randread\/write: We write or read arbitrary data<\/li><li>ioengine=libaio: The proper engine for asynchronous testing. Under Windows, this is  <pre><code style=\"user-select: auto;\">--ioengine=windowsaio<\/code><\/pre><\/li><li>bs=4k: The size of a test block. 4k is the recommended block size for testing IOPS. If you want to test the throughput adjust this value to 1024k<\/li><li>size=1G: The size of the test file.<\/li><li>numjobs=1: We use this to simulate 1 process. If you want to simulate multiple simultaneous processes adjust this to, say, 16 to create 16 different test files.<\/li><li>runtime=60: Specifies how long (in seconds) the test should last.<\/li><li>filename=iotest: The name of the test file<\/li><li>name=test: The friendly name of this test<\/li><\/ul>\n\n<h3 class=\"wp-block-heading\">Explanation of the test result<\/h3>\n\n<p>In the results of the reading test you will see below. IOPS=12.9k shows the number of IOPS and <meta charset=\"utf-8\" style=\"user-select: auto;\"\/>52.9MB\/s the throughput.<\/p>\n\n<pre class=\"wp-block-code\"><pre><code>read: IOPS=12.9k, BW=50.5MiB\/s (52.9MB\/s)(508MiB\/10060msec)<\/code><\/pre><\/pre>\n\n<p>In the results of the writing test you will see the following. IOPS=2946 shows the number of IOPS and 12.1MB\/s the throughput.<\/p>\n\n<pre class=\"wp-block-code\"><pre><code>write: IOPS=2946, BW=11.5MiB\/s (12.1MB\/s)(691MiB\/60033msec); 0 zone resets<\/code><\/pre><\/pre>\n\n<p>Make sure you use the right test to measure IOPS or throughput.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want clarity on the performance of your VPS? Then it is useful to find out objectively what the read and write speed is. To determine the read or write speed of your VPS, a number of useful (free) programs are available such as dd, hdparm and fio. In this article, I explain how to use [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-28132","post","type-post","status-publish","format-standard","hentry","category-nieuws"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f | Hosting.NL<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f | Hosting.NL\" \/>\n<meta property=\"og:description\" content=\"Want clarity on the performance of your VPS? Then it is useful to find out objectively what the read and write speed is. To determine the read or write speed of your VPS, a number of useful (free) programs are available such as dd, hdparm and fio. In this article, I explain how to use [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/\" \/>\n<meta property=\"og:site_name\" content=\"Hosting.NL\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-16T15:06:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-27T13:44:48+00:00\" \/>\n<meta name=\"author\" content=\"Mark Kraakman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Kraakman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/\"},\"author\":{\"name\":\"Mark Kraakman\",\"@id\":\"https:\/\/hosting.nl\/en\/#\/schema\/person\/253eee45e07e446cb0898ceff92b60e1\"},\"headline\":\"How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f\",\"datePublished\":\"2021-11-16T15:06:44+00:00\",\"dateModified\":\"2023-11-27T13:44:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/\"},\"wordCount\":445,\"publisher\":{\"@id\":\"https:\/\/hosting.nl\/en\/#organization\"},\"articleSection\":[\"Nieuws\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/\",\"url\":\"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/\",\"name\":\"How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f | Hosting.NL\",\"isPartOf\":{\"@id\":\"https:\/\/hosting.nl\/en\/#website\"},\"datePublished\":\"2021-11-16T15:06:44+00:00\",\"dateModified\":\"2023-11-27T13:44:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hosting.NL\",\"item\":\"https:\/\/hosting.nl\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hosting.nl\/en\/#website\",\"url\":\"https:\/\/hosting.nl\/en\/\",\"name\":\"Hosting.NL\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/hosting.nl\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hosting.nl\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hosting.nl\/en\/#organization\",\"name\":\"Hosting.NL\",\"url\":\"https:\/\/hosting.nl\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hosting.nl\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hosting.nl\/wp-content\/uploads\/hostingnl-default-logo.png\",\"contentUrl\":\"https:\/\/hosting.nl\/wp-content\/uploads\/hostingnl-default-logo.png\",\"width\":242,\"height\":50,\"caption\":\"Hosting.NL\"},\"image\":{\"@id\":\"https:\/\/hosting.nl\/en\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/hosting.nl\/en\/#\/schema\/person\/253eee45e07e446cb0898ceff92b60e1\",\"name\":\"Mark Kraakman\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hosting.nl\/wp-content\/litespeed\/avatar\/0a11949fee67bcd9899c52e4feab68e8.jpg?ver=1776255724\",\"url\":\"https:\/\/hosting.nl\/wp-content\/litespeed\/avatar\/0a11949fee67bcd9899c52e4feab68e8.jpg?ver=1776255724\",\"contentUrl\":\"https:\/\/hosting.nl\/wp-content\/litespeed\/avatar\/0a11949fee67bcd9899c52e4feab68e8.jpg?ver=1776255724\",\"caption\":\"Mark Kraakman\"},\"url\":\"https:\/\/hosting.nl\/en\/blog\/author\/mark-kraakmancyso-group\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f | Hosting.NL","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:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/","og_locale":"en_US","og_type":"article","og_title":"How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f | Hosting.NL","og_description":"Want clarity on the performance of your VPS? Then it is useful to find out objectively what the read and write speed is. To determine the read or write speed of your VPS, a number of useful (free) programs are available such as dd, hdparm and fio. In this article, I explain how to use [&hellip;]","og_url":"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/","og_site_name":"Hosting.NL","article_published_time":"2021-11-16T15:06:44+00:00","article_modified_time":"2023-11-27T13:44:48+00:00","author":"Mark Kraakman","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mark Kraakman","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/#article","isPartOf":{"@id":"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/"},"author":{"name":"Mark Kraakman","@id":"https:\/\/hosting.nl\/en\/#\/schema\/person\/253eee45e07e446cb0898ceff92b60e1"},"headline":"How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f","datePublished":"2021-11-16T15:06:44+00:00","dateModified":"2023-11-27T13:44:48+00:00","mainEntityOfPage":{"@id":"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/"},"wordCount":445,"publisher":{"@id":"https:\/\/hosting.nl\/en\/#organization"},"articleSection":["Nieuws"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/","url":"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/","name":"How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f | Hosting.NL","isPartOf":{"@id":"https:\/\/hosting.nl\/en\/#website"},"datePublished":"2021-11-16T15:06:44+00:00","dateModified":"2023-11-27T13:44:48+00:00","breadcrumb":{"@id":"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hosting.nl\/en\/blog\/how-do-i-measure-the-read-and-write-speed-of-my-vps-%e2%8f%b1%ef%b8%8f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Hosting.NL","item":"https:\/\/hosting.nl\/en\/"},{"@type":"ListItem","position":2,"name":"How do I measure the (read and write) speed of my VPS? \u23f1\ufe0f"}]},{"@type":"WebSite","@id":"https:\/\/hosting.nl\/en\/#website","url":"https:\/\/hosting.nl\/en\/","name":"Hosting.NL","description":"","publisher":{"@id":"https:\/\/hosting.nl\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hosting.nl\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hosting.nl\/en\/#organization","name":"Hosting.NL","url":"https:\/\/hosting.nl\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hosting.nl\/en\/#\/schema\/logo\/image\/","url":"https:\/\/hosting.nl\/wp-content\/uploads\/hostingnl-default-logo.png","contentUrl":"https:\/\/hosting.nl\/wp-content\/uploads\/hostingnl-default-logo.png","width":242,"height":50,"caption":"Hosting.NL"},"image":{"@id":"https:\/\/hosting.nl\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/hosting.nl\/en\/#\/schema\/person\/253eee45e07e446cb0898ceff92b60e1","name":"Mark Kraakman","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hosting.nl\/wp-content\/litespeed\/avatar\/0a11949fee67bcd9899c52e4feab68e8.jpg?ver=1776255724","url":"https:\/\/hosting.nl\/wp-content\/litespeed\/avatar\/0a11949fee67bcd9899c52e4feab68e8.jpg?ver=1776255724","contentUrl":"https:\/\/hosting.nl\/wp-content\/litespeed\/avatar\/0a11949fee67bcd9899c52e4feab68e8.jpg?ver=1776255724","caption":"Mark Kraakman"},"url":"https:\/\/hosting.nl\/en\/blog\/author\/mark-kraakmancyso-group\/"}]}},"_links":{"self":[{"href":"https:\/\/hosting.nl\/en\/wp-json\/wp\/v2\/posts\/28132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosting.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosting.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosting.nl\/en\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/hosting.nl\/en\/wp-json\/wp\/v2\/comments?post=28132"}],"version-history":[{"count":1,"href":"https:\/\/hosting.nl\/en\/wp-json\/wp\/v2\/posts\/28132\/revisions"}],"predecessor-version":[{"id":28133,"href":"https:\/\/hosting.nl\/en\/wp-json\/wp\/v2\/posts\/28132\/revisions\/28133"}],"wp:attachment":[{"href":"https:\/\/hosting.nl\/en\/wp-json\/wp\/v2\/media?parent=28132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting.nl\/en\/wp-json\/wp\/v2\/categories?post=28132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting.nl\/en\/wp-json\/wp\/v2\/tags?post=28132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}