From: Dmitry Vyal <dmitryvyal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Robert Sanford <rsanford-mDvk1qcdE6VWk0Htik3J/w@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: How to fight forwarding performance regression on large mempool sizes.
Date: Sun, 22 Sep 2013 23:03:40 +0400 [thread overview]
Message-ID: <523F3F0C.2010104@gmail.com> (raw)
In-Reply-To: <CAFmpvUNEtcM8TtHJhqShRggDKRT3Y0vAY9aiG=28aV9NomQRgA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 09/20/2013 07:34 PM, Robert Sanford wrote:
> One more point, if you're not doing this already: Allocate 2^N-1
> mbufs, not 2^N. According to the code and comments: "The optimum size
> (in terms of memory usage) for a mempool is when n is a power of two
> minus one: n = (2^q - 1)."
>
Many thanks! Didn't know about it.
prev parent reply other threads:[~2013-09-22 19:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-19 7:50 How to fight forwarding performance regression on large mempool sizes Dmitry Vyal
[not found] ` <523AACC9.8010304-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-19 19:39 ` Robert Sanford
[not found] ` <CAFmpvUNzbi7zsAOHeaR5KpX_OBpa_g-TLDr5FYmddqGGAX9pSA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-19 19:43 ` Venkatesan, Venky
[not found] ` <1FD9B82B8BF2CF418D9A1000154491D973F4AEAE-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-09-20 6:50 ` Dmitry Vyal
2013-09-20 6:48 ` Dmitry Vyal
[not found] ` <523BEFA3.4070209-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-20 14:41 ` Robert Sanford
2013-09-20 15:34 ` Robert Sanford
[not found] ` <CAFmpvUNEtcM8TtHJhqShRggDKRT3Y0vAY9aiG=28aV9NomQRgA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-22 19:03 ` Dmitry Vyal [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=523F3F0C.2010104@gmail.com \
--to=dmitryvyal-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.org \
--cc=rsanford-mDvk1qcdE6VWk0Htik3J/w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.