{"id":1283,"date":"2022-10-18T06:05:01","date_gmt":"2022-10-18T06:05:01","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=1283"},"modified":"2022-11-05T20:08:23","modified_gmt":"2022-11-05T20:08:23","slug":"simple-disk-performance-testing-tool-for-microsoft-windows","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=1283","title":{"rendered":"Simple Disk Performance Testing Tool (for Microsoft Windows)"},"content":{"rendered":"\n<p>Running a disk test need not be complicated. Microsoft provide a cheeky little hard disk test program that can be used, you can download it from <a href=\"https:\/\/github.com\/microsoft\/diskspd\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/microsoft\/diskspd<\/a>.<\/p>\n\n\n\n<p>A simple run can be completed with the following command to test the hard drive performance based on the parameters entered.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>diskspd.exe -d60 -W15 -C15 -c128M -t4 -o4 -b8k -L -r -Sh -w50 c:\\disk-speed-test.dat <\/code><\/pre>\n\n\n\n<p>If you wish you can add &#8220;&gt; c:\\drive-test-results.txt&#8221; to the end of the command to output the result to a file.<\/p>\n\n\n\n<p>A breakdown of the arguments used on the command can be found here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-d60 \u2014<\/strong>&nbsp;How long the command will run for in seconds.<\/li>\n\n\n\n<li><strong>-W15 \u2014<\/strong>&nbsp;Set the warm-up time before the test starts.<\/li>\n\n\n\n<li><strong>-C15 \u2014<\/strong>&nbsp;Set the cool-down time after the test.<\/li>\n\n\n\n<li><strong>-c128M \u2014<\/strong>&nbsp;The size of the file created for the test, making this larger, means a bigger file therefore using more of the hard disk(s) during the disk.<\/li>\n\n\n\n<li><strong>-t4 \u2014<\/strong>&nbsp;Number of threads for the program to run under, you can use one per available core in the processor.<\/li>\n\n\n\n<li><strong>-o4 \u2014<\/strong>&nbsp;Set the number of outstanding I\/O requests per target per thread.<\/li>\n\n\n\n<li><strong>-b8k \u2014<\/strong>&nbsp;Sets the block size, default is 64K.<\/li>\n\n\n\n<li><strong>-L \u2014<\/strong>&nbsp;Measures latency statistics.<\/li>\n\n\n\n<li><strong>-r \u2014<\/strong>&nbsp;Makes the I\/O random, override with the &#8220;-s&#8221; option, often you&#8217;ll want random, but if you are testing say or a very sequential workload, e.g. database transaction logs, you might want this changed.<\/li>\n\n\n\n<li><strong>-Sh \u2014<\/strong>&nbsp;Ensures software and hardware write caching is disabled.<\/li>\n\n\n\n<li><strong>-w50 \u2014<\/strong>&nbsp;Specifies the percentage of write and read requests. Depending on what you are wanting to test this you may want to change. Setting to 100 means a 100% write test. setting to 0% means a 100% read test, setting to 50% means it will be 50% read, 50% write. Change to whatever you need for your test. Normally 50\/50 will do, but if for example you are testing a media streaming server, you might want 95% read, 5% write, so you can get an idea of read rate.<\/li>\n\n\n\n<li><strong>c:\\disk-speed-test.dat \u2014<\/strong>&nbsp;This is the path to store the target file for the test.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Running a disk test need not be complicated. Microsoft provide a cheeky little hard disk test program that can be used, you can download it from https:\/\/github.com\/microsoft\/diskspd. A simple run can be completed with the following command to test the hard drive performance based on the parameters entered. If you wish you can add &#8220;&gt; &#8230; <a title=\"Simple Disk Performance Testing Tool (for Microsoft Windows)\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=1283\" aria-label=\"Read more about Simple Disk Performance Testing Tool (for Microsoft Windows)\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":2514,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,24],"tags":[],"class_list":["post-1283","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-windows","category-storage"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1283"}],"version-history":[{"count":3,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1283\/revisions"}],"predecessor-version":[{"id":3517,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1283\/revisions\/3517"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/media\/2514"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}