<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
em
        {mso-style-priority:20;
        font-weight:bold;
        font-style:normal;}
code
        {mso-style-priority:99;
        font-family:Consolas;
        background:#F4F4F4;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Trebuchet MS",sans-serif;
        color:#44546A;
        font-weight:normal;
        font-style:normal;}
span.st1
        {mso-style-name:st1;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:151915367;
        mso-list-type:hybrid;
        mso-list-template-ids:574646420 134676497 134676505 134676507 134676495 134676505 134676507 134676495 134676505 134676507;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="DE-CH" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">Hi,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">I think that
</span><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US"><a href="https://wiki.mikejung.biz/KVM_/_Xen"><span lang="EN-US">https://wiki.mikejung.biz/KVM_/_Xen</span></a></span><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">
<span lang="EN-US">might be quite useful<o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">Pretty much there won’t be a universal recipe but rather combination of what are kernel/QEMU/OpenStack… versions<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">and implementation choices that were made<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">-Guest OS/host OS kernel version<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">-QEMU version<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">-OpenStack release. Basically the part of XML definition of disk is controlled by OpenStack
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">-virtio_blk vs. some fully-virtualized stuff like ide is used
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">-the backend for virtual disk
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">some points possibly to add to that article:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US"><span style="mso-list:Ignore">1)<span style="font:7.0pt "Times New Roman"">   
</span></span></span><![endif]><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">For virtio_scsi in OpenStack see
<a href="https://blueprints.launchpad.net/nova/+spec/cinder-backend-report-discard">
https://blueprints.launchpad.net/nova/+spec/cinder-backend-report-discard</a> <o:p>
</o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US"><span style="mso-list:Ignore">2)<span style="font:7.0pt "Times New Roman"">   
</span></span></span><![endif]><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">Linux itself is supposed to detect if it works on HDD or SSD<o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">See:<o:p></o:p></span></p>
<p class="MsoListParagraph"><code><span lang="EN-US" style="font-size:9.0pt;color:#555555">smartctl -a /dev/sd<x><o:p></o:p></span></code></p>
<p class="MsoListParagraph"><code><span lang="EN-US" style="font-size:9.0pt;color:#555555">and</span></code><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#555555;background:#F4F4F4"><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">cat /sys/block/sd<x>/queue/rotational<o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">(0 –SSD, 1 – HDD)<o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">But results might be contradictory/interpretation of that is not straightforward.<o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">Maybe someone has better insight, but what I understood from one hand not all SSD drives report to being as
 such <o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">And that’s why sysfs entry /sys/block/sd<x>/queue/rotational was introduced which was meant to enforce ‘SSD-like
 behavior)<o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US"><a href="https://lwn.net/Articles/408428/">https://lwn.net/Articles/408428/</a>
<o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">But then I kinda understood that Linux might/is supposed to set it correctly (via udev rules?)
<o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">But it should be noted in Ubuntu 12.04/Ubuntu 14.04 that I worked with that had SSDs this flag /rotational
 was ‘1’ on SSD, ie. Incorrect…)<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="color:#242729"><span style="mso-list:Ignore">3)<span style="font:7.0pt "Times New Roman"">    
</span></span></span><![endif]><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">The question of cfq vs. deadline vs. noop scheduler (apparently both in guest and host) where decision
 should be based on workloads/recommendations of OS vendor (/which again might be release-dependent).</span><span lang="EN-US" style="color:#242729;background:#EFF0F1"><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="color:#242729;background:#EFF0F1"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">BR.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US">Konstantin<o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US" style="color:#242729;background:#EFF0F1"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#44546A;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt">From:</span></b><span lang="EN-US" style="font-size:11.0pt"> Tim Bell [mailto:Tim.Bell@cern.ch]
<br>
<b>Sent:</b> Friday, August 05, 2016 12:44 PM<br>
<b>To:</b> openstack-operators <openstack-operators@lists.openstack.org><br>
<b>Subject:</b> [Openstack-operators] Tuning I/O with SSDs<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Has anyone a good recipe for improving I/O performance when the hypervisor has SSDs ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">The configuration is CentOS 7 for guest and hypervisor with KVM.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Tim<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
</body>
</html>