dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* rte_mempools / rte_rings thread safe?
@ 2013-12-28 14:55 Jyotiswarup Raiturkar
       [not found] ` <CAJn5u1kp96XSMh+=WZ8Sc22-sML__7pjg3JgkNF6CiRY+Yk5pw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Jyotiswarup Raiturkar @ 2013-12-28 14:55 UTC (permalink / raw)
  To: dev-VfR2kkLFssw@public.gmane.org

Hi

The rte_mempool and rte_ring libs have multi-producer/multi-consumer
versions. But it's also mentioned in the header files that the
implementation is not pre-emtable : " Note: the mempool implementation is
not preemptable. A lcore must not be interrupted by another task that uses
the same mempool (because it uses a ring which is not preemptable)"

I had some questions on the same :

- Does having mutually exclusive core masks for a set of threads which use
the ring/mempool suffice for thread safety ( threads will have different
core ids but they will not be pinned to cores) ?

-  If i want to use this data structures in a pthread ( created outside of
DPDK environment), is it ok to use this if i do
"RTE_DEFINE_PER_LCORE(unsigned, _lcore_id);" with a core_id exclusive of
all other core masks for DPDK processes.

-Jyoti

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

end of thread, other threads:[~2014-01-07 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-28 14:55 rte_mempools / rte_rings thread safe? Jyotiswarup Raiturkar
     [not found] ` <CAJn5u1kp96XSMh+=WZ8Sc22-sML__7pjg3JgkNF6CiRY+Yk5pw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-07 14:27   ` Olivier MATZ

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