首页 > 其他分享 >网络IO控制——Quality of Service

网络IO控制——Quality of Service

时间:2023-08-27 10:33:59浏览次数:37  
标签:QoS Service burst inbound average peak IO interface Quality


早上没吃饭,坐在公司里测试,等结果等的太无聊,翻译一下libvirt上的关于网络IO控制的一点内容。希望翻译完,就可以吃饭了。

原文如下:

...
  <devices>
    <interface type='network'>
      <source network='default'/>
      <target dev='vnet0'/>
      <bandwidth>
        <inbound average='1000' peak='5000' floor='200' burst='1024'/>
        <outbound average='128' peak='256' burst='256'/>
      </bandwidth>
    </interface>
  <devices>
  ...



This part of interface XML provides setting quality of service. Incoming and outgoing traffic can be shaped independently.


这部分XML提供QoS设置,incoming和outgoing事务可以被单独处理。(QoS其实就是网络IO控制,流量分为进入和流出的流量)

The bandwidth element can have at most one inbound and at most one outbound child elements.

bandwidth标签至多有一个inbound和一个outbound子标签。

Leaving any of these children element out result in no QoS applied on that traffic direction.

不设置哪个子标签,会导致在该事务方向上没有QoS服务的应用。

So, when you want to shape only domain's incoming traffic, use inbound only, and vice versa.

所以,当你只想要处理incoming事务,只使用inbound就可以了,反之亦然。

Each of these elements have one mandatory attribute average (or floor as described below).

每一个标签都有一个强制的属性average。

average specifies average bit rate on the interface being shaped. 

average指定了在interface上的平均的比特率。

Then there are two optional attributes: peak, which specifies maximum rate at which interface can send data, and burst, amount of bytes that can be burst at peak speed.

然后有两个可选的属性:peak,指定interface可以发送数据的最大速率(即峰值),burst,指定在峰值速度时能传送的最大数据量。

Accepted values for attributes are integer numbers. The units for average and peak attributes are kilobytes per second, and for the burst just kilobytes.

可接受的属性值必须是整数。average和peak的单位是kb/s,burst单位是kb.

Since 0.9.4 The inbound can optionally have floor attribute. This is there for guaranteeing minimal throughput for shaped interfaces.

从0.9.4版本开始,inbound又多了一个可选的属性floor,它的出现是为了保证interfaces的最小吞吐量。

This, however, requires that all traffic goes through one point where QoS decisions can take place.

但是,这个属性需要所有的事务都从QoS服务能够起作用的点(方向)通过。(不太明白这句话的意思)

That's why this attribute works only for virtual networks for now (that is <interface type='network'/> with a forward type of route, nat, or no forward at all).

这是为什么这个属性只能在虚拟网络中工作的原因。

Moreover, the virtual network the interface is connected to is required to have at least inbound QoS set (average at least). Moreover, with floor attribute users don't need to specify average. However, peak and burst attributes still require average.

而且,interface所连接的虚拟网络要求至少设置inbound(至少设置average),并且,如果设置floor的话,就不需要指定average了。然而,peak和burst属性仍然需要配置average.

Currently, linux kernel doesn't allow ingress qdiscs to have any classes therefore floor can be applied only on inbound and not outbound. Since 1.0.1

现在,linux内核不允许 ingress qdiscs 有任何的classes,所以floor只能在inbound中应用,而不能在outbound中应用。


晕,翻译完了,饭还没来,饿滴慌啊。。。。


标签:QoS,Service,burst,inbound,average,peak,IO,interface,Quality
From: https://blog.51cto.com/u_5173797/7251105

相关文章

  • Stable Diffusion Web UI页面CCS无效问题
    安装后进入http://127.0.0.1:7860,StableDiffusionWebUI页面CCS好像没有加载成功,显示如下: 最后发现,在webui-user.bat加入share参数后,页面正常了setCOMMANDLINE_ARGS=--share ......
  • Stable diffusion webui炼指定的人物模型
    Stablediffusionwebui炼指定的人物模型1.打开自己的sd服务:修改自己的设置我本地的:http://192.168.1.4:7862/?__theme=dark修改设置--->训练:这个推荐勾上,会屏蔽vae文件,不然的话会出现很多问题反推提示词这里,不要勾选按字母排序了,取消勾选deepbooru上面的值选大过滤的标......
  • 新版Jadx 加载dex报错 jadx.plugins.input.dex.DexException:Bad checksum 解决方法
    <table><tr><tdbgcolor=orange>本文所有教程及源码、软件仅为技术研究。不涉及计算机信息系统功能的删除、修改、增加、干扰,更不会影响计算机信息系统的正常运行。不得将代码用于非法用途,如侵立删!</td></tr></table>新版Jadx加载dex报错jadx.plugins.input.dex.DexException:B......
  • react-pdf在部分iOS手机上加载pdf失败问题解决
    最近项目快结束了,测试提了一个bug,iOS手机上加载pdf一直在转圈,加载不出来内容。看到这个bug,在电脑上和安卓手机上没有问题,iOS手机中打开确实又问题,初步确定为app问题。我们的项目是集成在客户的app里的,可能是app内的WebView和Safari有一些差异导致的问题。首先直接在iOS手机上用a......
  • 新版Jadx 加载dex报错 jadx.plugins.input.dex.DexException:Bad checksum 解决方法
    本文所有教程及源码、软件仅为技术研究。不涉及计算机信息系统功能的删除、修改、增加、干扰,更不会影响计算机信息系统的正常运行。不得将代码用于非法用途,如侵立删!新版Jadx(1.6+)加载dex报错jadx.plugins.input.dex.DexException:Badchecksum解决方法环境win10Jadx1.6......
  • 【AL&MT】Decision Tree
    1Introductionusualclassindecisiontree:ID3,C4.5,CARTID3:/InformattionEntropy,基于信息熵和信息增益C4.5:/信息增益率,baseontheID3CART:/基尼系数,usingregressorclass2achieving1.1ID3decisiontreeD-trainingset,a-attribut......
  • 【主席树】CF813 E. Army Creation
    【主席树】CF813E.ArmyCreation题目链接:https://codeforces.com/contest/813/problem/E题意多次询问,求一个区间内,所有数个数的总和,但相同的数最多被计算k次,强制在线。题解这道题和牛客一道题很像,是那道题的加强版,链接在这:题解链接。那道题可以离线,所以离线处理+树状数组......
  • This TensorFlow binary is optimized to use available CPU instructions in perform
    ThisTensorFlowbinaryisoptimizedtouseavailableCPUinstructionsinperformance-criticaloperations.Toenablethefollowinginstructions:AVX2FMA,inotheroperations,rebuildTensorFlowwiththeappropriatecompilerflags.   这是TensorFlow库在安......
  • 优雅地判空(NullPointerException)
    空指针出现场景:A.对象引用为null:当一个对象引用为null时,试图使用该对象的成员(如方法或字段)就会导致空指针异常。B.对象属性为null:当一个类的属性没有被初始化或者赋值为null,在访问该属性时也会导致空指针异常。C.数组为null:当一个数组引用为null时,试图访问数组的元素也会导致空指针......
  • jdk1.8 AudioSystem 无法关闭流的问题
    问题首先说明JDK版本,EclipseTemurin1.8.0_382,写音频处理时遇到一个文件流无法关闭的问题。具体是javax.sound.sampled.AudioSystem#getAudioInputStream(java.io.File)写在try-with-resources里,在try-with-resources结束的代码块外删除文件显示文件被占用,最后在stackov......