<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: 微软雅黑; COLOR: #000000; FONT-SIZE: 10.5pt; 36719: ; 38597: ; 40657: 
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.7601.17514"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>On 2013-08-28 09:35 , <A href="mailto:eblake@redhat.com">Eric 
Blake</A> wrote:</DIV>
<DIV>
<TABLE width="100%">
  <TBODY>
  <TR>
    <TD width="100%">
      <BLOCKQUOTE 
      style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
        <DIV>On 08/26/2013 10:10 PM, hzguanqiang@corp.netease.com wrote:</DIV>
        <DIV>> Hello experts,</DIV>
        <DIV> </DIV>
        <DIV>[please configure your mailer to wrap long lines]</DIV>
        <DIV> </DIV>
        <DIV>> </DIV>
        <DIV>> It seems that blkiotune of kvm domain is set through qemu now, 
        and We found there are some throttle shaking problem when using this 
        interface.</DIV>
        <DIV>> </DIV>
        <DIV>> As you can do the same thing through blkio cgroup, and this 
        sounds to show better performance, Can we realize domainSetBlockIoTune 
        by cgroup just like interface domainSetBlkioParameters ? Or Add a new 
        interface to support setting disk IOtune by blkio cgroup?</DIV>
        <DIV> </DIV>
        <DIV>Current libvirt already lets you choose between cgroup blkio vs. 
        qemu io</DIV>
        <DIV>throttling.  Compare:</DIV>
        <DIV> </DIV>
        <DIV>http://libvirt.org/formatdomain.html#elementsBlockTuning 
        describes</DIV>
        <DIV><blkiotune> (implemented via cgroups, on a 
        per-host-block-device basis);</DIV>
        <DIV>mapped through the virDomainSetBlkioParameters API, or via 'virsh 
        blkiotune'</DIV>
        <DIV> </DIV>
        <DIV>http://libvirt.org/formatdomain.html#elementsDisks describes 
        <iotune></DIV>
        <DIV>under <disk> (implemented via qemu, on a per-guest-disk 
        basis); mapped</DIV>
        <DIV>through the virDomainSetBlockIoTune API, or via 'virsh 
        blkdeviotune'</DIV>
        <DIV> </DIV>
        <DIV>(and yes, we're lousy at using consistently named API)</DIV>
        <DIV> </DIV>
        <DIV>-- </DIV>
        <DIV>Eric Blake   eblake redhat com    
        +1-919-301-3266</DIV>
        <DIV>Libvirt virtualization library <A 
        href="http://libvirt.org">http://libvirt.org</A></DIV>
        <DIV> </DIV>
        <DIV> </DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE></DIV>
<DIV> </DIV>
<DIV>Well , Eric, Thanks for your answer.  The 
virDomainSetBlkioParameters  API you said is just to</DIV>
<DIV>set the blkio.device_weight, not throttle.iops or throttle.bps just as the 
virDomainSetBlockIoTune</DIV>
<DIV> API did.</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV><SPAN>
<DIV style="FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV>------------------     <BR>Best 
regards!<BR>GuanQiang</DIV></DIV></SPAN></DIV>
<DIV>09:40:56</DIV></BODY></HTML>