All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Harald Feßl" <harald.fessl@sigmatek.at>
To: jan.kiszka@siemens.com, xenomai@xenomai.org
Subject: Re: [Xenomai] Fwd: Re: Problem that the Linux scheduler is not called for some ms
Date: Wed, 23 Sep 2015 10:51:28 +0200	[thread overview]
Message-ID: <56026810.8040300@sigmatek.at> (raw)
In-Reply-To: <560263A0.4080208@sigmatek.at>

Hi

The linux tasks are not blocked (not all).
I think the problem is , that the linux scheduler function in the kernel 
is not called for some ms.
I have also traced the calls to the scheduler function
"static int __sched __schedule(void)"
and sometimes when the decribed problem occur this function is not 
called while no linux task are running.

Harald Fessl


> 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


> 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 ?
>
>


  parent reply	other threads:[~2015-09-23  8:51 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
     [not found]     ` <560263A0.4080208@sigmatek.at>
2015-09-23  8:51       ` Harald Feßl [this message]
2015-09-23 10:36         ` [Xenomai] Fwd: " 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=56026810.8040300@sigmatek.at \
    --to=harald.fessl@sigmatek.at \
    --cc=jan.kiszka@siemens.com \
    --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.