DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.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, 9 Jul 2015 12:18:31 +0100	[thread overview]
Message-ID: <20150709111831.GE8408@bricha3-MOBL3> (raw)
In-Reply-To: <1436432489-31161-1-git-send-email-olivier.matz@6wind.com>

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>

  reply	other threads:[~2015-07-09 11:18 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 [this message]
2015-07-09 15:35   ` Thomas Monjalon

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=20150709111831.GE8408@bricha3-MOBL3 \
    --to=bruce.richardson@intel.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).