Enabling real-time CPU-bound in-kernel workloads to run infinite loops while keeping RCU grace periods finite
First Claim
1. A system, comprising:
- a plurality of CPUs;
a memory coupled to the CPUs, the memory including a non-transitory computer readable storage medium tangibly embodying at least one program of instructions executable by the CPUs to perform operations for enabling a real-time CPU-bound in-kernel workload to run an infinite loop while keeping read-copy update (RCU) grace periods finite, the operations comprising;
setting a per-CPU indicator to indicate that a CPU running the CPU-bound in-kernel workload has not reported an RCU quiescent state within a first defined time;
invoking from within the workload an RCU grace period operation that causes an RCU quiescent state to be reported on behalf of the CPU in response to the per-CPU indicator being set; and
rescheduling the CPU in response to the RCU quiescent state not being reported within a longer second defined time that is longer than the first defined time and sufficiently long to indicate an error condition requiring CPU rescheduling.
1 Assignment
0 Petitions
Accused Products
Abstract
A technique for enabling a real-time CPU-bound in-kernel workload to run an infinite loop while keeping read-copy update (RCU) grace periods finite. In an embodiment, a per-CPU indicator may be set to indicate that a CPU running the CPU-bound in-kernel workload has not reported an RCU quiescent state within a first defined time. An RCU grace period operation may be invoked from within the workload that causes an RCU quiescent state to be reported on behalf of the CPU if the per-CPU indicator is set. If the RCU quiescent state is not reported within a second defined time that is longer than the first defined time and sufficiently long to indicate an error condition requiring CPU rescheduling, the CPU may be rescheduled.
62 Citations
13 Claims
-
1. A system, comprising:
-
a plurality of CPUs; a memory coupled to the CPUs, the memory including a non-transitory computer readable storage medium tangibly embodying at least one program of instructions executable by the CPUs to perform operations for enabling a real-time CPU-bound in-kernel workload to run an infinite loop while keeping read-copy update (RCU) grace periods finite, the operations comprising; setting a per-CPU indicator to indicate that a CPU running the CPU-bound in-kernel workload has not reported an RCU quiescent state within a first defined time; invoking from within the workload an RCU grace period operation that causes an RCU quiescent state to be reported on behalf of the CPU in response to the per-CPU indicator being set; and rescheduling the CPU in response to the RCU quiescent state not being reported within a longer second defined time that is longer than the first defined time and sufficiently long to indicate an error condition requiring CPU rescheduling. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer program product, comprising:
-
one or more non-transitory computer readable data storage media; program instructions stored on the one or more computer readable data storage media for programming a data processing platform having a plurality of CPUs to perform operations for enabling a real-time CPU-bound in-kernel workload to run an infinite loop while keeping read-copy update (RCU) grace periods finite, the operations comprising; setting a per-CPU indicator to indicate that a CPU running the CPU-bound in-kernel workload has not reported an RCU quiescent state within a first defined time; invoking from within the workload an RCU grace period operation that causes an RCU quiescent state to be reported on behalf of the CPU in response to the per-CPU indicator being set; and rescheduling the CPU in response to the RCU quiescent state being not reported within a longer second defined time that is longer than the first defined time and sufficiently long to indicate an error condition requiring CPU rescheduling. - View Dependent Claims (9, 10, 11, 12, 13)
-
Specification