All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Philippe Gerum <rpm@xenomai.org>,
	Alexander Herzog <aherzog@tuebingen.mpg.de>,
	xenomai@xenomai.org
Subject: Re: [Xenomai] real-time guarantee issues on xenomai 2.6.2.1
Date: Thu, 07 Aug 2014 20:28:27 +0200	[thread overview]
Message-ID: <53E3C54B.4040902@xenomai.org> (raw)
In-Reply-To: <53E3C4A2.5090900@xenomai.org>

On 08/07/2014 08:25 PM, Philippe Gerum wrote:
> On 08/07/2014 07:22 PM, Gilles Chanteperdrix wrote:
>> On 08/07/2014 06:57 PM, Alexander Herzog wrote:
>>> Hi Gilles,
>>>
>>
>> Hi Alexander,
>>
>> we do not use top-posting on xenomai mailing list.
>>
>>> I haven't replied to your email for a few months. I am sorry for
>>> that, we didn't have time to dig further into this problem. However,
>>> now we went back to the issue and installed Xenomai 2.6.3 with Linux
>>> kernel 3.8.13 . Now, if we do not run 'watch -n .1 cat
>>> /proc/xeno/stat', the latency test is running just fine without
>>
>> You mean /proc/xenomai/stat, right?
>>
>>> significant latencies. However, the moment we run the watch command
>>> in parallel, things break down and the latency goes up. Is this an
>>> issue that other people see as well and is there a fix for it? Thanks
>>> for your help.
>>
>> The problem is not watch, the problem is probably /proc/xenomai/stat,
>> which creates large latencies by holding the nucleus lock for too long.
>> The issue probably does not get the attention it deserves, because
>> /proc/xenomai/stat is something people usually use during debugging
>> phases, not really on a final system. And it also probably happens in
>> some conditions only (with a large number of Xenomai threads for
>> instance), because I never observed it on the systems where I run Xenomai.
>>
> 
> That is unlikely, reading /proc/xenomai/stat is done through a snapshot
> vfile, which has been introduced to fix that issue precisely.
> 

Maybe I misunderstand the code completely, but it seems to me that
taking the snapshot is done irqs off, and is proportional to the number
of xenomai threads, so is bound to take a large time for a large number
of xenomai threads.

-- 
                                                                Gilles.


  reply	other threads:[~2014-08-07 18:28 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AE39D2A4-ECC3-481B-AF3B-8A67FA23D2BF@tuebingen.mpg.de>
     [not found] ` <44BE6908-E639-421F-B556-E7B3871402CF@gmail.com>
2014-08-07 16:57   ` [Xenomai] real-time guarantee issues on xenomai 2.6.2.1 Alexander Herzog
2014-08-07 17:22     ` Gilles Chanteperdrix
2014-08-07 18:25       ` Philippe Gerum
2014-08-07 18:28         ` Gilles Chanteperdrix [this message]
2014-08-07 18:45           ` Philippe Gerum
2014-08-07 18:47       ` Paul Janzen
2014-08-07 19:01         ` Philippe Gerum
2014-08-07 19:16           ` Ludovic Righetti
2014-08-07 19:26             ` Philippe Gerum
2014-08-07 19:35               ` Ludovic Righetti
2014-08-07 19:44                 ` Philippe Gerum
2014-08-07 19:56                   ` Gilles Chanteperdrix
2014-08-08  6:59                     ` Philippe Gerum
2014-08-08 12:05                       ` Gilles Chanteperdrix
2014-08-07 20:47                   ` Ludovic Righetti
2014-08-08  7:15                     ` Philippe Gerum
2014-08-08 17:21                       ` Paul Janzen
2014-08-08 17:25                         ` Philippe Gerum
2014-08-08 18:27                           ` Paul Janzen
2014-08-10 15:56                             ` Gilles Chanteperdrix
2014-08-11 16:54                               ` Paul Janzen
2014-08-11 17:25                                 ` Gilles Chanteperdrix
2014-08-11 17:43                                   ` Paul Janzen
2014-09-09 21:05                                     ` Gilles Chanteperdrix
2014-09-10 17:12                                       ` Nicholas Rotella
2014-08-11 23:25                       ` Ludovic Righetti
2014-08-07 19:26         ` Gilles Chanteperdrix
2014-03-04 19:55 Alexander Herzog
2014-03-05  8:02 ` 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=53E3C54B.4040902@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=aherzog@tuebingen.mpg.de \
    --cc=rpm@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.