From: Philippe Gerum In-Reply-To: <4B470580.3060607@domain.hid> References: <4B470580.3060607@domain.hid> Content-Type: text/plain; charset="UTF-8" Date: Sun, 17 Jan 2010 22:56:32 +0100 Message-ID: <1263765392.2428.907.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] Latency spots due to involuntary mode switches to secondary mode. List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: Xenomai core On Fri, 2010-01-08 at 11:14 +0100, Gilles Chanteperdrix wrote: > 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? > Let's report those switches in the test output without stopping it, so that we may have some hints when pathological latencies happen. -- Philippe.