Thread (10 messages) 10 messages, 3 authors, 2021-05-22

[PATCH v4 0/2] rt-tests: cyclictest: Add option to specify main pid affinity

STALE1959d

From: Jonathan Schwender <hidden>
Date: 2021-05-18 08:37:17

Revision v4 of 4 in this series.

Revisions (4)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v4 current
Hi John,

Changes in v4:
- Rolled back the error wrapper changes around numa_sched_setaffinity.
  I still extracted the error handling code into a function, but since it's
  only used locally it looks a lot nicer.
- Rebased onto latest commit c9051a36 ("ssdd: Add JSON output feature")
  in unstable/devel/latest.


This patch adds the option --mainaffinity to specify the affinity of
the main pid.
This is mainly useful if you want to bind the main thread to a
different (e.g. housekeeping ) CPU than the measurement threads.
Some of the potential benefits of using this option are presented in
a previous email: https://lore.kernel.org/linux-rt-users/dd40b81d-7099-7740-c2ad-64b49e582234@gmail.com/ (local)

Jonathan Schwender (2):
  cyclictest: Move main pid setaffinity handling into a function
  cyclictest: Add --mainaffinity=[CPUSET] option.

 src/cyclictest/cyclictest.c | 39 ++++++++++++++++++++++++++++---------
 1 file changed, 30 insertions(+), 9 deletions(-)

-- 
2.31.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help