From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Terje Frøysa" <Terje.Froysa@sintef.no>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Method for measuring CPU idle time in Xenomai?
Date: Mon, 1 Dec 2014 08:29:53 +0100 [thread overview]
Message-ID: <20141201072953.GP2964@hermes> (raw)
In-Reply-To: <314E5ECDAA86314791309FA670550F89C9C4C7FA@SINTEFEXMBX05.sintef.no>
On Fri, Nov 28, 2014 at 06:00:27PM +0000, Terje Frøysa wrote:
> Dear Sirs,
>
> I have now four real time processes running and a mix of rt-tasks and Linux tasks.
> In a pure Linux environment, CPU idle time can be estimated by:
>
> awk '{print ($2*100)/$1 " % idle over "$1/60 " min"}' /proc/uptime
>
> Question:
> Will this method apply in an Xenomai environment too?
> If not, is there any method that will apply?
I am not sure Linux load average calculations stay valid with
Xenomai running. For Xenomai tasks, /proc/xenomai/stat will give you
the cpu consumption, but all linux activities will appear as the
root task, whether idle or not.
--
Gilles.
prev parent reply other threads:[~2014-12-01 7:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-28 18:00 [Xenomai] Method for measuring CPU idle time in Xenomai? Terje Frøysa
2014-12-01 7:29 ` 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=20141201072953.GP2964@hermes \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Terje.Froysa@sintef.no \
--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.