Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

5.5. 批量网络数据包

在传输大量路径的配置中,在将数据包提交到内核前,进行批处理数据包可能会提高缓存利用率。
要配置可以批处理的最大数据包数,其中 N 是要批处理的最大数据包数:
# ethtool -C $tap rx-frames N
要为 type='bridge'type='network' 接口提供对 tun/tap rx 批处理的支持,请向域 XML 文件添加类似如下的片段。
...
<devices>
  <interface type='network'>
    <source network='default'/>
    <target dev='vnet0'/>
      <coalesce>
        <rx>
          <frames max='7'/>
        </rx>
      </coalesce>
  </interface>
</devices>