On Thu, Nov 11, 2021 at 3:22 PM Sriharsha Basavapatna
<sriharsha.basavapa...@broadcom.com> wrote:
>
> Hi Ilya,
>
> On Wed, Nov 10, 2021 at 11:31 PM Ilya Maximets <i.maxim...@ovn.org> wrote:
> >
> > Hi, Harsha.
> >
> > I was thinking about 3x performance drop due to enabling
> > of experimental API that you reported during the meeting
> > today.  I just want to clarify one thing to be sure that
> > you're not making the same mistake as I did.
> >
> > If you're just building OVS without specifying CFLAGS,
> > binaries will be compiled with the default '-g -O2'.
> > However, any manipulations with CLFAGS will result with
> > overriding of these default flags.  Therefore,
> > ./configure CLFAGS='-DALLOW_EXPERIMENTAL_API' will result
> > in building OVS with the compiler default optimization
> > level, which is -O0.  On my setup in a simple test,
> > -O2 works approximately 3-4x faster than -O0.  So, I'm
> > wondering if you just didn't add '-O2' while building
> > with experimental API, so the results are so low?
> > The correct way to configure would be:
> > ./configure CLFAGS='-DALLOW_EXPERIMENTAL_API -g -O2'
> >
> > I made this mistake several times in the past.  And the
> > most recent time it was today. :)
>
> Thanks for this information. We have been using '-g -O3' (with and
> without ALLOW_EXPERIMENTAL_API) . We will run the tests with '-g -O2'
> and see if there's any difference.
>
> Thanks,
> -Harsha

We see some improvement, but not comparable to numbers without the
'experimental' flag (non tunnel config). For example, at 32 flows and
with 64B packet size:
1)  -g -O2:    cycles: 850, pps: 3.7M
2)  -g -O3:    cycles: 1100, pps: 2.8M
3)  expected:    cycles: 350, pps: 9M

I'm working on a patch that almost meets the expected numbers. I will
send it out for review after more testing.
Thanks,
-Harsha
> >
> >
> > Best regards, Ilya Maximets.

-- 
This electronic communication and the information and any files transmitted 
with it, or attached to it, are confidential and are intended solely for 
the use of the individual or entity to whom it is addressed and may contain 
information that is confidential, legally privileged, protected by privacy 
laws, or otherwise restricted from disclosure to anyone else. If you are 
not the intended recipient or the person responsible for delivering the 
e-mail to the intended recipient, you are hereby notified that any use, 
copying, distributing, dissemination, forwarding, printing, or copying of 
this e-mail is strictly prohibited. If you received this e-mail in error, 
please return the e-mail to the sender, delete it from your computer, and 
destroy any printed copy of it.
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to