DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Mattias Rönnblom" <mattias.ronnblom@ericsson.com>
To: Venky Venkatesh <vvenkatesh@paloaltonetworks.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] eventdev DSW question
Date: Fri, 6 Dec 2019 21:37:01 +0100	[thread overview]
Message-ID: <f6e602ce-2caf-948d-f49f-f0434b2873a8@ericsson.com> (raw)
In-Reply-To: <CAJ4WCtLie8+1cwLrZoJH-994i2QRvHJQ41YYe1BZj12Q27rJDA@mail.gmail.com>

On 2019-12-06 17:32, Venky Venkatesh wrote:
> Thanks Mattias for the clarifications.
> 
> 1 more question: This time it is about the inflight accounting for DSW.
> Here is my understanding: it seems to consider only the events which
> are *inside
> the scheduler* as in flight.

Yes, like all event devices, I believe.

> I am trying to distinguish it from those which
> have been currently given to cores by the scheduler. The latter are not
> considered in flight since we dsw_port_return_credits as soon as
> dsw_event_dequeue_burst.

A new dequeue means an implicit release of all unreleased events 
dequeued in the previous call. It's standard Eventdev semantics.

> So if these events which are in core currently do
> a FORWARD, there is a chance that those can fail. Ideally those FORWARDs
> should not fail -- which can happen with the current design as some NEWs
> can hog those credits freed up by the ones which have been dequeued by
> cores.

What you do to avoid this situation is set the new_event_threshold 
low-enough, so NEW events don't block FORWARDed ones.

> Is this design of DSW intentional or an omission? If it is an
> omission I can work on a possible fix and run it by you.
> 

This is not really a DSW design, but rather how Eventdev works.

  reply	other threads:[~2019-12-06 20:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-06  0:26 Venky Venkatesh
2019-12-06  6:48 ` Jerin Jacob
2019-12-06  8:34 ` Mattias Rönnblom
2019-12-06 16:32   ` Venky Venkatesh
2019-12-06 20:37     ` Mattias Rönnblom [this message]
2019-12-06 22:22       ` Venky Venkatesh
2019-12-07 19:35         ` Mattias Rönnblom

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=f6e602ce-2caf-948d-f49f-f0434b2873a8@ericsson.com \
    --to=mattias.ronnblom@ericsson.com \
    --cc=dev@dpdk.org \
    --cc=vvenkatesh@paloaltonetworks.com \
    /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).