DPDK usage discussions
 help / color / mirror / Atom feed
From: Omer Yamac <omer.yamac@ceng.metu.edu.tr>
To: users@dpdk.org
Subject: RCU multiple entry lookup lockless
Date: Wed, 22 Feb 2023 16:45:57 +0300	[thread overview]
Message-ID: <d888d1f5ca14a8b2c91c77b1a6be8acd@ceng.metu.edu.tr> (raw)

Hi All,

I have recently been working on RCU lib and Hash Lib. I activated RCU in 
the Hash library and want to observe one thing.

Here is the case:
I want to check RCU handles multiple lookups and frees just selected 
elements. I realize that reporting quiescent state releases all 
elements, and I cannot choose the unused ones.

Here is an example:

I filled the hash table with some data and then looked up the first five 
elements in the reader thread. Assume that three are used throughout the 
whole thread life, but I only need 2 of them in that little time.

If I delete these five elements in the writer, the receiver still points 
to the actual data. I wanted to add some elements and free two deleted 
elements that will not be used. So I report the quiescent state. Is 
there a way to hold these three elements (the reader still references 
that)? As I understood, I can't hold any reference to the data if I 
report the quiescent state in the reader.

Thank you

-- 
-A. Ömer Yamaç

                 reply	other threads:[~2023-02-22 13:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d888d1f5ca14a8b2c91c77b1a6be8acd@ceng.metu.edu.tr \
    --to=omer.yamac@ceng.metu.edu.tr \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).