netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Breno Leitao <leitao@linux.vnet.ibm.com>
To: Anton Blanchard <anton@samba.org>
Cc: joe@perches.com, netdev@vger.kernel.org, davem@davemloft.net
Subject: Re: [PATCH] ehea: Add some info messages and fix an issue
Date: Fri, 07 Jan 2011 10:14:49 -0200	[thread overview]
Message-ID: <4D2703B9.3080800@linux.vnet.ibm.com> (raw)
In-Reply-To: <20110107142430.42fda498@kryten>

Hi Anton,

On 01/07/2011 01:24 AM, Anton Blanchard wrote:
> It looks like you are now only initialising half the ring, but still
>  telling the hardware to use the whole ring. Once you get through the
>  entire ring once the errors go away.
You are correct. The problem in the past ehea_init_fill_rq1() wasn't
respecting the nr_rq1a parameter. So, every time ehea_init_fill_rqX()
was trying to allocated the entire skb arrary, and assume that the
entire array was allocated, which wasn't correct.

My patch just allocate the requested number of skbs (described in
nr_rq1a) in skb array, and tell hea that only that amount of skb were
allocated (via doorbell).

On the other side, ehea_proc_rwqes() tries to maximize the array usage,
meaning that if the array is not completely used, it'd try to allocate
an skb "on-the-fly", and this is expected (For example, when you
initialize the system on memory pressure)

That is why I sent another patch that turns this message a netif_info()
instead of a netif_error() (as it was in the past). The commit id for
this patch is 782615aea84e57dc7f2f922cea823df3de635a78

So, although this behaviour is completely expected, this code path
should only being executed on memory pressure. But I am suspecting this
code path is execute more often than I'd expect. Let me investigate this.

Thanks
Breno

      reply	other threads:[~2011-01-07 12:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-26 16:26 [PATCH] ehea: Add some info messages and fix an issue leitao
2010-11-26 17:01 ` Joe Perches
2010-11-26 17:26   ` leitao
2010-11-26 23:27     ` [PATCH] ehea: Use the standard logging functions Joe Perches
2010-11-30 17:03       ` Breno Leitao
2010-11-30 18:18         ` [net-next PATCH V2] " Joe Perches
2010-12-02 18:54           ` Breno Leitao
2010-12-06 21:02             ` David Miller
2010-11-29  2:15     ` [PATCH] ehea: Add some info messages and fix an issue David Miller
2011-01-07  3:24     ` Anton Blanchard
2011-01-07 12:14       ` Breno Leitao [this message]

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=4D2703B9.3080800@linux.vnet.ibm.com \
    --to=leitao@linux.vnet.ibm.com \
    --cc=anton@samba.org \
    --cc=davem@davemloft.net \
    --cc=joe@perches.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;
as well as URLs for NNTP newsgroup(s).