Neutron SRIOV agent loop iteration exceeding polling interval, causing high CPU usage in neutron-rootwrap-daemon

Bug #1823385 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Undecided
Rodolfo Alonso

Bug Description

According to [1], the problem is due to the excessive maximum number of resources granted to the container. In [2] this number was limited to 1024 for neutron-dhcp, neutron-l3 and neutron-ovs-agent containers, but we are experiencing the same problem in the neutron-sriov-agent container.

The following code was tested (execute "ip link show") using rootwrap and privsep [3]:
- ulimit unlimited: 800ms with rootwrap
- ulimit 4096: 30ms

[1] https://bugs.launchpad.net/oslo.rootwrap/+bug/1760471
[2] https://review.openstack.org/#/c/559268/
[3] http://paste.openstack.org/show/748949/

Changed in tripleo:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/650406

Changed in tripleo:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/650416

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/650418

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/650406
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=b01a57491e8cebd4d6a4117e00740edba59f9b61
Submitter: Zuul
Branch: master

commit b01a57491e8cebd4d6a4117e00740edba59f9b61
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Apr 5 18:00:49 2019 +0000

    Set ulimit 16384 for Neutron SR-IOV container

    Same a in [1], rootwrap takes too much time if ulimit is the
    default value. In the related bug, the execution time drops
    from 800ms to 30ms if ulimit is set to 16384.

    [1] https://review.openstack.org/#/c/559268/

    Change-Id: I18de5b733066853a8c057596e85299048cee8604
    Closes-Bug: #1823385

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/rocky)

Reviewed: https://review.openstack.org/650416
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=12543005b11cd8f2873cea48123ed190d5c8327b
Submitter: Zuul
Branch: stable/rocky

commit 12543005b11cd8f2873cea48123ed190d5c8327b
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Apr 5 18:00:49 2019 +0000

    Set ulimit 16384 for Neutron SR-IOV container

    Same a in [1], rootwrap takes too much time if ulimit is the
    default value. In the related bug, the execution time drops
    from 800ms to 30ms if ulimit is set to 16384.

    [1] https://review.openstack.org/#/c/559268/

    Change-Id: I18de5b733066853a8c057596e85299048cee8604
    Closes-Bug: #1823385

tags: added: in-stable-rocky
tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/queens)

Reviewed: https://review.openstack.org/650418
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=35b4bf6e039c132f32cd107753938fecc79ec340
Submitter: Zuul
Branch: stable/queens

commit 35b4bf6e039c132f32cd107753938fecc79ec340
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Apr 5 18:00:49 2019 +0000

    Set ulimit 16384 for Neutron SR-IOV container

    Same a in [1], rootwrap takes too much time if ulimit is the
    default value. In the related bug, the execution time drops
    from 800ms to 30ms if ulimit is set to 16384.

    [1] https://review.openstack.org/#/c/559268/

    Change-Id: I18de5b733066853a8c057596e85299048cee8604
    Closes-Bug: #1823385
    (cherry picked from commit 12543005b11cd8f2873cea48123ed190d5c8327b)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.5.0

This issue was fixed in the openstack/tripleo-heat-templates 10.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 9.4.0

This issue was fixed in the openstack/tripleo-heat-templates 9.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.4.0

This issue was fixed in the openstack/tripleo-heat-templates 8.4.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.