public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Alois Zoitl <alois@gmx.at>
To: Pieter-Jan Busschaert <pieterjan.busschaert@gmail.com>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Thread activation disturbed by lower priority threads]
Date: Thu, 23 Aug 2007 20:38:00 -0000	[thread overview]
Message-ID: <46CDF045.7080303@gmx.at> (raw)
In-Reply-To: <950a36fb0708170108s3d66dde6yc42e5bd49efaff36@mail.gmail.com>

Hi

> To have more detailed info about this, you could turn on kernel
> instrumentation and enable CLOCK, MUTEX and SCHEDULER events. For more
> info, see here :
> http://ecos.sourceware.org/docs-latest/user-guide/kernel-instrumentation.html

I tried a little bit with the kernel instrumentation, but could not get 
any results I could handle.
What i did was to further investigate which of my mutexes was the 
problematic one. And it is the one
I initiali thought will make a problem.

This mutex locks at some stage each of my threads. As soon as I remove 
this mutex (with special test apps this is not a problem) the scheduling 
is as expected. As soon as I add the mutex I get the problem again. Even 
the thread which is disturbed will access the mutex later in its 
execution its activation is delayed. It looks as this mutex gets an very 
high priority although I use priority inheritance.

For my current test I found it that priority inversion will not be a big 
problem. At least currently. So i'm fine without a priority inversion 
protocol.
Nonetheless Its ok for me to further investigate the problem if I can 
help to improve eCos.

cheers
Alil

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  parent reply	other threads:[~2007-08-23 20:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-17  7:34 Alois Z.
2007-08-17  8:08 ` Pieter-Jan Busschaert
2007-08-17  8:14   ` Andrew Lunn
2007-08-17  8:46     ` Pieter-Jan Busschaert
2007-08-17  8:59       ` Andrew Lunn
2007-08-23 20:38   ` Alois Zoitl [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-08-07 14:02 Alois Z.
2007-08-07 14:41 ` Andrew Lunn
2007-08-07 17:35   ` Paul D. DeRocco
2007-08-07 18:55     ` Andrew Lunn
     [not found]   ` <20070808075810.250840@gmx.net>
2007-08-08  8:10     ` Andrew Lunn
2007-08-16 20:05       ` Alois Zoitl
2007-08-16 20:22         ` Andrew Lunn
     [not found]           ` <20070817072849.22110@gmx.net>
2007-08-17  8:08             ` Andrew Lunn

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=46CDF045.7080303@gmx.at \
    --to=alois@gmx.at \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=pieterjan.busschaert@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).