All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: wolfgang.netbal@sigmatek.at, Xenomai Mailing List <xenomai@xenomai.org>
Subject: Re: [Xenomai] Problem that the Linux scheduler is not called for some ms
Date: Tue, 22 Sep 2015 20:44:49 +0200	[thread overview]
Message-ID: <5601A1A1.2020506@siemens.com> (raw)
In-Reply-To: <56016225.5090601@sigmatek.at>

On 2015-09-22 16:13, Wolfgang Netbal wrote:
> 
> 
> Hi guys
> 
> I have a problem that the linux scheduler is not called for some ms.
> The cpu load is very low.
> 
> Im using a iMX6, linux kernel 3.0.42 and xenomai 2.6.2.1.
> 
> I have attached a graphical task trace where you can see the task switches.
> The tasks with prefix X- are xenomai task, the prefix L- means linux task.
> In the first line you can see the tick from a fpga to start the folowing
> tasks, X-realtime, X-cyclic, X-Loader and X-background.
> The X-Cyclic task is switching to linux (L-Cyclic) in each cycle because
> it is calling UDP functions.
> Up the mark 195 ms everthing is working correct.
>  From the mark 195 ms up to 199 ms there is no linux task (L-) running.
> I have also seen that the linux scheduler function is not called from
> the mark 195ms to 199ms.
> 
> Does anybody know what is the problem ?
> Are there some linux/xenomai settings to modify this behavior ?

As you already recorded (f)traces, just dive deeper and check why some
of the Linux tasks are blocked, ie. when they go to sleep, check the
reason. And then, when they wake up again, check who woke them up and
via which mechanism. Maybe that will provide some trace to what goes wrong.

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux


  reply	other threads:[~2015-09-22 18:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5601617F.3080800@sigmatek.at>
2015-09-22 14:13 ` [Xenomai] Problem that the Linux scheduler is not called for some ms Wolfgang Netbal
2015-09-22 18:44   ` Jan Kiszka [this message]
     [not found]     ` <560263A0.4080208@sigmatek.at>
2015-09-23  8:51       ` [Xenomai] Fwd: " Harald Feßl
2015-09-23 10:36         ` Jan Kiszka
2015-09-24 14:46           ` Harald Feßl
2015-09-25  8:44           ` Harald Feßl
2015-09-29 12:38             ` Johann Obermayr
2015-09-29 15:56               ` Philippe Gerum
     [not found]                 ` <561256C6.4070508@sigmatek.at>
     [not found]                   ` <561264DD.2020803@xenomai.org>
2015-10-07  9:01                     ` Johann Obermayr
2015-10-07  9:07                       ` Philippe Gerum
2015-10-07 14:23                         ` Harald Feßl
2015-10-07 15:27                           ` Philippe Gerum
2015-10-08  7:29                             ` Harald Feßl
2015-10-14  7:29                               ` Harald Feßl
2015-10-14  8:15                                 ` Philippe Gerum
2015-10-19  9:37                                   ` Harald Feßl
2015-10-22 13:26                                     ` Harald Feßl
2015-10-23  8:02                                       ` Philippe Gerum

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=5601A1A1.2020506@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=wolfgang.netbal@sigmatek.at \
    --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.