Bug 1776816
| Summary: | [ovs2.11][RHEL7.7] PF/VF Port statistics get over-run in OVS offload datapath | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | Pradipta Kumar Sahoo <psahoo> |
| Component: | openvswitch2.11 | Assignee: | Kevin Traynor <ktraynor> |
| Status: | MODIFIED --- | QA Contact: | qding |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | FDB 18.11 | CC: | apevec, cfontain, chrisw, ctrautma, jhsiao, mleitner, mpattric, ralongi |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | openvswitch2.17-2.17.0-70.el8fdp, openvswitch2.17-2.17.0-61.el9fdp, openvswitch3.1-3.1.0-2.el8fdp, openvswitch3.1-3.1.0-1.el9fdp | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Pradipta Kumar Sahoo
2019-11-26 12:43:16 UTC
I still noticed the same behaviour in OSP16.1/16.2 ovs2.13. Updating the log for further review. - OVS offload datapath counter usually set with 10 digits. “packets:4279836592” - In throughput test, we noticed the datapath packet counter statistics get over run once it reached out ~5 Billion (~4200000000). - We would expect the counter should reach to 9-Billion (~9999999999) before reset. - Also, we need to think about the ideal size of the packet counter when it is running over 100G network bandwidth. http://pbench.perf.lab.eng.bos.redhat.com/results/perf122.perf.lab.eng.bos.redhat.com/trafficgen_RHOSP16.1-RHEL8.2-OVS-OFFLOAD-PVP-Update-LossTests_tg:trex_r:none_fs:64,128,256,512,1024,1500_nf:1024_fm:si_td:bi_ml:0.002,0.0005,0.0001_tt:bs__2020-09-25T15:10:19/1-bidirectional-64B-1024flows-0.002pct_drop/sample3/tools-default/nfv-compute-rt-offload-0/openvswitch/ovs-offload-stats.txt Hello Pradipta, Good find on this. I've done a little investigation, and found that until recently, tc would only produce a 32 bit variable to indicate number of packets from the Linux kernel. These would max out at 4294967295 and then roll over. However, in late 2019 an extension was added to make 64bit variables accessible. I will investigate making this packet counter available to from dump-flows instead of the 32bit one. This issue only affects offloaded datapaths, as OVS internals use 64bit numbers to represent packet counts. shift to qding Thanks Mike. The patch merged here: https://github.com/openvswitch/ovs/commit/006e1c6dbfbadf474c17c8fa1ea358918d371588 I have updated the Fixed In Version field with the first downstream releases containing this patch. |