From: Rick Jones <rick.jones2@hp.com>
To: David Miller <davem@davemloft.net>
Cc: ole@ans.pl, eric.dumazet@gmail.com, netdev@vger.kernel.org,
eilong@broadcom.com
Subject: Re: [RFC] bnx2x: Insane RX rings
Date: Thu, 09 Sep 2010 14:38:27 -0700 [thread overview]
Message-ID: <4C8953D3.9060204@hp.com> (raw)
In-Reply-To: <20100909.143001.104050644.davem@davemloft.net>
David Miller wrote:
> From: Krzysztof Olędzki <ole@ans.pl>
> Date: Thu, 09 Sep 2010 23:21:01 +0200
>
>
>>On 2010-09-09 22:45, Eric Dumazet wrote:
>>
>>>Problem is : With 16 RX queues per device , thats 4078*16*2Kbytes per
>>>ethernet port.
>>>
>>>Total :
>>>
>>>skbuff_head_cache 130747 131025 256 15 1 : tunables 120 60 8 :
>>>slabdata 8735 8735 40
>>>size-2048 130866 130888 2048 2 1 : tunables 24 12 8 : slabdata 65444
>>>65444 28
>>>
>>>Thats about 300 Mbytes of memory, just in case some network trafic
>>>will occur.
>>>
>>>Lets do something about that ?
>>
>>Yep, it is ~8MB per queue, not so much alone, but a lot together. For
>>this reason I use something like bnx2.num_queues=2 on servers where I
>>don't need much CPU power for network workload.
>
>
> I think simply that the RX queue size should be scaled by the number
> of queues we have.
>
> If people want enormous RX ring sizes even when there are many queues,
> they can use ethtool to get that.
>
> Taking up 130MB of memory per-card, just for RX packet buffers, is
> certainly over the top.
It gets even better if one consideres JumboFrames... that said, I've had
customer contacts (indirect) where they were quite keep to have a ring size of
at least 2048 packets - I never could get it confirmed, but I suspect they had
applications/systems that might "go out to lunch" for long-enough periods of
time they wanted that degree of FIFO.
Doesn't necessarily change "what should be the defaults" much but there it is.
rick jones
next prev parent reply other threads:[~2010-09-09 21:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 20:45 [RFC] bnx2x: Insane RX rings Eric Dumazet
2010-09-09 21:21 ` Krzysztof Olędzki
2010-09-09 21:30 ` David Miller
2010-09-09 21:38 ` Rick Jones [this message]
2010-09-10 11:16 ` Eilon Greenstein
2010-09-10 15:46 ` Rick Jones
2010-09-10 15:54 ` Rick Jones
2010-09-10 16:42 ` 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=4C8953D3.9060204@hp.com \
--to=rick.jones2@hp.com \
--cc=davem@davemloft.net \
--cc=eilong@broadcom.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=ole@ans.pl \
/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).