DPDK usage discussions
 help / color / mirror / Atom feed
* Re: [dpdk-users] I need some help regarding dpdk memory allocations
  2017-06-02  9:23 [dpdk-users] I need some help regarding dpdk memory allocations Apparao
@ 2017-06-02  9:20 ` Van Haaren, Harry
  0 siblings, 0 replies; 2+ messages in thread
From: Van Haaren, Harry @ 2017-06-02  9:20 UTC (permalink / raw)
  To: Apparao; +Cc: users

> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Apparao
> Sent: Friday, June 2, 2017 10:24 AM
> To: users@dpdk.org
> Subject: [dpdk-users] I need some help regarding dpdk memory allocations
> 
> Hi guys,

Hi,

> coming to dpdk is there any difference between mempool and memzone. are
> both are same.
> is any difference is there tell me the difference.


From the API docs, there is a good description of both;

[1] The goal of the memzone allocator is to reserve contiguous portions of physical memory.

[2] A memory pool is an allocator of fixed-size object. It is identified by its name, and uses a ring to store free objects. It provides some other optional services, like a per-core object cache, and an alignment helper to ensure that objects are padded to spread them equally on all RAM channels, ranks, and so on.


As a user of DPDK, the mempool will be the API of interest to allocate/free items.


Hope that helps! -Harry


[1] http://dpdk.org/doc/api/rte__memzone_8h.html
[2] http://dpdk.org/doc/api/rte__mempool_8h.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dpdk-users] I need some help regarding dpdk memory allocations
@ 2017-06-02  9:23 Apparao
  2017-06-02  9:20 ` Van Haaren, Harry
  0 siblings, 1 reply; 2+ messages in thread
From: Apparao @ 2017-06-02  9:23 UTC (permalink / raw)
  To: users

Hi guys,

coming to dpdk is there any difference between mempool and memzone. are 
both are same.
is any difference is there tell me the difference.

-- 
Regards,
Apparao B

Disclaimer:- The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. The views expressed in this E-mail message (including the enclosure/(s) or attachment/(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of GlobalEdge. Before opening any mail and attachments please check them for viruses .GlobalEdge does not accept any liability for virus infected mails.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-02  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-02  9:23 [dpdk-users] I need some help regarding dpdk memory allocations Apparao
2017-06-02  9:20 ` Van Haaren, Harry

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).