Skip to contentSkip to conversation

Latency spots due to involuntary mode switches to secondary mode.

Xenomai-core Gilles Chanteperdrix 2 participants 2 messages Jan 8, 2010 – Jan 17, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

due to bugs, it may happen that the latency test spots are due to involuntary mode switches to secondary mode. This is bad, because users testing xenomai quickly on their platform may find a bad latency, and go quickly to conclusions without even posting a mail on the mailing lists.

Avoiding this looks simple: we should enable T_WARNSW on the sampling thread, and make it the default behaviour. But unfortunately, there are platforms around such as some low-end ppc where switches to secondary mode are normal, so stopping the test when hitting such mode switches may not be the best thing to do.

So, what do you think should be done?

Signature · 1 line
					    Gilles.
#1 lore raw
Quoted 7 lines · Gilles Chanteperdrix

Hi,

due to bugs, it may happen that the latency test spots are due to involuntary mode switches to secondary mode. This is bad, because users testing xenomai quickly on their platform may find a bad latency, and go quickly to conclusions without even posting a mail on the mailing lists.

Quoted 8 lines

Avoiding this looks simple: we should enable T_WARNSW on the sampling thread, and make it the default behaviour. But unfortunately, there are platforms around such as some low-end ppc where switches to secondary mode are normal, so stopping the test when hitting such mode switches may not be the best thing to do.

So, what do you think should be done?

Let's report those switches in the test output without stopping it, so that we may have some hints when pathological latencies happen.

Signature · 1 line
Philippe.