Home
last modified time | relevance | path

Searched full:rcu (Results 1 – 25 of 1133) sorted by relevance

12345678910>>...46

/linux-5.10/Documentation/RCU/
Drcu.rst3 RCU Concepts
6 The basic idea behind RCU (read-copy update) is to split destructive
11 since dropped their references. For example, an RCU-protected deletion
14 :ref:`Documentation/RCU/listRCU.rst <list_rcu_doc>` for more information on
15 using RCU with linked lists.
20 - Why would anyone want to use RCU?
22 The advantage of RCU's two-part approach is that RCU readers need
26 on modern CPUs is what gives RCU its performance advantages
27 in read-mostly situations. The fact that RCU readers need not
31 if the RCU readers give no indication when they are done?
[all …]
DwhatisRCU.rst3 What is RCU? -- "Read, Copy, Update"
6 Please note that the "What is RCU?" LWN series is an excellent place
7 to start learning about RCU:
9 | 1. What is RCU, Fundamentally? http://lwn.net/Articles/262464/
10 | 2. What is RCU? Part 2: Usage http://lwn.net/Articles/263130/
11 | 3. RCU part 3: the RCU API http://lwn.net/Articles/264090/
12 | 4. The RCU API, 2010 Edition http://lwn.net/Articles/418853/
14 | 5. The RCU API, 2014 Edition http://lwn.net/Articles/609904/
18 What is RCU?
20 RCU is a synchronization mechanism that was added to the Linux kernel
[all …]
DRTFP.txt4 This document describes RCU-related publications, and is followed by
6 be found at http://www.rdrop.com/users/paulmck/RCU/. For others, browsers
9 The first thing resembling RCU was published in 1980, when Kung and Lehman
23 serialization, which is an RCU-like mechanism that relies on the presence
31 (In contrast, implementation of RCU is permitted only in software licensed
35 At first glance, this has nothing to do with RCU, but nevertheless
37 RCU implementation in DYNIX/ptx. In 1988, Barbara Liskov published
66 synchronization [HMassalinPhD]. RCU makes extremely heavy use of
91 1995 also saw the first publication of DYNIX/ptx's RCU mechanism
98 mechanism, which is quite similar to RCU [Gamsa99]. These operating
[all …]
Dlockdep.rst4 RCU and lockdep checking
7 All flavors of RCU have lockdep checking available, so that lockdep is
8 aware of when each task enters and leaves any flavor of RCU read-side
9 critical section. Each flavor of RCU is tracked separately (but note
11 tracking to include RCU state, which can sometimes help when debugging
14 In addition, RCU provides the following primitives that check lockdep's
17 rcu_read_lock_held() for normal RCU.
18 rcu_read_lock_bh_held() for RCU-bh.
19 rcu_read_lock_sched_held() for RCU-sched.
31 Check for RCU read-side critical section.
[all …]
Dchecklist.rst4 Review Checklist for RCU Patches
9 that make use of RCU. Violating any of the rules listed below will
14 0. Is RCU being applied to a read-mostly situation? If the data
17 performance measurements show that RCU is nonetheless the right
18 tool for the job. Yes, RCU does reduce read-side overhead by
20 of RCU will do much more reading than updating.
22 Another exception is where performance is not an issue, and RCU
27 Yet another exception is where the low real-time latency of RCU's
30 One final exception is where RCU readers are used to prevent
40 RCU does allow -readers- to run (almost) naked, but -writers- must
[all …]
Dstallwarn.rst4 Using RCU's CPU Stall Detector
7 This document first discusses what sorts of issues RCU's CPU stall
13 What Causes RCU CPU Stall Warnings?
16 So your kernel printed an RCU CPU stall warning. The next question is
17 "What caused it?" The following problems can result in RCU CPU stall
20 - A CPU looping in an RCU read-side critical section.
37 RCU CPU stall warning messages. Especially if you have added
40 - Anything that prevents RCU's grace-period kthreads from running.
48 happen to preempt a low-priority task in the middle of an RCU
51 in which case the next RCU grace period can never complete, which
[all …]
DUP.rst3 RCU on Uniprocessor Systems
18 Suppose that an RCU-based algorithm scans a linked list containing
40 Suppose that an RCU-based algorithm again scans a linked list containing
45 RCU usage, since call_rcu() must wait for a grace period to elapse.
48 underlying RCU, namely that call_rcu() defers invoking its arguments until
49 all RCU read-side critical sections currently executing have completed.
84 What locking restriction must RCU callbacks respect?
91 Permitting call_rcu() to immediately invoke its arguments breaks RCU,
92 even on a UP system. So do not do it! Even on a UP system, the RCU
101 preemptable RCU?
[all …]
Drcubarrier.rst3 RCU and Unloadable Modules
8 RCU (read-copy update) is a synchronization mechanism that can be thought
11 and unbounded latency. RCU read-side critical sections are delimited
15 This means that RCU writers are unaware of the presence of concurrent
16 readers, so that RCU updates to shared data must be undertaken quite
19 such readers might hold a reference to them. RCU updates can therefore be
20 rather expensive, and RCU is thus best suited for read-mostly situations.
22 How can an RCU writer possibly determine when all readers are finished,
35 rcu_head struct placed within the RCU-protected data structure and
41 call_rcu(&p->rcu, p_callback);
[all …]
Dlockdep-splat.rst4 Lockdep-RCU Splat
7 Lockdep-RCU was added to the Linux kernel in early 2010
9 misuses of the RCU API, most notably using one of the rcu_dereference()
10 family to access an RCU-protected pointer without the proper protection.
11 When such misuse is detected, an lockdep-RCU splat is emitted.
13 The usual cause of a lockdep-RCU slat is someone accessing an
14 RCU-protected data structure without either (1) being in the right kind of
15 RCU read-side critical section or (2) holding the right update-side lock.
20 So let's look at an example RCU lockdep splat from 3.0-rc5, one that
24 WARNING: suspicious RCU usage
[all …]
Dtorture.rst4 RCU Torture Test Operation
11 The CONFIG_RCU_TORTURE_TEST config option is available for all RCU
26rcu-torture:--- Start of test: nreaders=16 nfakewriters=4 stat_interval=30 verbose=0 test_no_idle_…
27rcu-torture: rtc: (null) ver: 155441 tfle: 0 rta: 155441 rtaf: 8884 rtf: 155440 rtmbe: 0…
28 rcu-torture: Reader Pipe: 727860534 34213 0 0 0 0 0 0 0 0 0
29 rcu-torture: Reader Batch: 727877838 17003 0 0 0 0 0 0 0 0 0
30rcu-torture: Free-Block Circulation: 155440 155440 155440 155440 155440 155440 155440 155440 1554…
31rcu-torture:--- End of test: SUCCESS: nreaders=16 nfakewriters=4 stat_interval=30 verbose=0 test_n…
36 the RCU torture test. The printk()s use KERN_ALERT, so they should
41 automatic determination as to whether RCU operated correctly.
[all …]
/linux-5.10/kernel/rcu/
DKconfig3 # RCU-related configuration options
6 menu "RCU Subsystem"
12 This option selects the RCU implementation that is
22 This option selects the RCU implementation that is
34 This option selects the RCU implementation that is
37 memory footprint of RCU.
40 bool "Make expert-level adjustments to RCU configuration"
44 expert-level adjustments to RCU configuration. By default,
48 obscure RCU options to be set up.
50 Say Y if you need to make expert-level adjustments to RCU.
[all …]
DKconfig.debug3 # RCU-related debugging configuration options
6 menu "RCU Debugging"
12 bool "RCU list lockdep debugging"
16 Enable RCU lockdep checking for list usages. By default it is
17 turned off since there are several list RCU users that still
27 tristate "performance tests for RCU"
37 tests on the RCU infrastructure. The kernel module may be built
40 Say Y here if you want RCU performance tests to be built into
42 Say M if you want the RCU performance tests to build as a module.
46 tristate "torture tests for RCU"
[all …]
Dupdate.c49 #include "rcu.h"
65 * rcu_read_lock_held_common() - might we be in RCU-sched read-side critical section?
74 * RCU-sched read-side critical section. In absence of
75 * CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU-sched read-side
77 * of preemption (including disabling irqs) counts as an RCU-sched
79 * that required that they be called within an RCU-sched read-side
85 * Note that if the CPU is in the idle loop from an RCU point of view (ie:
88 * rcu_read_lock(). The reason for this is that RCU ignores CPUs that are
90 * so such a CPU is effectively never in an RCU read-side critical section
91 * regardless of what RCU primitives it invokes. This state of affairs is
[all …]
Dtree.c15 * Documentation/RCU
18 #define pr_fmt(fmt) "rcu: " fmt
66 #include "rcu.h"
120 * RCU can assume that there is but one task, allowing RCU to (for example)
122 * is RCU_SCHEDULER_INIT, RCU must actually do all the hard work required
124 * boot-time false positives from lockdep-RCU error checking. Finally, it
125 * transitions from RCU_SCHEDULER_INIT to RCU_SCHEDULER_RUNNING after RCU
134 * is capable of creating new tasks. So RCU processing (for example,
135 * creating tasks for RCU priority boosting) must be delayed until after
137 * currently delay invocation of any RCU callbacks until after this point.
[all …]
/linux-5.10/tools/memory-model/
Dlinux-kernel.cat42 let gp = po ; [Sync-rcu | Sync-srcu] ; po?
47 let barrier = fencerel(Barrier | Rmb | Wmb | Mb | Sync-rcu | Sync-srcu |
49 Rcu-lock | Rcu-unlock | Srcu-lock | Srcu-unlock) |
98 (* RCU *)
106 * In the definition of rcu-fence below, the po term at the left-hand side
108 * out. They have been moved into the definitions of rcu-link and rb.
111 let rcu-gp = [Sync-rcu] (* Compare with gp *)
113 let rcu-rscsi = rcu-rscs^-1
118 * one but two non-rf relations, but only in conjunction with an RCU
121 let rcu-link = po? ; hb* ; pb* ; prop ; po
[all …]
Dlinux-kernel.bell28 'rcu-lock (*rcu_read_lock*) ||
29 'rcu-unlock (*rcu_read_unlock*) ||
30 'sync-rcu (*synchronize_rcu*) ||
43 (* Compute matching pairs of nested Rcu-lock and Rcu-unlock *)
44 let rcu-rscs = let rec
45 unmatched-locks = Rcu-lock \ domain(matched)
46 and unmatched-unlocks = Rcu-unlock \ range(matched)
56 flag ~empty Rcu-lock \ domain(rcu-rscs) as unbalanced-rcu-locking
57 flag ~empty Rcu-unlock \ range(rcu-rscs) as unbalanced-rcu-locking
75 (* Check for use of synchronize_srcu() inside an RCU critical section *)
[all …]
/linux-5.10/Documentation/RCU/Design/Requirements/
DRequirements.rst2 A Tour Through RCU's Requirements
18 Read-copy update (RCU) is a synchronization mechanism that is often used
19 as a replacement for reader-writer locking. RCU is unusual in that
20 updaters do not block readers, which means that RCU's read-side
23 this concurrency between RCU readers and updaters does raise the
24 question of exactly what RCU readers are doing, which in turn raises the
25 question of exactly what RCU's requirements are.
27 This document therefore summarizes RCU's requirements, and can be
28 thought of as an informal, high-level specification for RCU. It is
29 important to understand that RCU's specification is primarily empirical
[all …]
/linux-5.10/include/linux/
Drcupdate.h112 * RCU_NONIDLE - Indicate idle-loop code that needs RCU readers
113 * @a: Code that RCU needs to pay attention to.
115 * RCU read-side critical sections are forbidden in the inner idle loop,
116 * that is, between the rcu_idle_enter() and the rcu_idle_exit() -- RCU
121 * will tell RCU that it needs to pay attention, invoke its argument
123 * and then tell RCU to go back to ignoring this CPU. It is permissible
137 * Note a quasi-voluntary context switch for RCU-tasks's benefit.
193 * cond_resched_tasks_rcu_qs - Report potential quiescent states to RCU
196 * report potential quiescent states to RCU-tasks even if the cond_resched()
215 #error "Unknown RCU implementation specified to kernel configuration"
[all …]
Drculist.h8 * RCU-protected list version
15 * purpose. The list_empty() function fetches the RCU-protected pointer
23 * INIT_LIST_HEAD_RCU - Initialize a list_head visible to RCU readers
38 * return the ->next pointer of a list_head in an rcu safe
54 * Check during list traversal that we are within an RCU reader
64 "RCU-list traversed in non-reader section!"); \
70 "RCU-list traversed without holding the required lock!");\
98 * list_add_rcu - add a new entry to rcu-protected list
119 * list_add_tail_rcu - add a new entry to rcu-protected list
145 * the entry is in an undefined state. It is useful for RCU based
[all …]
Drcupdate_wait.h6 * RCU synchronization types and methods:
13 * Structure allowing asynchronous waiting on RCU.
38 * This macro waits concurrently for multiple types of RCU grace periods.
40 * on concurrent RCU and RCU-tasks grace periods. Waiting on a given SRCU
45 * The first argument tells Tiny RCU's _wait_rcu_gp() not to
46 * bother waiting for RCU. The reason for this is because anywhere
/linux-5.10/Documentation/filesystems/
Dpath-lookup.txt22 Since 2.5.62 kernel, dcache has been using a new locking model that uses RCU to
34 Since 2.6.38, RCU is used to make a significant part of the entire path walk
36 even stores into cachelines of common dentries). This is known as "rcu-walk"
84 The hash lists are RCU protected, so list walking is not serialised with
85 concurrent updates (insertion, deletion from the hash). This is a standard RCU
100 Back to the rename case. In usual RCU protected lists, the only operations that
102 list. The object will not be reused until an RCU grace period is complete.
103 This ensures the RCU list traversal primitives can run over the object without
104 problems (see RCU documentation for how this works).
114 new list before waiting for a grace period, this can result in a concurrent RCU
[all …]
/linux-5.10/Documentation/devicetree/bindings/phy/
Dlantiq,vrx200-pcie-phy.yaml45 lantiq,rcu:
47 description: phandle to the RCU syscon
49 lantiq,rcu-endian-offset:
51 description: the offset of the endian registers for this PHY instance in the RCU syscon
53 lantiq,rcu-big-endian-mask:
73 - lantiq,rcu
74 - lantiq,rcu-endian-offset
75 - lantiq,rcu-big-endian-mask
84 lantiq,rcu = <&rcu0>;
85 lantiq,rcu-endian-offset = <0x4c>;
[all …]
/linux-5.10/include/trace/events/
Drcu.h3 #define TRACE_SYSTEM rcu
48 * RCU flavor, the grace-period number, and a string identifying the
99 * "NoGPkthread": The RCU grace-period kthread has not yet started.
142 * distinguished by the type of RCU, the new grace-period number, the
145 * All but the type of RCU are extracted from the rcu_node structure.
179 * the RCU flavor, the expedited grace-period sequence number, and a string
216 * string identifying the RCU flavor, an integer identifying the rcu_node
254 * Tracepoint for RCU no-CBs CPU callback handoffs. This event is intended
257 * The first argument is the name of the RCU flavor, and the second is
306 * Tracepoint for tasks blocking within preemptible-RCU read-side
[all …]
/linux-5.10/Documentation/RCU/Design/Data-Structures/
DData-Structures.rst12 This document describes RCU's major data structures and their relationship
18 RCU is for all intents and purposes a large state machine, and its
19 data structures maintain the state in such a way as to allow RCU readers
20 to execute extremely quickly, while also processing the RCU grace periods
22 The efficiency and scalability of RCU updaters is provided primarily
35 If the actual hardware has only 16 CPUs, RCU will adjust itself
88 32-bit system), then RCU will automatically add more levels to the tree.
90 65,536 CPUs, RCU would configure the ``rcu_node`` tree as follows:
94 RCU currently permits up to a four-level tree, which on a 64-bit system
102 and scalability benefits of partitioning, even though RCU grace-period
[all …]
/linux-5.10/tools/memory-model/Documentation/
Dexplanation.txt30 22. RCU RELATIONS: rcu-link, rcu-gp, rcu-rscsi, rcu-order, rcu-fence, and rb
876 Rcu: This requires that RCU read-side critical sections and
877 grace periods obey the rules of RCU, in particular, the
887 "rcu" and "plain-coherence" axioms are specific to the LKMM.
1430 RCU RELATIONS: rcu-link, rcu-gp, rcu-rscsi, rcu-order, rcu-fence, and rb
1433 RCU (Read-Copy-Update) is a powerful synchronization mechanism. It
1442 As far as memory models are concerned, RCU's main feature is its
1460 Here is a simple example of RCU in action:
1491 In the kernel's implementations of RCU, the requirements for stores
1493 suitable places in the RCU-related code. Thus, if a critical section
[all …]

12345678910>>...46