[dpdk-users] Optimal number of elements in mempool n = (2^q - 1) vs examples, what is the right thing to do?

Lazarenko, Vlad (WorldQuant) Vlad.Lazarenko at worldquant.com
Wed Feb 1 17:54:57 CET 2017


Hello,

I'm new to DPDK and have noticed that documentation for rte_mempool_create states that the optimal size for a number of elements in the pool is n = (2^q-1). But in many examples it is simply set to 2^q (multi_process/simple_mp/main.c uses 2014, for example). This is a bit confusing. Is 2^q - 1 really the optimal number but examples don't use it, or maybe the documentation for the mempool is wrong, or...? If anyone could shed some light on this that'd be helpful.

Thanks,
Vlad



###################################################################################

The information contained in this communication is confidential, may be

subject to legal privilege, and is intended only for the individual named.

If you are not the named addressee, please notify the sender immediately and

delete this email from your system.  The views expressed in this email are

the views of the sender only.  Outgoing and incoming electronic communications

to this address are electronically archived and subject to review and/or disclosure

to someone other than the recipient.

###################################################################################


More information about the users mailing list