首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“ovs”命令是什么意思?

“ovs”命令是什么意思?
EN

Stack Overflow用户
提问于 2019-02-25 10:15:15
回答 1查看 655关注 0票数 1

当我执行‘ovs’命令时,我得到:

代码语言:javascript
复制
$ ovs-dpctl show
system@ovs-system:
    lookups: hit:37994604 missed:218759 lost:0
    flows: 5
    masks: hit:39862430 total:5 hit/pkt:1.04
    port 0: ovs-system (internal)
    port 1: vbr0 (internal)
    port 2: gre_sys (gre)
    port 3: net2

我找到了一些解释:

代码语言:javascript
复制
[-s | --statistics] show [dp...]
              Prints a summary of configured datapaths, including their  data‐
              path  numbers  and  a  list of ports connected to each datapath.
              (The local port is identified as port 0.)  If -s or --statistics
              is specified, then packet and byte counters are also printed for
              each port.

              The datapath numbers consists of flow stats and mega  flow  mask
              stats.

              The  "lookups"  row  displays three stats related to flow lookup
              triggered by processing incoming packets in the datapath.  "hit"
              displays number of packets matches existing flows. "missed" dis‐
              plays the number of packets not matching any existing  flow  and
              require  user space processing.  "lost" displays number of pack‐
              ets destined for user space process but subsequently dropped be‐
              fore  reaching  userspace. The sum of "hit" and "miss" equals to
              the total number of packets datapath processed.

              The "flows" row displays the number of flows in datapath.

              The "masks" row displays the mega flow mask stats. This  row  is
              omitted  for datapath not implementing mega flow. "hit" displays
              the total number of masks visited for matching incoming packets.
              "total" displays number of masks in the datapath. "hit/pkt" dis‐
              plays the average number of masks visited per packet; the  ratio
              between "hit" and total number of packets processed by the data‐
              path.

              If one or more datapaths  are  specified,  information  on  only
              those  datapaths  are  displayed.  Otherwise, ovs-dpctl displays
              information about all configured datapaths.

我的问题是:

  1. 传入数据包的总数是否等于(lookups.hit + lookups.missed)?
  2. 如果传入数据包的总数等于(lookups.hit + lookups.missed),为什么masks.hit:39862430的值大于(lookups.hit:37994604 + lookups.missed:218759)?
  3. 为什么masks.hit/pkt比大于1?什么区间内的合理值是多少?
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-02-26 06:16:00

  1. 传入数据包的总数是否等于(lookups.hit + lookups.missed)?

是。(加上lookups.lost,但我看到对你来说是零。)

  1. 如果传入数据包的总数等于(lookups.hit + lookups.missed),为什么masks.hit:39862430的值大于(lookups.hit:37994604 + lookups.missed:218759)?

masks.hit是为处理已处理的所有数据包而执行的哈希表查找数。给定的数据包可能需要masks.total查找。

  1. 为什么masks.hit/pkt比大于1?什么区间内的合理值是多少?

该比率不能小于1.00,因为这意味着处理数据包甚至不需要一次查找。1.04的比率是非常好的,因为这意味着大多数数据包只进行一次查找即可处理。比率越高越糟。

本·普法夫(blp@ovn.org)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54863903

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档