DPDK usage discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: topperxin <topperxin@126.com>
Cc: "users@dpdk.org" <users@dpdk.org>,
	olivier.matz@6wind.com, andrew.rybchenko@oktetlabs.ru
Subject: Re: [dpdk-users] what's the cache size of rte_mempool_create()?
Date: Wed, 29 Sep 2021 12:48:24 +0200
Message-ID: <8006744.t41pDv0jej@thomas> (raw)
In-Reply-To: <5a53ec0f.4a37.17bc4b38e33.Coremail.topperxin@126.com>

+Cc mempool maintainers

08/09/2021 11:18, topperxin:
> HI list
>          A question about the value of cache size of rte_mempool_crate() function, the defination of this function like below:
>         struct rte_mempool *
> rte_mempool_create(const char *name, unsigned n, unsigned elt_size,
>                    unsigned cache_size, unsigned private_data_size,
>                    rte_mempool_ctor_t *mp_init, void *mp_init_arg,
>                    rte_mempool_obj_cb_t *obj_init, void *obj_init_arg,
>                    int socket_id, unsigned flags);
>      My question is : what's cache_size value means ? what's difference between if I set cache_size = 0 and cache_size = 512 ?
>      I get some information from the the dpdk 20.11 it said that, if we set cache size to 0 , it can be useful to avoid losing objects in cache , I can't understand this point, does it mean
>      that if we set the cache size to non zero, it will suffer the risk that some packages will lost ? right ?
>      Thanks for your tips.
>      BR.

  reply	other threads:[~2021-09-29 10:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-08  9:18 topperxin
2021-09-29 10:48 ` Thomas Monjalon [this message]
2021-09-29 20:25   ` Olivier Matz

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8006744.t41pDv0jej@thomas \
    --to=thomas@monjalon.net \
    --cc=andrew.rybchenko@oktetlabs.ru \
    --cc=olivier.matz@6wind.com \
    --cc=topperxin@126.com \
    --cc=users@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git