public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Keyur Amrutbhai Patel <keyurp@xilinx.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: netif_receive_skb is taking long time
Date: Thu, 25 Oct 2018 10:08:23 -0700	[thread overview]
Message-ID: <5d039fa2-95fc-dbdf-4ab0-d5cccebe8bcc@gmail.com> (raw)
In-Reply-To: <BN6PR02MB2641D863865B2498ACD2043DB7F70@BN6PR02MB2641.namprd02.prod.outlook.com>



On 10/25/2018 08:39 AM, Keyur Amrutbhai Patel wrote:
> Hi,
> 
> In my NIC driver "netif_receive_skb" is taking too long time. Almost 3375 neno seconds. Which is more than whole packet processing from interrupt.
> 
> Could anyone please help me to understand what could be the reason behind this? How to solve it to take minimum time?
> 
> Is there any standard calls which we need to follow in order to get faster performance?
> 

First step would be to read Documentation/networking/scaling.txt and see if anything there helps.

Have you tried to profile the kernel and see if some contention or hot function appears ?

Maybe use a faster cpu, or remove not needed features like too heavy netfilter rules.

We can not really answer your question, you do not provide enough information.

  parent reply	other threads:[~2018-10-26  1:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-25 15:39 netif_receive_skb is taking long time Keyur Amrutbhai Patel
2018-10-25 17:05 ` Keyur Amrutbhai Patel
2018-10-25 17:08 ` Eric Dumazet [this message]
2018-10-25 17:22   ` Keyur Amrutbhai Patel
2018-10-25 17:32     ` Eric Dumazet
2018-10-25 17:43     ` David Miller

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=5d039fa2-95fc-dbdf-4ab0-d5cccebe8bcc@gmail.com \
    --to=eric.dumazet@gmail.com \
    --cc=keyurp@xilinx.com \
    --cc=netdev@vger.kernel.org \
    /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