All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "M. Koehrer" <mathias_koehrer@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai and Perfmon2?
Date: Mon, 12 Jan 2009 10:10:06 +0000	[thread overview]
Message-ID: <496B16FE.7000404@domain.hid> (raw)
In-Reply-To: <21175505.1231747787507.JavaMail.ngmail@domain.hid>

M. Koehrer wrote:
> Hi everybody,
> 
> I am using Xenomai for real time system that has to compute complex simulations.
> For that, not only real time behaviour but also computation power is relevant.
> I am using Intel's Core 2 Duo/Quad CPUs.
> The perfom2 package (http://perfmon2.sourceforge.net/) allows to access the CPU's
> perfomance monitoring registers fairly easily.
> It contains a kernel patch and a user mode frontend.
> I have now tried to apply the Xenomai patch (first) and the perfom2 patch (second) which seems to work
> (some slight modifications on the perfom2 patch have been necessary) partially.
> I can now use the system-wide mode of pfmon, however I can not attach from pfmon to a running
> realtime task (the kernel freezes), but at least the system-wide mode is quite helpful.
> 
> My questions to this combination:
> - Can the perfmon2 kernel patch somehow destroy the real time behaviour of the Xenomai executable?
> 
> - I am mostly interested in things like EIST mode (Intel speed Step) changes, bus access delays etc.
> Is there more simple way to access this information but using the perfom2 patch?
> 
> Thanks for any response on that questions!

Hi Mathias,

you can not apply a patch made for Linux to a xenomai-patched kernel and
hope that it automatically works for Xenomai, it does not work that way,
you will have to modify the patch to get it running with Xenomai.
Without any modification the patch will only work for plain linux tasks.

If the patch is simple, the modifications may be simple too (for
instance, replacing some spinlocks with ipipe_spinlocks), but you are
talking about a 900K patch, I am afraid it will require more work.

As for Intel speed Step, it is not recommended to run xenomai with it:
Xenomai assumes a constant CPU frequency.

Regards.

-- 
                                                 Gilles.


      reply	other threads:[~2009-01-12 10:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-12  8:09 [Xenomai-help] Xenomai and Perfmon2? M. Koehrer
2009-01-12 10:10 ` 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=496B16FE.7000404@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=mathias_koehrer@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.