All of lore.kernel.org
 help / color / mirror / Atom feed
* RCU question
@ 2004-12-09 23:59 George Anzinger
  2004-12-10  4:31 ` Dipankar Sarma
  0 siblings, 1 reply; 47+ messages in thread
From: George Anzinger @ 2004-12-09 23:59 UTC (permalink / raw)
  To: Dipankar Sarma, Manfred Spraul, lkml

I am working on VST code.  This code is called from the idle loop to check for 
future timers.  It then sets up a timer to interrupt in time to handle the 
nearest timer and turns off the time base interrupt source.  As part of 
qualifying the entry to this state I want to make sure there is no pending work 
so, from the idle task I have this:

	if (local_softirq_pending())
		do_softirq();

	BUG_ON(local_softirq_pending());

I did not really expect to find any pending softirqs, but, not only are there 
some, they don't go away and the system BUGs.  The offender is the RCU task. 
The question is: is this normal or is there something wrong?
-- 
George Anzinger   george@mvista.com
High-res-timers:  http://sourceforge.net/projects/high-res-timers/


^ permalink raw reply	[flat|nested] 47+ messages in thread
* RCU Question
@ 2016-04-29 19:07 siddharth teotia
  0 siblings, 0 replies; 47+ messages in thread
From: siddharth teotia @ 2016-04-29 19:07 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 1212 bytes --]

Hi Guys,

I recently started exploring RCU to build a lock free hash table. I have
read quite a bit of literature from LWN on RCU, its usage, API etc. I have
the following question for which I have had mixed answers online:

Does the user space implementation of RCU liburcu take care of preemptive
v/s non-preemptive flavors of RCU. From what I understand RCU can be
broadly divided into:

1. Classic RCU - High Performance but suitable for non-preemptive
environments.
2. Preemptible RCU - Permits the reader to block on a resource or the read
side critical sections to be preempted. But still does not allow any kind
of sleep(). Moreover there seems to be some sort of limitation on the
nature of blocking that can happen within RCU read side critical section.
3. Sleepable RCU - Seems to me an augmentation of preemptible RCU.

The paper that describes the user space implementation of RCU suggests 4
different flavors -- QSBR, Memory Barrier based, Bullet Proof, and Signal
based.

I don't think so in my application I can afford to not have the readers
block or even sleep. If the reader wants to take some orthogonal lock/latch
on an entirely different resource, it might end waiting for it.

And because

[-- Attachment #1.2: Type: text/html, Size: 1493 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 47+ messages in thread
[parent not found: <CAJw6sH0=pZX__YaeMwozF673u3Dyn7Jzp3g9q2FuYurThO6paw@mail.gmail.com>]

end of thread, other threads:[~2016-06-04  0:22 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-09 23:59 RCU question George Anzinger
2004-12-10  4:31 ` Dipankar Sarma
2004-12-10 19:42   ` George Anzinger
2004-12-10 20:40     ` Dipankar Sarma
2004-12-10 20:45       ` Lee Revell
2004-12-10 21:02         ` George Anzinger
2004-12-10 22:58           ` Zwane Mwaikambo
2004-12-11  2:22             ` George Anzinger
2004-12-11  2:45               ` Zwane Mwaikambo
2004-12-11  3:29                 ` George Anzinger
2004-12-11 14:52                   ` Zwane Mwaikambo
2004-12-11 16:32                     ` Manfred Spraul
2004-12-11 16:52                       ` George Anzinger
2004-12-12  2:53                         ` Zwane Mwaikambo
2004-12-12  8:59                           ` Manfred Spraul
2004-12-12  9:37                             ` Andrea Arcangeli
2004-12-12 10:22                               ` Manfred Spraul
2004-12-12 12:15                                 ` Andrea Arcangeli
2004-12-14 21:40                                   ` Lee Revell
2004-12-14 22:23                                     ` [patch, 2.6.10-rc3] safe_hlt() & NMIs Ingo Molnar
2004-12-14 22:47                                       ` Ingo Molnar
2004-12-14 23:09                                         ` Linus Torvalds
2004-12-15  8:52                                           ` Ingo Molnar
2004-12-15 15:44                                             ` Linus Torvalds
2004-12-15 16:35                                               ` Ingo Molnar
2004-12-16  0:37                                           ` Alan Cox
2004-12-16  1:58                                             ` Linus Torvalds
2004-12-16 14:51                                               ` Ingo Molnar
2004-12-16 15:08                                                 ` Maciej W. Rozycki
2004-12-16 15:11                                                   ` Ingo Molnar
2004-12-16 15:42                                                     ` Maciej W. Rozycki
2004-12-16 15:54                                                 ` Linus Torvalds
2004-12-16  2:10                                             ` Zwane Mwaikambo
2004-12-16 13:26                                               ` Alan Cox
2004-12-14 23:41                                         ` Andrea Arcangeli
2004-12-14 23:00                                       ` Linus Torvalds
2004-12-15  5:04                                         ` Andi Kleen
2004-12-15  6:27                                       ` Avi Kivity
2004-12-15  8:51                                         ` Ingo Molnar
2004-12-12 16:51                                 ` RCU question George Anzinger
2004-12-12 22:40                                   ` Manfred Spraul
2004-12-13  5:22                                     ` George Anzinger
2004-12-12 16:26                             ` Zwane Mwaikambo
  -- strict thread matches above, loose matches on Subject: below --
2016-04-29 19:07 RCU Question siddharth teotia
     [not found] <CAJw6sH0=pZX__YaeMwozF673u3Dyn7Jzp3g9q2FuYurThO6paw@mail.gmail.com>
2016-04-29 19:10 ` siddharth teotia
     [not found] ` <CAJw6sH0kFFVvmWm2vRQ+KNTgJaKVXS47OCATY2zHTA0AiSipiQ@mail.gmail.com>
2016-05-02 20:53   ` Mathieu Desnoyers
     [not found]   ` <1208862117.75733.1462222380579.JavaMail.zimbra@efficios.com>
2016-06-04  0:21     ` siddharth teotia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.