History

rseq: Extend struct rseq with per-memory-map concurrency ID

If a memory map has fewer threads than there are cores on the system, or is limited to run on few cores concurrently through sched affinity or cgroup cpusets, the concurrency IDs will be values close to 0, thus allowing efficient use of user-space memory for per-cpu data structures.

Mathieu Desnoyers committed 3 years ago

Commit f7b01bb1 parent af7f5882 files · +19 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/rseq.h+9−0
@@ -139,6 +139,15 @@ struct rseq { · 138 unmodified lines
139 */139 */
140 __u32 node_id;140 __u32 node_id;
141 141
142 /*
143 * Restartable sequences mm_cid field. Updated by the kernel. Read by
144 * user-space with single-copy atomicity semantics. This field should
145 * only be read by the thread which registered this data structure.
146 * Aligned on 32-bit. Contains the current thread's concurrency ID
147 * (allocated uniquely within a memory map).
148 */
149 __u32 mm_cid;
150
142 /*151 /*
143 * Flexible array member at end of structure, after last feature field.152 * Flexible array member at end of structure, after last feature field.
144 */153 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t