Asynchronous grace-period primitives for user-space applications
First Claim
1. A user-level read-copy update (RCU) method that supports asynchronous grace periods, comprising:
- establishing a user-level RCU subsystem that executes within threads of a user-level multithreaded application;
said multithreaded application comprising one or more reader threads that read RCU-protected data elements in a shared memory;
said multithreaded application comprising one or more updater threads that perform updates to said RCU-protected data elements in said shared memory and register callbacks to be executed following a grace period in order to free stale data resulting from said updates;
said RCU subsystem comprising two or more helper threads (helpers) that are created or selected as needed to track grace periods and execute said callbacks on behalf of said updaters instead of said updaters performing such work themselves;
wherein said RCU subsystem comprises a grace period detection/callback processing component that is implemented by said two or more helper threads on behalf of said updaters; and
wherein said grace period detection/callback processing component processes callbacks while they are pending, then either (1) polls for a specified time period to await new callbacks if a real-time updater is being serviced, or (2) sleeps to await awakening if a non-real-time updater is being serviced.
0 Assignments
0 Petitions
Accused Products
Abstract
A technique for implementing user-level read-copy update (RCU) with support for asynchronous grace periods. In an example embodiment, a user-level RCU subsystem is established that executes within threads of a user-level multithreaded application. The multithreaded application may comprise one or more reader threads that read RCU-protected data elements in a shared memory. The multithreaded application may further comprise one or more updater threads that perform updates to the RCU-protected data elements in the shared memory and register callbacks to be executed following a grace period in order to free stale data resulting from the updates. The RCU subsystem may implement two or more helper threads (helpers) that are created or selected as needed to track grace periods and execute the callbacks on behalf of the updaters instead of the updaters performing such work themselves.
51 Citations
7 Claims
-
1. A user-level read-copy update (RCU) method that supports asynchronous grace periods, comprising:
-
establishing a user-level RCU subsystem that executes within threads of a user-level multithreaded application; said multithreaded application comprising one or more reader threads that read RCU-protected data elements in a shared memory; said multithreaded application comprising one or more updater threads that perform updates to said RCU-protected data elements in said shared memory and register callbacks to be executed following a grace period in order to free stale data resulting from said updates; said RCU subsystem comprising two or more helper threads (helpers) that are created or selected as needed to track grace periods and execute said callbacks on behalf of said updaters instead of said updaters performing such work themselves; wherein said RCU subsystem comprises a grace period detection/callback processing component that is implemented by said two or more helper threads on behalf of said updaters; and wherein said grace period detection/callback processing component processes callbacks while they are pending, then either (1) polls for a specified time period to await new callbacks if a real-time updater is being serviced, or (2) sleeps to await awakening if a non-real-time updater is being serviced. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A user-level read-copy update (RCU) method that supports asynchronous grace periods, comprising:
-
establishing a user-level RCU subsystem that executes within threads of a user-level multithreaded application; said multithreaded application comprising one or more reader threads that read RCU-protected data elements in a shared memory; said multithreaded application comprising one or more updater threads that perform updates to said RCU-protected data elements in said shared memory and register callbacks to be executed following a grace period in order to free stale data resulting from said updates; said RCU subsystem comprising plural helper threads (helpers) that are separate from said updaters and which track grace periods and execute said callbacks on behalf of said updaters; said helper threads comprising a default helper and one or more of a per-thread helper, a per-CPU helper or a per-node helper; wherein said RCU subsystem comprises a grace period detection/callback processing component that is implemented by said two or more helper threads on behalf of said updaters; and wherein said grace period detection/callback processing component processes callbacks while they are pending, then either (1) polls for a specified time period to await new callbacks if a real-time updater is being serviced, or (2) sleeps to await awakening if a non-real-time updater is being serviced.
-
Specification