Question about RTE ring
    Konstantin Ananyev 
    konstantin.ananyev at huawei.com
       
    Thu Apr 11 10:08:45 CEST 2024
    
    
  
 Hi,
> 
> As part of a project I have a question about the rte ring.
> I’m using rte ring multi producer/single consumer.
> The producers are several process.
> If one producer is enqueuing an element and crashed (kill pid) in the middle of the
>  enqueuing, can it compromise the ring ?
I suppose you are using rte_ring as IPC mechanism between multiple processes, correct?
In theory - yes, if your producer crashed during enqueue() to the ring, then yes, the ring might be affected.
If producer already moved prod.head  and crashed before updating prod.tail, then no other producers
will be able to enqueue() into the ring, till you'll do reset() for it.
I expect such situation really rare and hard to reproduce, but in theory it is possible.
Konstantin  
    
    
More information about the dev
mailing list