From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Olivier Matz <olivier.matz@6wind.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] test/mempool: decrease size of requested mempool
Date: Thu, 09 Jul 2015 17:35:57 +0200 [thread overview]
Message-ID: <5094799.EXiVPc3dxi@xps13> (raw)
In-Reply-To: <20150709111831.GE8408@bricha3-MOBL3>
2015-07-09 12:18, Bruce Richardson:
> On Thu, Jul 09, 2015 at 11:01:29AM +0200, Olivier Matz wrote:
> > In test application, the default size of allocated mempool is calculated
> > as following:
> >
> > (RTE_MAX_LCORE * (RTE_MEMPOOL_CACHE_MAX_SIZE + max_kept_objects)) - 1
> >
> > The objective is to ensure that all cores can fill their cache and keep
> > 'max_kept_objects' at the same time. As RTE_MAX_LCORE is 128 and
> > RTE_MEMPOOL_CACHE_MAX_SIZE is 512 in the default configuration, it can
> > produce very large mempools (170 MB).
> >
> > We can replace the number of core by a dynamic value, which drastically
> > reduces the amount of memory needed for this test (5 MB with 4 cores).
> >
> > Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Applied, thanks
prev parent reply other threads:[~2015-07-09 15:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 9:01 Olivier Matz
2015-07-09 11:18 ` Bruce Richardson
2015-07-09 15:35 ` Thomas Monjalon [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=5094799.EXiVPc3dxi@xps13 \
--to=thomas.monjalon@6wind.com \
--cc=dev@dpdk.org \
--cc=olivier.matz@6wind.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;
as well as URLs for NNTP newsgroup(s).