linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] [rt-tests] change to cyclictest behavior
@ 2010-01-06 19:04 Clark Williams
  2010-01-06 19:39 ` John Kacur
  2010-01-12 16:59 ` Sven-Thorsten Dietrich
  0 siblings, 2 replies; 15+ messages in thread
From: Clark Williams @ 2010-01-06 19:04 UTC (permalink / raw)
  To: RT; +Cc: LKML

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]

RT-ers,

I have a problem with the way cyclictest sets up measurement threads,
but before I went and changed things I thought I would ask if people
cherished this particular behavior. 

Currently, when cyclictest is run with multiple threads (i.e. -t
option) it distributes both the sample interval and the realtime
priority by adding the 'distance' parameter to the interval and
decrementing the priority by one. This means if you have a distance of
500us (default), a specified RT priority of 95 and start four threads,
they will be started with the following parameters:

$ cyclictest -t4 -p95

Will give you:

thread		priority	sample interval
0		95		500
1		94		1000
2		93		1500
3		92		2000

What I'd like to do is modify this logic so that when '-a' (affinity) is
specified, the priority and sample interval will not be altered. I
don't think there's any point in distributing the priority's and
sample intervals when the measurement threads are pinned to their own
CPU. 

So:

$ cyclictest -t4 -p95 -a

Would have each thread at SCHED_FIFO 95 and a sample interval of 500us.

Note that this behavior also occurs when the histogram (-h) option is
specified).

Thoughts?

Clark

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-01-12 17:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-06 19:04 [RFC] [rt-tests] change to cyclictest behavior Clark Williams
2010-01-06 19:39 ` John Kacur
2010-01-06 21:39   ` Carsten Emde
2010-01-06 22:04     ` Clark Williams
2010-01-06 22:24       ` Carsten Emde
2010-01-06 22:27         ` Clark Williams
2010-01-06 22:50           ` Carsten Emde
2010-01-07  0:30             ` Leyendecker, Robert
2010-01-07  7:09               ` Carsten Emde
2010-01-07  7:23           ` Carsten Emde
2010-01-07 14:47             ` Clark Williams
2010-01-07 14:54               ` Carsten Emde
2010-01-12 16:59 ` Sven-Thorsten Dietrich
2010-01-12 17:04   ` Clark Williams
2010-01-12 17:13     ` Sven-Thorsten Dietrich

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