• Gregory Haskins's avatar
    sched: optimize RT affinity · 6e1254d2
    Gregory Haskins authored
    The current code base assumes a relatively flat CPU/core topology and will
    route RT tasks to any CPU fairly equally.  In the real world, there are
    various toplogies and affinities that govern where a task is best suited to
    run with the smallest amount of overhead.  NUMA and multi-core CPUs are
    prime examples of topologies that can impact cache performance.
    
    Fortunately, linux is already structured to represent these topologies via
    the sched_domains interface.  So we change our RT router to consult a
    combination of topology and affinity policy to best place tasks during
    migration.
    Signed-off-by: default avatarGregory Haskins <ghaskins@novell.com>
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    6e1254d2
sched_rt.c 18.6 KB