Bug 1749840 - [OVN]cpu is high after create a lot of logical ports
Summary: [OVN]cpu is high after create a lot of logical ports
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: openvswitch2.11
Version: FDP 19.F
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Flavio Leitner
QA Contact: Jianlin Shi
URL:
Whiteboard:
: 1749610 (view as bug list)
Depends On: 1748731
Blocks: 1749610
TreeView+ depends on / blocked
 
Reported: 2019-09-06 14:45 UTC by haidong li
Modified: 2020-02-12 11:20 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1748731
Environment:
Last Closed: 2019-12-12 03:25:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Numan Siddique 2019-09-09 09:46:41 UTC
I logged into the setup and looked into  a bit.
Something seems wrong with ovs-vswitchd. ovn-controller is breaking connection with the ovs-vswitchd (openflow connection) and it is reconnecting all the time.
That is why we are seeing high cpu usage in ovn-controller.
Looks like we need to investigate ovs-vswitchd and see what is going on there.

I don't think this is OVN issue.

Comment 4 Jianlin Shi 2019-12-05 10:06:00 UTC
I have tried with dell-per740-12.rhts.eng.pek2.redhat.com and dell-per730-40.rhts.eng.pek2.redhat.com to reproduce the issue. the adding of logical ports are still in progress. but the cpu usage for ovs-vswitched is already very high. you can log in with root/redhat

Comment 5 Flavio Leitner 2019-12-05 13:51:04 UTC
Hi,

Looks like runtest.sh is trying to add one port at a time using ovs-vsctl command and already added 1762 ports.
The problem is that every time a port is added, OvS has to reconfigure itself, flush data like FDB and so on.
The load issue is an old complain and we already have a few bugs about that, but the questions remain open.

See: https://bugzilla.redhat.com/show_bug.cgi?id=1731165

I am not sure about the goal of the test. If you just want to add as many ports as possible to run other tests
maybe the batch solution proposed in the BZ above solves the issue.

Thanks
fbl

Comment 6 Jianlin Shi 2019-12-06 00:45:10 UTC
(In reply to Flavio Leitner from comment #5)
> Hi,
> 
> Looks like runtest.sh is trying to add one port at a time using ovs-vsctl
> command and already added 1762 ports.
> The problem is that every time a port is added, OvS has to reconfigure
> itself, flush data like FDB and so on.
> The load issue is an old complain and we already have a few bugs about that,
> but the questions remain open.
> 
> See: https://bugzilla.redhat.com/show_bug.cgi?id=1731165
> 
> I am not sure about the goal of the test. If you just want to add as many
> ports as possible to run other tests
> maybe the batch solution proposed in the BZ above solves the issue.
> 
> Thanks
> fbl

confirmed that cpu usage would be low after finish adding ports.
but it's really slow to add mass of ports, any bug to track that?

Comment 7 Flavio Leitner 2019-12-06 12:33:13 UTC
(In reply to Jianlin Shi from comment #6)
> confirmed that cpu usage would be low after finish adding ports.
> but it's really slow to add mass of ports, any bug to track that?

The recommendation is to add ports in batches then.
It's one single operation inside OvS to add the batch.

fbl

Comment 8 Jianlin Shi 2019-12-08 04:24:47 UTC
(In reply to Flavio Leitner from comment #7)
> (In reply to Jianlin Shi from comment #6)
> > confirmed that cpu usage would be low after finish adding ports.
> > but it's really slow to add mass of ports, any bug to track that?
> 
> The recommendation is to add ports in batches then.
> It's one single operation inside OvS to add the batch.
> 
> fbl

ok

Comment 9 Flavio Leitner 2019-12-10 20:01:54 UTC
(In reply to Jianlin Shi from comment #8)
Can we close the bug?
fbl

Comment 10 Jianlin Shi 2019-12-11 02:35:07 UTC
(In reply to Flavio Leitner from comment #9)
> (In reply to Jianlin Shi from comment #8)
> Can we close the bug?
> fbl

yes, please close it per comment 7

Comment 11 Flavio Leitner 2019-12-12 03:25:40 UTC
Thank you!
fbl

Comment 12 Flavio Leitner 2020-02-12 11:20:10 UTC
*** Bug 1749610 has been marked as a duplicate of this bug. ***


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