From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai 2.5.6 with PPC-Kernel 2.4.25
Date: Tue, 21 Jun 2011 16:05:36 +0200 [thread overview]
Message-ID: <4E00A530.1060601@domain.hid> (raw)
In-Reply-To: <1308662104.2125.50.camel@domain.hid>
On 06/21/2011 03:15 PM, Philippe Gerum wrote:
> On Tue, 2011-06-21 at 15:05 +0200, roderik.wildenburg@domain.hid
> wrote:
>>> But more importantly, since, the time when we print the result is so
>>> imprecise, some variations are normal, so, chances are that the 2%
>>> variation is normal.
>>>
>>
>> Ok. Here is a switchtest with Xenomai 2.4.9 on PPC-Kernel 2.4.25 and indeed fluctuation is again about 2%.
>> But the number of context switches is just about 25% of switchtest from Xeno 2.5.6 on a PPC-2.6.34. Did you change the tasks period from 2.4.9 to 2.5.6?
>> So, if the gurus say this variation is within the normal bandwidth it is ok for me.
>
> The number of switches is related to the number of tasks running in this
> test, nofpu reduces this number. So that is ok. The problem with this
> test is that switches/sec values are sampled by a regular linux thread
> which nanosleeps, so at least over 2.4, the delay is not accurate. So
> the number of switches observed can't be either.
The task which nanosleeps does not really sample the number of context
switches, it is part of the context switches chain, and simply prints
the number when it sees that the last time the number was printed is
more than 1s ago. So, how many context switches happen depends greatly
on how many time the context switches chain passed by this task, and so
is not regular.
The switchtest code also changed between 2.4 and 2.6, which is why you
can not compare the numbers.
Pay no attention to the number of context switches. All which matters is
that this number increase over time, this is why we print them.
--
Gilles.
next prev parent reply other threads:[~2011-06-21 14:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 8:52 [Xenomai-help] Xenomai 2.5.6 with PPC-Kernel 2.4.25 roderik.wildenburg
2011-06-14 9:39 ` Philippe Gerum
2011-06-14 12:47 ` roderik.wildenburg
2011-06-18 8:50 ` Philippe Gerum
2011-06-18 13:44 ` Gilles Chanteperdrix
2011-06-18 14:21 ` Philippe Gerum
2011-06-21 10:04 ` roderik.wildenburg
2011-06-21 10:35 ` Philippe Gerum
2011-06-21 11:22 ` roderik.wildenburg
2011-06-21 11:33 ` Gilles Chanteperdrix
2011-06-21 13:05 ` roderik.wildenburg
2011-06-21 13:15 ` Philippe Gerum
2011-06-21 13:51 ` roderik.wildenburg
2011-06-21 14:05 ` Gilles Chanteperdrix [this message]
2011-06-21 14:35 ` Philippe Gerum
2011-07-03 15:48 ` Philippe Gerum
2011-07-04 9:43 ` roderik.wildenburg
2011-06-18 14:35 ` Philippe Gerum
2011-06-18 14:44 ` 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=4E00A530.1060601@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--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.