Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: baldrick@free.fr (Duncan Sands)
Subject: [lttng-dev] New article about Userspace RCU on LWN
Date: Tue, 19 Nov 2013 09:50:39 +0100	[thread overview]
Message-ID: <528B265F.1000500@free.fr> (raw)
In-Reply-To: <226335696.70249.1384791646740.JavaMail.zimbra@efficios.com>

Hi Mathieu, nice articles, now I can point my co-workers at it when they ask me
what this RCU stuff is all about :)  I noticed that the article
  http://lwn.net/Articles/573431/
says

"The hash table can then be allocated:

     ht = cds_lfht_new(1, 1, 0, CDS_LFHT_AUTO_RESIZE, NULL);
  The first 1 specifies the initial number of hash buckets in the table, the
  second 1 specifies the minimum number of hash buckets, and the 0 specifies the
  maximum number of hash buckets. All three quantities must be powers of two,
  except for the special case of 0 for the third argument, which specifies an
  unlimited maximum number of hash buckets."

However the rculfhash.h header doesn't say that the third argument can be zero.
All it says is:

  * @max_nr_buckets: the maximum number of hash table buckets allowed.
  *                  (must be power of two)

Best wishes, Duncan.

On 18/11/13 17:20, Mathieu Desnoyers wrote:
> Hi,
>
> Paul McKenney, Lai Jianshan, Josh Triplett and myself just published a series of articles on Userspace RCU on Linux Weekly News. You can find the top-level article at this URL:
>
> https://lwn.net/Articles/573424/
>
> Those articles introduce the Userspace RCU library, explaining how to use RCU and the data structures it contains. Access to those articles is restricted to LWN subscribers for a week after publication, and should be freely available afterward.
>
> Feedback is welcome!
>
> Thanks,
>
> Mathieu
>




  reply	other threads:[~2013-11-19  8:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1461373672.70240.1384791399260.JavaMail.zimbra@efficios.com>
2013-11-18 16:20 ` Mathieu Desnoyers
2013-11-19  8:50   ` Duncan Sands [this message]
2013-11-19 14:55     ` Mathieu Desnoyers

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=528B265F.1000500@free.fr \
    --to=baldrick@free.fr \
    /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