<div dir="ltr"><div><br></div>Hi Jinsheng, <div><br></div><div>Thank you for the explanation. From the statistics above, the tc outputs for outbound matches. But I'm confused about the inbound statistics:</div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr" style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"># virsh domiftune rhel vnet5</span></p><p dir="ltr" style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">inbound.average: <b>100</b></span></p><p dir="ltr" style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">inbound.peak   : <b>200</b></span></p><p dir="ltr" style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">inbound.burst  : 256</span></p><p dir="ltr" style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">...</span></p><p dir="ltr" style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">#  tc -d class show  dev vnet5</span></p><p dir="ltr" style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">class htb 1:1 parent 1:fffe prio 0 quantum 10240 rate </span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-weight:700;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">819200bit</span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"> ceil </span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-weight:700;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">1638Kbit</span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"> linklayer ethernet burst </span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">256Kb</span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">/1 mpu 0b cburst 256Kb/1 mpu 0b level 0 </span></p><p dir="ltr" style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"></span></p><p dir="ltr" style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">class htb 1:fffe root rate 1638Kbit ceil 1638Kbit linklayer ethernet burst 1499b/1 mpu 0b cburst 1499b/1 mpu 0b level 7 </span></p><p dir="ltr" style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"><br></span></p><p style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">As the value in libvirt xml is KB, </span><span style="color:rgb(51,51,51);font-family:Arial;font-size:14px;white-space:pre-wrap">inbound.average: *</span><b style="color:rgb(51,51,51);font-family:Arial;font-size:14px;white-space:pre-wrap">100 KB*</b><span style="color:rgb(51,51,51);font-family:Arial;font-size:14px;white-space:pre-wrap"> can not match with *"</span><span style="background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap">rate </span><span style="background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);font-weight:700;vertical-align:baseline;white-space:pre-wrap">819200bit"*</span><span style="background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap"> in tc outputs<b>,</b></span><span style="background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap"> I supposed it should be <b>800Kbit. </b>Please help to confirm.</span></p><p style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap">And so does "</span><span style="background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap">ceil </span><span style="background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);font-weight:700;vertical-align:baseline;white-space:pre-wrap">1638Kbit"</span><span style="background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap"> (may be it should be 1600Kbit as "</span><span style="color:rgb(51,51,51);font-family:Arial;font-size:14px;white-space:pre-wrap">inbound.peak   : </span><span style="color:rgb(51,51,51);font-family:Arial;font-size:14px;white-space:pre-wrap">200"</span><span style="background-color:transparent;color:rgb(51,51,51);font-family:Arial;font-size:10.5pt;white-space:pre-wrap">).</span></p><p style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;color:rgb(51,51,51);font-family:Arial;font-size:10.5pt;white-space:pre-wrap"><br></span></p><p style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;color:rgb(51,51,51);font-family:Arial;font-size:10.5pt;white-space:pre-wrap">I have run netperf to test the actual rate, the result is pass. 2 vm connected to the same bridge, set one vm with Qos, see test results below:</span></p><p style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt"># virsh domiftune rhel vnet0<br>inbound.average: 400<br>inbound.peak   : 500<br>inbound.burst  : 125<br>inbound.floor  : 0<br>outbound.average: 100<br>outbound.peak  : 200<br>outbound.burst : 256<br></p><p style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt">Throughput for inbound:  3.92 * 10^6bits/sec</p><p style="line-height:1.88572;margin-top:0pt;margin-bottom:0pt">Throughput for outbound:  0.93 * 10^6bits/sec<br></p><div dir="ltr"><br></div><div>These patches fixed the bug [1] which closed <span style="color:rgb(0,0,0);white-space:pre-wrap">with deferred resolution. Thank you!</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">And this reminds me of another ovs Qos related bug [2], which was about network. </span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">And I tried with the scenarios in [2], there are no changes(not fixed). Just for information. :-)</span></div><div><br></div><div>[1] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1510237">https://bugzilla.redhat.com/show_bug.cgi?id=1510237</a></div><div>[2] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1826168">https://bugzilla.redhat.com/show_bug.cgi?id=1826168</a><br></div><div><br></div><br>-------<br>Best Regards,<br>Yalan Zhang<br>IRC: yalzhang<br><br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 26, 2021 at 3:23 PM Jinsheng Zhang (张金生)-云服务集团 <<a href="mailto:zhangjl02@inspur.com" target="_blank">zhangjl02@inspur.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="ZH-CN">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Hi Yalan,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"><span>1)<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">For inbound, we can use `ovs-vsctl list qos` and `ovs-vsctl list queue`  to check them from the openvswitch side. Values can be found
 in</span><span lang="EN-US"> </span><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">other_config.  Inbound is in kbyte when set qos with `virsh    domiftune …`, well it is in bit in ovs, Therefore, when inbound.average
 is set to 100, the corresponding value will be  set to 819200 in ovs. <u></u><u></u></span></p>
