linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: cyclictest result variations
       [not found]     ` <87370kqmec.fsf@linutronix.de>
@ 2018-03-28 15:31       ` Clark Williams
  0 siblings, 0 replies; only message in thread
From: Clark Williams @ 2018-03-28 15:31 UTC (permalink / raw)
  To: John Ogness; +Cc: Phil Edworthy, rt-users, John Kacur, Carsten Emde

On Wed, 28 Mar 2018 16:56:27 +0200
John Ogness <john.ogness@linutronix.de> wrote:

> On 2018-03-28, Phil Edworthy <phil.edworthy@renesas.com> wrote:
> >> > I found that cyclictest results vary from one run to another.
> >> >
> >> > [...]
> >> >
> >> > Is it common knowledge that cyclictest results vary so much from
> >> > one run to another? Any ideas how to mitigate this?  
> >> 
> >> It would be helpful if you provided the command arguments you use for
> >> your tests. Particularly important options to consider:
> >> 
> >>     -a / --affinity
> >>     -m / --mlockall
> >>     -n / --nanosleep
> >>     -t / --threads
> >>          --secaligned
> >> 
> >> and of course giving it an appropriate realtime priority:
> >> 
> >>     -p / --priority  
> >
> > Sure:
> > cyclictest   -m -n -Sp99 -i200 -h300 -M -D 10h  
> 
> I would recommend using prio 98 instead of 99. In general, applications
> should not be taking the CPU from the migration or watchdog tasks. And
> usually you want cyclictest to reflect the latencies of real
> applications.

Agree, please don't use fifo:99. Honestly there's no difference between fifo:51
and fifo:98. The interrupt threads default to fifo:50, so you want to be above that
but no real need to contend with migration, watchdog or posix timers. 

Also, if you are on a NUMA architecture system, you may want to use the
--numa/-U option, instead of the --smp/-S option. With that option cyclictest
uses the libnuma calls to allocate a stack on the local NUMA node for each
measurement thread (trying to avoid cross-node allocations). 

Clark

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-28 15:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <TY1PR01MB1769F9602F276EC6B3A351DDF5A30@TY1PR01MB1769.jpnprd01.prod.outlook.com>
     [not found] ` <87vadgqqgv.fsf@linutronix.de>
     [not found]   ` <TY1PR01MB17698C0EF45D762EB61E593BF5A30@TY1PR01MB1769.jpnprd01.prod.outlook.com>
     [not found]     ` <87370kqmec.fsf@linutronix.de>
2018-03-28 15:31       ` cyclictest result variations Clark Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).