Re: [PATCH v1 17/28] cyclictest.8: Group SMP-related options

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

 




On Fri, 4 Jul 2025, Ahmed S. Darwish wrote:

> The number and breadth of cyclictest's options is huge, and just
> exploring them in sequence can get the manpage reader lost.
> 
> Put the cyclictest's SMP-related options:
> 
>        -S, --smp
>        -t, --threads[=NUM]
>        --mainaffinity=CPUSET
>        -a, --affinity[=PROC-SET]
> 
> into their own group.
> 
> Further groupings will be added next.
> 
> Signed-off-by: Ahmed S. Darwish <darwi@xxxxxxxxxxxxx>
> ---
>  src/cyclictest/cyclictest.8 | 46 +++++++++++++++++++------------------
>  1 file changed, 24 insertions(+), 22 deletions(-)
> 
> diff --git a/src/cyclictest/cyclictest.8 b/src/cyclictest/cyclictest.8
> index 6ab3b19..7fc0420 100644
> --- a/src/cyclictest/cyclictest.8
> +++ b/src/cyclictest/cyclictest.8
> @@ -24,6 +24,10 @@ cyclictest \- High resolution test program
>  .IR wakeup\-usec ]
>  .RB [ \-A\~\c
>  .IR alignment\-usec ]
> +.RB [ \-t\~\c
> +.IR num\-threads ]
> +.RB [ \-\-mainaffinity\~\c
> +.IR proc-set ]
>  .RB [ \-a\~\c
>  .IR proc\-set ]
>  .RB [ \-b\~\c
> @@ -42,14 +46,10 @@ cyclictest \- High resolution test program
>  .IR oscope\-red ]
>  .RB [ \-p\~\c
>  .IR thread\-prio ]
> -.RB [ \-t\~\c
> -.IR num\-threads ]
>  .RB [ \-\-histfile\~\c
>  .IR file\-path ]
>  .RB [ \-\-json\~\c
>  .IR file\-path ]
> -.RB [ \-\-mainaffinity\~\c
> -.IR proc-set ]
>  .RB [ \-\-policy\~\c
>  .IR threads\-sched\-policy ]
>  .RB [ \-\-spike\~\c
> @@ -146,7 +146,24 @@ align thread wakeups to the next full second and apply the optional offset.
>  .B \-A, \-\-align=USEC
>  Align thread wakeups to a specific offset in microseconds
>  .
> -.SS "Other options"
> +.SS "SMP-related options"
> +.
> +.TP
> +.B \\-S, \-\-smp
> +Set options for standard testing on SMP systems. Equivalent to using the
> +options: "\-t \-a" as well keeping any specified priority equal across all
> +threads
> +.
> +.TP
> +.B \-t, \-\-threads[=NUM]
> +Set the number of test threads (default is 1). Create NUM test threads. If
> +NUM is not specified, NUM is set to the number of available CPUs. See \-d,
> +\-i and \-p for further information.
> +.
> +.TP
> +.B \-\-mainaffinity=CPUSET
> +Run the main thread on CPU #N. This only affects the main thread and not
> +the measurement threads
>  .
>  .TP
>  .B \-a, \-\-affinity[=PROC-SET]
> @@ -163,6 +180,8 @@ field in /proc/cpuinfo.  See numa(3) for more information on specifying CPU
>  sets.  * Support for CPU sets requires libnuma version >= 2.  For libnuma
>  v1, PROC-SET, if specified, must be a single CPU number.
>  .
> +.SS "Other options"
> +.
>  .TP
>  .B \-b, \-\-breaktrace=USEC
>  Send break trace command when latency > USEC
> @@ -204,11 +223,6 @@ for automated tests with a given number of test cycles. Cyclictest is
>  stopped once the number of timer intervals has been reached.
>  .
>  .TP
> -.B \-\-mainaffinity=CPUSET
> -Run the main thread on CPU #N. This only affects the main thread and not
> -the measurement threads
> -.
> -.TP
>  .B \-m, \-\-mlockall
>  Lock current and future memory allocations to prevent being paged out
>  .
> @@ -247,12 +261,6 @@ Print a summary only on exit. Useful for automated tests, where only the
>  summary output needs to be captured.
>  .
>  .TP
> -.B \\-S, \-\-smp
> -Set options for standard testing on SMP systems. Equivalent to using the
> -options: "\-t \-a" as well keeping any specified priority equal across all
> -threads
> -.
> -.TP
>  .B \-\-spike=<trigger>
>  record all spikes > trigger
>  .
> @@ -267,12 +275,6 @@ The default is 1024 if not specified.
>  Enable SMI count/detection on processors with SMI count support.
>  .
>  .TP
> -.B \-t, \-\-threads[=NUM]
> -Set the number of test threads (default is 1). Create NUM test threads. If
> -NUM is not specified, NUM is set to the number of available CPUs. See \-d,
> -\-i and \-p for further information.
> -.
> -.TP
>  .B \-\-tracemark
>  write a trace mark when \-b latency is exceeded.
>  .
> -- 
> 2.49.0
> 
> 
> 
Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>





[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