[PATCH 0/3] cyclictest: Better handle offline CPUs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When running cyclictest with -t and -a options one thread is created
per online CPU.  However if there are any offline CPUs the affinity of
the threads created is incorrect.  This is because cyclictest assumes
the online CPUs are numbered 0..N where N is the number of online
CPUs.  In reality there can be holes in the online CPU numbering.
This patch series fixes this by checking the online status of each CPU
via sysfs before setting the CPU affinity.  It also adds some sanity
checking by reading back the CPU affinity after setting it to see if
it was set correctly.

Allen Martin (3):
  Android: add pthread_getaffinity_np()
  cyclictest: read back CPU affinity to verify
  cyclictest: Handle non sequential online CPU numbering

 src/cyclictest/cyclictest.c | 61 +++++++++++++++++++++++++++++++++++++--------
 src/include/bionic.h        |  6 +++++
 2 files changed, 57 insertions(+), 10 deletions(-)

-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux