Sep 9 – 11, 2019
Europe/Lisbon timezone

Soft Affinity

Sep 11, 2019, 3:45 PM
Ametista/room-I (Corinthia Hotel Lisbon)


Corinthia Hotel Lisbon

Birds of a Feather (BoF) Birds of a feather (BoF)


Subhra Mazumdar


When multiple instances of workloads are consolidated in same host it is
good practice to partition them for best performance. For e.g give a NUMA
node parition to each instance. Currently Linux kernel provides two
interfaces to hard parition: sched_setaffinity system call or cpuset.cpus
cgroup. But this doesn't allow one instance to burst out of its partition
and use available CPUs from other partitions when they are idle. Running
all instances free range without any affinity, on the other hand, suffers
from cache coherence overhead across sockets (NUMA nodes) when all
instances are busy. To achieve the best of both worlds introduce new Soft Affinity feature that allows the scheduler to chose a preferred set of CPUs when they are idle but burst out of it and use the allowed set if they are all busy.

I agree to abide by the anti-harassment policy Yes

Primary author

Presentation materials

There are no materials yet.