All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stéphane ANCELOT" <sancelot@free.fr>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Context switching kernel tracing
Date: Thu, 30 May 2013 15:12:41 +0200	[thread overview]
Message-ID: <51A75049.2020504@free.fr> (raw)
In-Reply-To: <51A73A1A.8000404@xenomai.org>

On 30/05/2013 13:38, Gilles Chanteperdrix wrote:
> On 05/30/2013 09:03 AM, Stéphane ANCELOT wrote:
>
>> Hi,
>>
>> I have got some problems with an architecture, and 2 realtime tasks.
>>
>> The realtime is not always respected.
>
> Hi,
>
> a few things to check:
>
> Would there be any involuntary mode switches? See rt_task_set_mode or
> pthread_set_mode_np documentation to enable debug.
There is not any involuntary mode switches in the xenomai application.

The buggy architecture is celeron M:

Intel® 910GMLE / ICH6M chipsets

the same disk application, if setted up in the following architecture, 
has no problem:
Intel® 852GM and ICH4 chipset

Are you able to reproduce the problem with the latency test? You can 
launch several instances in parallel, if you absolutely need several 
task. If yes, then probably the easiest solution is to enable the I-pipe 
tracer, then run the latency test with the -f argument.

I have read more documentation in kernel tracing, and it seems I won't 
need lttng, but it looks like only kernel tracing would be enough ?

I have not managed to reproduce it with a single instance of latency 
test. (and I have no problem using a single rt task...) . I will try 2 
instances.

One more thing that is surprising : I monitored the tasks delay using 
clock_gettime() , the software does not watch any big lag !!! ...but it 
is visible in the scopemeter using com port signals (up to 300us 
possible !!!!) ....

I also was thinking about a problem with the high res. timers, I tried 
the HPET timers, but this has not helped.

>> This is a very strange problem in this architecture, since it happens
>> statically almost every three reboots...
>>
>> It looks like there is something in the kernel / or setted up by bios
>> that is happening and locks the task switching context.
>
> Ok, so if it has a bios, it is an x86. Which version of the I-pipe patch
> and Xenomai are you using? Can not it be an SMI issue, have you tried
> the SMI workaround?


yes, I have tried disabling SMI, but in anyway it fails as follow:

Xenomai: SMI-enabled chipset found
Xenomai: SMI workaround failed!



I have the same problem using either

kernel 2.6.34 and xenomai 2.5.6

or

kernel 3.5.7 and xenomai 2.6.2.1

Further informations on Monday.

Regards,
Steph




  reply	other threads:[~2013-05-30 13:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30  7:03 [Xenomai] Context switching kernel tracing Stéphane ANCELOT
2013-05-30 11:38 ` Gilles Chanteperdrix
2013-05-30 13:12   ` Stéphane ANCELOT [this message]
2013-05-30 18:19     ` Gilles Chanteperdrix
2013-06-03 13:33       ` Stéphane ANCELOT
2013-06-03 18:07         ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51A75049.2020504@free.fr \
    --to=sancelot@free.fr \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.