From: Jochen Behnke <jk.behnke@web.de>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] "RT throttling" issue
Date: Sun, 29 Nov 2015 10:30:49 +0100 [thread overview]
Message-ID: <565AC5C9.8090807@web.de> (raw)
In-Reply-To: <20151128064325.GC10399@hermes.click-hack.org>
Hello Gilles,
in the meanwhile I added rt_timer_tsc as a second alternative to measure
elapsed time. rt_timer_tsc returns values that are a somewhat greater
than expected (around 39 ms instead of expected 20 ms), but still
reasonable.
> On Thu, Nov 26, 2015 at 11:32:57AM +0100, JK.Behnke@web.de wrote:
>> Hello,
>>
>> in my xenomai 2.6.3 application I sporadically experience very long execution times of
>> a task that switches back and forth between secondary and primary mode.
>>
>> I added the following code to measure elapsed and cpu time
>> //------------- start code snippet ---------------
>> struct rusage rsgT1;
>> struct rusage rsgT2;
>> struct timeval tvT1;
>> struct timeval tvT2;
>> gettimeofday(&tvT1, NULL);
>
> Do you observe the same problem with Xenomai 2.6 git head, if you
> use clock_gettime(CLOCK_HOST_REALTIME) instead of gettimeofday, at
> least for threads running in primary mode ?
>
I'll give Xenomai 2.6 git head a try.
Thanks for your help.
Regards
Jochen
next prev parent reply other threads:[~2015-11-29 9:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-26 10:32 [Xenomai] "RT throttling" issue JK.Behnke
2015-11-28 6:43 ` Gilles Chanteperdrix
2015-11-29 9:30 ` Jochen Behnke [this message]
2015-12-01 13:09 ` JK.Behnke
2015-12-01 18:11 ` Gilles Chanteperdrix
2015-12-02 12:58 ` JK.Behnke
2015-12-04 16:24 ` JK.Behnke
2015-12-04 16:33 ` Gilles Chanteperdrix
2015-12-04 19:09 ` Jochen Behnke
2015-12-04 20:41 ` Gilles Chanteperdrix
2015-12-08 10:42 ` Jochen Behnke
2015-12-08 11:05 ` Gilles Chanteperdrix
2015-12-08 12:12 ` Jochen Behnke
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=565AC5C9.8090807@web.de \
--to=jk.behnke@web.de \
--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.