From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Markus.Franke@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] measuring context switch primary<->secondary mode
Date: Wed, 29 Nov 2006 10:54:47 +0100 [thread overview]
Message-ID: <456D58E7.7030807@domain.hid> (raw)
In-Reply-To: <456D5075.1060905@domain.hid>
Markus Franke wrote:
> Dear Xenomai Users,
>
> I want to measure the context switch times between primary and secondary
> execution modes. Therefore I made some small modifications to the
> already present Latency-Test located in
> $(XENOMAI_ROOT)/src/testsuite/latency
>
> Basically I just changed few things in the latency-Task:
>
> ---snip---
>
> err = rt_task_wait_period(&ov);
> before_tsc = rt_timer_tsc();
> printf("This is a teststring for entering in secondary mode!\n");
> after_tsc = rt_timer_tsc();
>
> dt = after_tsc - before_tsc;
>
>
> if (dt > maxj)
> maxj = dt;
> if (dt < minj)
> minj = dt;
> sumj += dt;
>
> ---snap---
>
> After that I configured a kernel with CONFIG_PREEMPT and one without. In
> theory I should resolve much lower switch-times when I am running the
> kernel with CONFIG_PREEMPT, right? However, I can't prove this theory.
> The Switch-Times in the non-CONFIG_PREEMPT case are a bit lower than in
> the CONFIG_PREEMPT - Case.
>
You will observe some differences only if you put some load on your
system. The usual way of putting some load on your system is to use dd
or the cache calibrator. See TROUBLESHOOTING.
--
Gilles Chanteperdrix
next prev parent reply other threads:[~2006-11-29 9:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 9:18 [Xenomai-help] measuring context switch primary<->secondary mode Markus Franke
2006-11-29 9:54 ` Gilles Chanteperdrix [this message]
2006-11-29 11:40 ` Markus Franke
2006-11-30 10:19 ` Ulrich Schwab
2006-11-30 13:48 ` Markus Franke
2006-11-30 14:04 ` Jan Kiszka
[not found] ` <456EE9C4.6000203@domain.hid>
2006-11-30 15:34 ` Jan Kiszka
2006-11-30 14:30 ` Ulrich Schwab
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=456D58E7.7030807@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Markus.Franke@domain.hid \
--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.