One of the best ways to test this on Linux is to make use of the
taskset command to restrict the set of cores that the threads can be
scheduled on. I've seen significant performance improvements in
applications using this technique (not just the Disruptor). One of
the other problems that can occur is the OS attempting to schedule
application threads onto cores that are also being used to service OS
level interrupt requests. For improved performance on Linux you can
use irqbalance or the smp_affinity field in the /proc file system to
restrict the CPUs that are used to service interrupts and separate
them from the application threads.
To summarise, thread affinity can improve performance.
Mike.
Mike.
On Mon, Apr 16, 2012 at 10:20 PM, Sergio <sergio.ol...@gmail.com> wrote: