{"id":883,"date":"2016-09-07T16:54:25","date_gmt":"2016-09-07T14:54:25","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=883"},"modified":"2016-09-07T16:54:25","modified_gmt":"2016-09-07T14:54:25","slug":"freebsd-10-3-poor-disk-io-as-kvm-guest","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=883","title":{"rendered":"FreeBSD 10.3 poor disk I\/O as KVM guest"},"content":{"rendered":"<p>\n\tI am using KVM on CentOS 6 (host) and FreeBSD 10.3 as a guest system. FreeBSD&#39;s hard disk write performance was horrible! It was about 2-5 MB\/s! After searching some time,&nbsp;here the fix which led the write speed to 40 MB\/s!\n<\/p>\n<p>\n\tOpen your VM config file with\n<\/p>\n<pre>\n# virsh edit &lt;SERVER&gt;<\/pre>\n<p>\n\tthen find your hard disk config line and change the cache and io paramter accordingly. Here the wonderful line which gave it a awesome performance boost:\n<\/p>\n<pre>\n&lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;\n    ...\n    &lt;driver name=&#39;qemu&#39; type=&#39;raw&#39; cache=&#39;none&#39; io=&#39;native&#39;\/&gt;\n    ...\n&lt;\/disk&gt;<\/pre>\n<p>\n\tSave your config file and reboot your FreeBSD guest, you will see the difference is huge (at least in my case)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am using KVM on CentOS 6 (host) and FreeBSD 10.3 as a guest system. FreeBSD&#39;s hard disk write performance was horrible! It was about 2-5 MB\/s! After searching some time,&nbsp;here the fix which led the write speed to 40 MB\/s! Open your VM config file with # virsh edit &lt;SERVER&gt; then find your hard [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-883","post","type-post","status-publish","format-standard","hentry","category-linuxunix","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=883"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/883\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}