DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] l2fwd-event not fully functional with 'dsw'
@ 2019-12-29 19:45 Liron Himi
  2019-12-30 10:51 ` Mattias Rönnblom
  0 siblings, 1 reply; 2+ messages in thread
From: Liron Himi @ 2019-12-29 19:45 UTC (permalink / raw)
  To: Mattias Rönnblom
  Cc: Yuri Chipchev, Jerin Jacob Kollanukkaran, dpdk-dev, Liron Himi

Hi Mattias,

Recently we tried to run the new l2fwd-event examples using the 'dsw' as the evendev.
We noticed that only 4096 packets were sent back to the ethdev.
Only when we changed both 'dequeue_depth' and 'enqueue_depth' to 128 instead of 32, it started to work.

Do you have any objections for modifying  the 'dsw' default configuration to '128'?

Regards,
Liron


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] l2fwd-event not fully functional with 'dsw'
  2019-12-29 19:45 [dpdk-dev] l2fwd-event not fully functional with 'dsw' Liron Himi
@ 2019-12-30 10:51 ` Mattias Rönnblom
  0 siblings, 0 replies; 2+ messages in thread
From: Mattias Rönnblom @ 2019-12-30 10:51 UTC (permalink / raw)
  To: Liron Himi; +Cc: Yuri Chipchev, Jerin Jacob Kollanukkaran, dpdk-dev

On 2019-12-29 20:45, Liron Himi wrote:
>
> Recently we tried to run the new l2fwd-event examples using the ‘dsw’ 
> as the evendev.
>
> We noticed that only 4096 packets were sent back to the ethdev.
>
> Only when we changed both ‘dequeue_depth’ and ‘enqueue_depth’ to 128 
> instead of 32, it started to work.
>
> Do you have any objections for modifying  the ‘dsw’ default 
> configuration to ‘128’?
>
I suspect the problem isn't really the default dsw burst sizes, but 
rather the additional requirements that dsw puts on its user. In 
particular, the requirement that no eventdev ports may be left "unattended".

 From what I can see, l2fwd-event uses the rx ethernet adapter. In case 
there are no ingress packets, the rx ethernet adapter will leave its 
eventdev port unattended, and thus will not work properly with dsw.

If someone wants to explore if this is indeed the problem, they could 
try adding a zero-sized rte_event_dequeue_burst() (being called for 
every service invocation) in the rx adapter code. A dequeue call will 
allow the dsw flow migration machinery to function properly, and will 
also periodically flush buffered events.A zero-sized enqueue operation 
(as suggested by the dsw documentation) would also work, but that would 
have the side-effect of always flushing any buffered events, which might 
be non-optimal from a performance point of view.

The same might also hold true for the l2fwd-event code, but at least the 
burst-variant of the main loop will periodically attend the eventdev 
port (by means of a dequeue and/or enqueue).

The proper way to address this issue would probably be to add a "needs 
maintenance" capability flag, and a pure event device maintenance 
function added to the eventdev API, or something along those lines. 
Another way might be to use a dsw-internal per lcore timer. That would 
instead require the user to call rte_timer_manage(). An additional 
complication for the latter solution is that, even though an eventdev 
port is not thread-safe, it doesn't really have an "owning" lcore, and 
thus it's difficult to figure out on which lcore to install the timer.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-30 10:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-29 19:45 [dpdk-dev] l2fwd-event not fully functional with 'dsw' Liron Himi
2019-12-30 10:51 ` Mattias Rönnblom

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).