[dpdk-dev] About round trip latency with DPDK

2014-07-25 Thread Kai Zhang
Thanks! I have found the problem. It is that I used clock_gettime() to measure the latency. With rte_rdtsc(), the round trip latency is measured to be less than 10 microseconds. Thanks very much, Kai On Thu, Jul 24, 2014 at 8:48 AM, Wodkowski, PawelX < pawelx.wodkowski at intel.com> wrote: > R

[dpdk-dev] About round trip latency with DPDK

2014-07-24 Thread Wodkowski, PawelX
Refer to DPDK getting started guide paragraph 5.4. It might help. Also it might be easier to do write simple application that send a packet on port 1 and rx it on port 2 in separate threads on separate cores (simple physical loop). You can then add timestamp and send packet back and see how long

[dpdk-dev] About round trip latency with DPDK

2014-07-24 Thread Alex Markuze
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 ba

[dpdk-dev] About round trip latency with DPDK

2014-07-23 Thread Kai Zhang
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