Skip to content

rt-tests: cyclictest: Add option to specify main pid affinity

Jonathan Schwender linux-rt-users 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 7 repliesIn review
  2. v32 patches 1 replySuperseded
  3. v22 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches1 replySuperseded

Changes in v4 from the cover letter

- 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.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cyclictest: Move main pid setaffinity handling into a functionsrc/cyclictest/cyclictest.c+12 -72 replies
2/2cyclictest: Add --mainaffinity=[CPUSET] option.src/cyclictest/cyclictest.c+18 -25 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

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

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/[email protected]/

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(-)
Signature · 1 line
2.31.1