RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1469365 - The ovs-dpdk pmd threads are re-created when new vm with vhostuser port is atttached.
Summary: The ovs-dpdk pmd threads are re-created when new vm with vhostuser port is at...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openvswitch
Version: 7.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Aaron Conole
QA Contact: Christian Trautman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-11 06:32 UTC by Peng Liu
Modified: 2017-10-12 21:42 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-25 01:57:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peng Liu 2017-07-11 06:32:20 UTC
Description of problem:
The ovs-dpdk pmd threads are re-created when new vm with vhostuser port is atttached.

Version-Release number of selected component (if applicable):
openvswitch-2.6.1-4.1.git20161206.el7.x86_64
dpdk-16.11-5.el7fdb.x86_64

How reproducible:
It's reproducible everytime

Steps to Reproduce:
1. start ovs with following other_config
{dpdk-init="true", dpdk-lcore-mask="0xc", dpdk-socket-mem="2048,2048", pmd-cpu-mask="0xf0"}
2. check the LWP/TID of the pmd thread.
# ps -eL | grep pmd
   6748  109368 ?        00:00:13 pmd231
   6748  109369 ?        00:00:13 pmd230
# ovs-appctl dpif-netdev/pmd-rxq-show                                                        
pmd thread numa_id 0 core_id 4:
        isolated : false
        port: dpdk1     queue-id: 0
        port: vhud13fa949-7c    queue-id: 0
pmd thread numa_id 0 core_id 6:
        isolated : false
        port: dpdk0     queue-id: 0
        port: vhue0018a81-1a    queue-id: 0

3. boot up a vm with a vhostuser interface.

4. check the LWP/TID of the pmd thread.
#ps -eL | grep pmd
   6748  109510 ?        00:05:55 pmd233
   6748  109511 ?        00:05:55 pmd232

# ovs-appctl dpif-netdev/pmd-rxq-show                                                        
pmd thread numa_id 0 core_id 4:
        isolated : false
        port: dpdk1     queue-id: 0
        port: vhud13fa949-7c    queue-id: 0
        port: vhu0b3ae154-42    queue-id: 0
pmd thread numa_id 0 core_id 6:
        isolated : false
        port: dpdk0     queue-id: 0
        port: vhue0018a81-1a    queue-id: 0
        port: vhu4a4c10d1-86    queue-id: 0

Actual results:
The TID of PMD thread has changed. It means the PMD threads were re-created.

Expected results:
The thread should not be re-created, otherwise there will cause packet loss to existing ports, which should be avoid in NFV use case.


Additional info:

Comment 3 Aaron Conole 2017-07-19 17:54:13 UTC
Can you rerun this with 2.7?  The pmd rebalancing / restarting code was reworked for the 2.7 series.

Comment 4 Peng Liu 2017-07-20 04:47:01 UTC
(In reply to Aaron Conole from comment #3)
> Can you rerun this with 2.7?  The pmd rebalancing / restarting code was
> reworked for the 2.7 series.

Checked with openvswitch-2.7.1-4.git20170710.el7fdb.x86_64, no such issue. PMDs were not recreated.

Comment 5 Aaron Conole 2017-07-21 14:09:21 UTC
Given that OvS 2.7 does have the refactored pmd thread construction, is it possible to close this as fixed in latest?

Comment 6 Peng Liu 2017-07-25 01:57:36 UTC
Ok.
(In reply to Aaron Conole from comment #5)
> Given that OvS 2.7 does have the refactored pmd thread construction, is it
> possible to close this as fixed in latest?


Note You need to log in before you can comment on or make changes to this bug.