From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Divi Oillo <divi.oillo@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Problem getting the time with a kernel patched with xenomai
Date: Thu, 06 May 2010 10:15:35 +0200 [thread overview]
Message-ID: <4BE27AA7.2070302@domain.hid> (raw)
In-Reply-To: <o2hcfed72901005060052o40bcc542gf42d45e3488c43f1@domain.hid>
Divi Oillo wrote:
> Hi, I post this message because I need a little help.
Hi,
> (...)
> gettimeofday(×tamp_sav,NULL);
> nanosleep(&req,&req);
> gettimeofday(×tamp,NULL);
> (...)
Note that your application does not benefit from any improvements made
by Xenomai, it is using Linux services.
> Why do I have +10010 µs or +10011 µs between each dating with my xenomai
> kernel and approximately +300 µs with my non-patched kernel?
> Thanks.
To obtain such results, you are probably running your test on an idle
system. But anyway, the problem is probably that the vanilla
configuration probably has high resolutions timers running, whereas the
Xenomai patched kernel has not.
Whether high resolution timers are enabled is both a question of
kernel-configuration (CONFIG_HIGHRES_TIMERS, CONFIG_X86_LOCAL_APIC,
CONFIG_HPET have an influence), and a question of run-time decisions.
You should find some hints in the kernel messages.
Regards.
--
Gilles.
next prev parent reply other threads:[~2010-05-06 8:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-06 7:52 [Xenomai-help] Problem getting the time with a kernel patched with xenomai Divi Oillo
2010-05-06 8:15 ` Gilles Chanteperdrix [this message]
[not found] ` <i2kcfed72901005060830q1d29f948x4b558e2cf8cb617a@domain.hid>
2010-05-06 19:17 ` Gilles Chanteperdrix
2010-05-06 19:42 ` 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=4BE27AA7.2070302@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=divi.oillo@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.