DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] rte_mempool_get returning null
@ 2021-06-30 13:50 Filip Janiszewski
  2021-06-30 14:48 ` Muhammad Zain-ul-Abideen
  0 siblings, 1 reply; 3+ messages in thread
From: Filip Janiszewski @ 2021-06-30 13:50 UTC (permalink / raw)
  To: users

Hi,

What would be the reason for rte_mempool_get returning null even if
rte_mempool_avail_count returns a big positive number? I know is
positive since I've added a print in my code to test that..

I've a strange issue where once I extract N items from the pool (where N
is the exact size of the pool) then the rte_mempool_get fails even if in
between the N extraction I've replenished the pool with rte_mempool_put
so that rte_mempool_avail_count is always positive.

The pool is created like this:

    data_pool_ = rte_mempool_create(
                     fdo_str_name,
                     config_->chunk_count,
                     chunk_size,
                     0, // cache_size
                     0, // private_data_size
                     nullptr, // mp_init
                     nullptr, // mp_init_arg
                     nullptr, // obj_init
                     nullptr, // obj_init_arg
                     config_->host_socket_id,
                     0 );

Producer and consumer are running on separate threads, but that should
not be the issue since the creation flag is 0 (Multi producer/Multi
consumer). So in my scenario is chunk_count is say 128, then after 128
GET operations I get null even if I PUT back 128 items before this last
GET (and again, rte_mempool_avail_count is 128...)

Is weird, since this is happening since I've upgraded to 21.02 from
20.02.1, may I have messed up the compilation of the new DPDK? How can I
investigate this issue?

Thanks

-- 
BR, Filip
+48 666 369 823

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

end of thread, other threads:[~2021-06-30 17:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-30 13:50 [dpdk-users] rte_mempool_get returning null Filip Janiszewski
2021-06-30 14:48 ` Muhammad Zain-ul-Abideen
2021-06-30 17:04   ` Filip Janiszewski

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