Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 1726579

Summary: [RFE] Add statistics to track number of times the vhost library wakes up the VM
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Eelco Chaudron <echaudro>
Component: openvswitch2.11Assignee: Eelco Chaudron <echaudro>
Status: CLOSED ERRATA QA Contact: Jean-Tsung Hsiao <jhsiao>
Severity: low Docs Contact:
Priority: low    
Version: FDP 20.ACC: ctrautma, fbaudin, gmuthukr, jhsiao, kfida, qding, ralongi, tli, vchundur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openvswitch2.11-2.11.0-37.el7fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1796583 (view as bug list) Environment:
Last Closed: 2020-03-10 09:35:30 UTC 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:

Comment 1 Eelco Chaudron 2019-07-03 08:38:58 UTC
Current idea is to add a new xstats entry to vhost_xstats_pkts, for example, VHOST_KICKED, and then increase every time vhost_vring_call_packed() or vhost_vring_call_split() wakes up the guest.

This data is then available in OVS and can be displayed with the existing interface stats.

Comment 2 Eelco Chaudron 2019-08-28 14:55:12 UTC
Sent a patch upstream for DPDK, http://mails.dpdk.org/archives/dev/2019-August/141710.html as unfortunately this can not be done from the OVS side only.

Once this patch gets approved I can propose a patch for the OVS dpdk-next branch, once it has moved to 2.12 (due to some dependencies in the statistics).

Comment 3 Eelco Chaudron 2019-10-25 14:04:13 UTC
Sent out a v2 patch for OVS: https://mail.openvswitch.org/pipermail/ovs-dev/2019-October/363883.html

Comment 4 Eelco Chaudron 2019-11-19 10:24:32 UTC
Waiting for dpdk-latest rebase before I can send out an updated v3.

Comment 5 Eelco Chaudron 2019-11-25 14:49:45 UTC
dpdk-latest branch got updated, sent out a v3:

https://mail.openvswitch.org/pipermail/ovs-dev/2019-November/365122.html

Comment 6 Eelco Chaudron 2019-12-12 03:06:29 UTC
Sent path after rebasing it to master with DPDK 19.11

https://mail.openvswitch.org/pipermail/ovs-dev/2019-December/365924.html

Comment 9 Jean-Tsung Hsiao 2020-02-07 23:24:56 UTC
Hi Elco,
It's not working.
Please review the log below.
Thanks!
Jean

[root@netqe7 jhsiao]# ovs-appctl coverage/read-counter vhost_notification
"coverage/read-counter" is not a valid command (use "list-commands" to see a list of valid commands)
ovs-appctl: ovs-vswitchd: server returned an error

[root@netqe7 jhsiao]# rpm -q openvswitch2.11
openvswitch2.11-2.11.0-47.el7fdp.x86_64
[root@netqe7 jhsiao]# uname -r
3.10.0-1062.el7.x86_64
[root@netqe7 jhsiao]#

Comment 11 Eelco Chaudron 2020-02-10 10:01:32 UTC
Hi Jean, the "ovs-appctl coverage/read-counter" command is not supported in 2.11. You need to use the ovs-appctl coverage/show command, however, be warned that the value will only be displayed if the event has happened.

Comment 12 Jean-Tsung Hsiao 2020-02-10 19:18:56 UTC
The RFE has been verified:

root@netqe7 ~]# ovs-appctl coverage/show  | grep -i vhost
vhost_notification         0.0/sec     0.000/sec        0.0000/sec   total: 18481824
[root@netqe7 ~]# rpm -q openvswitch2.11
openvswitch2.11-2.11.0-47.el7fdp.x86_64
[root@netqe7 ~]# uname -r
3.10.0-1062.el7.x86_64
[root@netqe7 ~]#

Comment 14 errata-xmlrpc 2020-03-10 09:35:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0743