All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Adrien LECOINTRE <adrien20@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Square wave jitter reduce with cpu load
Date: Fri, 22 May 2009 15:06:54 +0200	[thread overview]
Message-ID: <4A16A36E.7050209@domain.hid> (raw)
In-Reply-To: <4A169F11.9000702@domain.hid>

Adrien LECOINTRE wrote:
> Hello,
> 
> I wrote a simple program toggling a pin of the parallel port every 20 

A period of 20us is preposterous, this is not what Xenomai is made for.

> us. I observe with a scope a jitter of 4 us on my square wave. Then I 
> added a background cpu load task and I expected to observe a bigger 
> jitter but in fact the jitter becomes inferior than 1 us.

Your cpu load task is preposterous too:
- your system remains in the Xenomai domain, which you should never do;
for Linux to work correctly, you have to let Linux run from time to time;
- your cpu load task is a short loop, so it does not have any effect on
the cache, so your square wave task remains in the cache, and when it
needs to run, there is no cache effect.

-- 
                                                 Gilles.


      reply	other threads:[~2009-05-22 13:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-22 12:48 [Xenomai-help] Square wave jitter reduce with cpu load Adrien LECOINTRE
2009-05-22 13:06 ` Gilles Chanteperdrix [this message]

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=4A16A36E.7050209@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=adrien20@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.