From: Alex Markuze <alex@weka.io>
To: Kai Zhang <zhang.4522@osu.edu>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] About round trip latency with DPDK
Date: Thu, 24 Jul 2014 11:36:54 +0300 [thread overview]
Message-ID: <CAKfHP0VacR8OHC-jyvOLyxc+8cUcefqQhwUD8V3hUxhJUDfgbQ@mail.gmail.com> (raw)
In-Reply-To: <CACKSPmcELVBJRK0ZYyy1r7MJJCGmq4kfY5==TGKD2LLKuTDJ-A@mail.gmail.com>
Kai, the latency depends both on what you do and how much you send.
A bigger packet will take longer time to transmit.
Now that thats out of the way I propose you use perf to see how busy
is the cpu and with what.
FYI, ~10us is something that can be achieved with netperf with a
kernel driver based on interrupts.
The 0.7m latency indicates that something is wrong with your system.
Basically make sure that the cpu is busy with polling only and a small
percent handling the messages.
Hope this helps somehow.
On Wed, Jul 23, 2014 at 10:24 PM, Kai Zhang <zhang.4522@osu.edu> wrote:
> Hello,
>
> I am trying to develop a low-latency application, and I measured the round
> trip latency with DPDK. However I got an average of 650~720 microseconds
> round-trip latency with Intel 82599 10Gbps NIC.
>
> The experiment method is as follows. 2 machines (A and B) are connected
> back-to-back. Machine A embeds a time stamp in the packet and sends to B, B
> (use testpmd or l2fwd) forwards packets back to A immediately (A->B->A),
> and A receives packets and calculates time difference between current time
> and the embedded time stamp. (code :
> https://github.com/kay21s/dpdk/tree/master/examples/recv_send)
>
> I have 3 machines, and performing the above experiment on each pair leads
> to a similar latency. However, previous academic papers report that DPDK
> offers only a few 10 microseconds round trip latency.
>
> What's the round trip latency DPDK is supposed to offer? Have you measured
> it at Intel?
>
> Thanks a lot,
> Kai
next prev parent reply other threads:[~2014-07-24 8:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-23 19:24 Kai Zhang
2014-07-24 8:36 ` Alex Markuze [this message]
2014-07-24 12:48 Wodkowski, PawelX
2014-07-25 14:21 ` Kai Zhang
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=CAKfHP0VacR8OHC-jyvOLyxc+8cUcefqQhwUD8V3hUxhJUDfgbQ@mail.gmail.com \
--to=alex@weka.io \
--cc=dev@dpdk.org \
--cc=zhang.4522@osu.edu \
/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).