From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Arnon Warshavsky <arnon@qwilt.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Missing prefetch in non-vector rx function
Date: Thu, 24 Sep 2015 23:28:15 +0200 [thread overview]
Message-ID: <1510891.FFAirmlrxl@xps13> (raw)
In-Reply-To: <CAKy9EB3YkqsF5A6KcK+vMN0oLSjXWLsmJ8kwoAzsiiDiWPuMLA@mail.gmail.com>
Hi,
2015-09-24 22:10, Arnon Warshavsky:
> Moving from dpdk 1.5 to 2.0 we observed a PPS performance degradation of
> ~30%.
> After chasing this one for a while we found the problem:
>
> A) Between the 2 versions rte_mbuf was increased in size from 1 to 2 cache
> lines.
> B) The standard (non-vector) rx function does not perform a prefetch for
> the 2nd cache line of the mbuf (I see this bug exists in 2.1 as well) and
> it touches it setting the next pointer to NULL.
> I tested it in ixgbe, but it looks like it exists in all drivers in the
> *_rx_recv_pkts() and *_rx_recv_scattered_pkts() functions.
> Once added the prefetch for the 2nd line, we were back in our previous
> numbers.
>
> I believe this one slipped under the radar as the vector mode is now the
> default.
> We stumbled into it because we work in non-vector mode due to a different
> mempool bug in 2.0 which sometimes crashes the application upon port stop.
Big thanks for this double bug report!
> I have 2 questions
> 1)
> Could anyone tell if the regression tests are comparing performance while
> building DPDK with the default set of flags alone, or are multiple options
> examined?
There is no official regression test of performance.
Though Intel is probably monitoring it for their hardware.
By the way, it would be a good improvement to have such standard benchmark
in DTS or elsewhere.
> 2)
> How are issues like that being tracked and later associated to a patch?
In general, it is followed by discussion and a patch on this mailing list.
The patch must track the fixed issue in the release notes.
In order to give better exposure of current bugs we could instantiate a
bug tracker. I think it's time to think about it seriously. Let's discuss
about the possible solutions in another thread.
Thanks again to you and all the Qwilt team.
PS: it would be nice to hear about your DPDK deployment and results
prev parent reply other threads:[~2015-09-24 21:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-24 19:10 Arnon Warshavsky
2015-09-24 21:28 ` Thomas Monjalon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1510891.FFAirmlrxl@xps13 \
--to=thomas.monjalon@6wind.com \
--cc=arnon@qwilt.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).