From: Eric Dumazet <eric.dumazet@gmail.com>
To: Zach Brown <zach.brown@ni.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Pure polling mode for netdevices
Date: Fri, 21 Oct 2016 11:41:46 -0700 [thread overview]
Message-ID: <1477075306.7065.86.camel@edumazet-glaptop3.roam.corp.google.com> (raw)
In-Reply-To: <20161021180316.GA305@zach-desktop>
On Fri, 2016-10-21 at 13:03 -0500, Zach Brown wrote:
> Is there a way to get NAPI to poll all the time?
> Or just any way to get netdevices to use only polling and no interrupts?
>
> We have some rt targets where the jitter can be improved by disabling
> interrupts and using just polling. In these cases we're okay with the
> performance downsides that come with polling.
>
> In particular we already have an implementation for the cadence macb driver
> that does only polling mode and have verified that it improves the
> jitter.
>
> We're hoping for a more general existing solution or at the very least a
> solution that would be accepted upstream. Any thoughts?
This is not yet done, although you could use busy poll infrastructure to
get this without a kernel change.
Open as many TCP flows are necessary to traverse all the queues you care
about, then loop on recvmsg() to trigger NAPI polling.
next prev parent reply other threads:[~2016-10-21 18:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-21 18:03 Zach Brown
2016-10-21 18:41 ` Eric Dumazet [this message]
2016-10-27 18:29 ` Zach Brown
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=1477075306.7065.86.camel@edumazet-glaptop3.roam.corp.google.com \
--to=eric.dumazet@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=zach.brown@ni.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
all inboxes | Powered by JetHome®