<p style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"><span>2)<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">For outbound, it is in kbyte in libvirt and ingress_policing_XX in ovs interface is in kbit.<u></u><u></u></span></p>
<p style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"><span>3)<span style="font:7pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Ovs use tc to set qos, so we can see output from tc command.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">This patch is to unify the qos control and query on ovs ports.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">The conversion explanation is added in this patch:
<a href="https://listman.redhat.com/archives/libvir-list/2021-August/msg00422.html" target="_blank">
https://listman.redhat.com/archives/libvir-list/2021-August/msg00422.html</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">And there are 6 following patches to fix some bugs. See
<a href="https://listman.redhat.com/archives/libvir-list/2021-August/msg00423.html" target="_blank">
https://listman.redhat.com/archives/libvir-list/2021-August/msg00423.html</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">-------<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Best Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)">Jinsheng Zhang<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Calibri,"sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:微软雅黑,"sans-serif"">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11pt;font-family:微软雅黑,"sans-serif""> Yalan Zhang [mailto:<a href="mailto:yalzhang@redhat.com" target="_blank">yalzhang@redhat.com</a>]
<br>
</span><b><span style="font-size:11pt;font-family:微软雅黑,"sans-serif"">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11pt;font-family:微软雅黑,"sans-serif""> 2021</span><span style="font-size:11pt;font-family:微软雅黑,"sans-serif"">年<span lang="EN-US">10</span>月<span lang="EN-US">25</span>日<span lang="EN-US">
 17:54<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> Michal Pr</span>í<span lang="EN-US">vozn</span>í<span lang="EN-US">k; Jinsheng Zhang (</span>张金生<span lang="EN-US">)-</span>云服务集团<span lang="EN-US"><br>
</span><b>抄送<span lang="EN-US">:</span></b><span lang="EN-US"> <a href="mailto:libvir-list@redhat.com" target="_blank">libvir-list@redhat.com</a>; Norman Shen(</span>申嘉童<span lang="EN-US">); zhangjl02<br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: [PATCH v3 0/4] Add qemu support setting qos via ovs on ovs interface<u></u><u></u></span></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Jinsheng,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I have tested the patch and have some questions, could you please help to confirm?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">1) For inbound, how to check it from the openvswitch side? tc will still show the statistics, is that expected?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2) For outbound, the peak is ignored. I just can not understand the "</span><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_burst: 2048", how can it come from
 the setting "outbound.burst : 256"?</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">3) Is the output from tc command expected?
</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Test inbound:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">1. start vm with setting as below:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <interface type='bridge'><br>
      <source bridge='ovsbr0'/><br>
      <virtualport type='openvswitch'/><u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"><bandwidth></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">        <inbound average='100' peak='200' burst='256'/></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">      </bandwidth></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">...</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"></interface></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">2. <u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># virsh domiftune rhel vnet5</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.average: 100</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.peak   : 200</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.burst  : 256</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.floor  : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.average: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.peak  : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.burst : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># ip l</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">17: vnet5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb master ovs-system state UNKNOWN mode DEFAULT group default
 qlen 1000</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">    link/ether fe:54:00:4d:43:5a brd ff:ff:ff:ff:ff:ff</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># ovs-vsctl show interface</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">…...</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_burst: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_kpkts_burst: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_kpkts_rate: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_rate: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">…...</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">name                : vnet5</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">#  tc -d class show  dev vnet5</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">class htb 1:1 parent 1:fffe prio 0 quantum 10240 rate
<b>819200bit</b> ceil <b>1638Kbit</b> linklayer ethernet burst <b>256Kb</b>/1 mpu 0b cburst 256Kb/1 mpu 0b level 0 </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">class htb 1:fffe root rate 1638Kbit ceil 1638Kbit linklayer ethernet burst 1499b/1 mpu 0b cburst 1499b/1 mpu 0b level 7 </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">#  tc -d filter show dev vnet5 parent ffff:</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">(no outputs)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">For outbound:<u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># virsh dumpxml rhel | grep /bandwidth -B2</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"> <bandwidth></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">        <outbound average='100' peak='200' burst='256'/></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">      </bandwidth></span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># virsh domiftune rhel vnet9</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.average: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.peak   : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.burst  : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">inbound.floor  : 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.average: 100</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.peak  : 200</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">outbound.burst : 256</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># ovs-vsctl list interface</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_burst:
<b>2048</b></span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_kpkts_burst: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_kpkts_rate: 0</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ingress_policing_rate:
<b>800</b></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">...<u></u><u></u></span></p>
</div>
<div>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># tc -d filter show dev vnet9 parent ffff:</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">filter protocol all pref 49 basic chain 0 </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">filter protocol all pref 49 basic chain 0 handle 0x1 </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">      
</span></span><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">action order 1:  police 0x1 rate<b> 800Kbit burst 256Kb</b> mtu 64Kb action drop/pipe overhead 0b linklayer unspec </span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">      
</span></span><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">ref 1 bind 1</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)"># tc -d class show  dev vnet9
</span><span lang="EN-US"><u></u><u></u></span></p>
<p style="margin:0cm 0cm 0.0001pt"><span lang="EN-US" style="font-size:10.5pt;font-family:Arial,"sans-serif";color:rgb(51,51,51)">(no outputs)</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><br>
<br>
-------<br>
Best Regards,<br>
Yalan Zhang<br>
IRC: yalzhang<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Mon, Jul 12, 2021 at 3:43 PM Michal Pr</span>í<span lang="EN-US">vozn</span>í<span lang="EN-US">k <<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>> wrote:<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><span lang="EN-US">On 7/9/21 3:31 PM, Jinsheng Zhang (</span>张金生<span lang="EN-US">)-</span>云服务集团<span lang="EN-US"> wrote:<br>
> Here is my signed-off-by line<br>
> <br>
> Signed-off-by: <a href="mailto:zhangjl02@inspur.com" target="_blank">zhangjl02@inspur.com</a><br>
> <br>
> Thanks again for reminding:) .<br>
<br>
Perfect.<br>
<br>
Reviewed-by: Michal Privoznik <<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>><br>
<br>
and pushed. Congratulations on your first libvirt contribution!<br>
<br>
Michal<u></u><u></u></span></p>
</div>
</div>

</blockquote></div>