On Tue, Feb 26, 2019 at 10:18:28AM +0800, 舒fishu wrote:
> Hi.
> 
> When I execute the 'ovs-dpctl show' command, I got:
> ```
> $ 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
> ```
> But I still have some questions:
> 
>  1. Is the total number of incoming packets equal to (lookups.hit +
>     lookups.missed)?

Yes.  (Plus lookups.lost except that I see that's zero for you.)

>  2. If the total number of incoming packets is equal to
>     (lookups.hit + lookups.missed), why is the value of masks.hit:39862430
>     greater than (lookups.hit:37994604 + lookups.missed:218759)?

masks.hit is the number of hash table lookups that were executed to
process all of the packets that were processed.  A given packet might
require up to masks.total lookups.

>  3. Why is the masks.hit/pkt ratio greater than 1? What is the reasonable
>     value in what interval?

The ratio cannot be less than 1.00 because that would mean that
processing a packet didn't require even a single lookup.  A ratio of
1.04 is very good because it means that most packets were processed with
only a single lookup.  Higher ratios are worse.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to