Difference between revisions of "CPU Shielding capability"

From eLinux.org
Jump to: navigation, search
(Created page with "; Summary: CPU Shielding capability ; Proposer: Tim Bird, Sony Mobile == Description == In multi-processor realtime systems, it is sometimes desirable to isolate some CPUs i...")
 
Line 25: Line 25:
 
* RedHawk Linux has a command called 'shield' which performs this function:  
 
* RedHawk Linux has a command called 'shield' which performs this function:  
 
** http://wiki.simwb.com/swbwiki/swbdoc/UserManualFlash/SimConfig/optimizing/optimizing.htm
 
** http://wiki.simwb.com/swbwiki/swbdoc/UserManualFlash/SimConfig/optimizing/optimizing.htm
 +
* http://www.janoszen.com/2013/02/06/limiting-linux-processes-cgroups-explained/
  
 
== Scope ==
 
== Scope ==

Revision as of 19:45, 1 October 2013

Summary
CPU Shielding capability
Proposer
Tim Bird, Sony Mobile

Description

In multi-processor realtime systems, it is sometimes desirable to isolate some CPUs in the system to enhance their capability to maintain realtime performance.

Normally, when the Linux kernel is running in an SMP configuration, any CPU may take an interrupt or run a process. Under realtime conditions, the operations of scheduling multiple processes or handling an interrupt may interfere with a particular process meeting it's realtime deadlines.

It would be nice to be able to isolate a realtime process on a CPU such that it was shielded from the scheduling of other processes and from handling interrupts.

This project would create a new 'shield' command, which would restrict a particular CPU to execution of an particular process (or set of processes), and also prevent that CPU from handling interrupts. This might involve modifying the kernel scheduler and using IRQ affinity features in the kernel to achieve this result.

cgroups supports such a feature, called 'cpusets', but if the feature can be provided outside of cgroups, that would be better, since cgroups is generally incompatible with realtime embedded Linux.

Related work

Scope

Unknown

Contractor Candidates

None yet.

Comments