All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Method for measuring CPU idle time in Xenomai?
@ 2014-11-28 18:00 Terje Frøysa
  2014-12-01  7:29 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Terje Frøysa @ 2014-11-28 18:00 UTC (permalink / raw)
  To: xenomai@xenomai.org

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?

Best regards
Terje Froysa

Smail: Terje Frøysa, SINTEF ICT (Information and Communication Technology), N-7465 Trondheim, Norway.
Email: terje.froysa@sintef.no<blocked::mailto:terje.froysa@sintef.no> <mailto:terje.froysa@sintef.no<blocked::mailto:terje.froysa@sintef.no>>
Phone: +47 930 03603
Company: Independent R&D, see <http://www.sintef.no/<blocked::http://www.sintef.no/>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai] Method for measuring CPU idle time in Xenomai?
  2014-11-28 18:00 [Xenomai] Method for measuring CPU idle time in Xenomai? Terje Frøysa
@ 2014-12-01  7:29 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2014-12-01  7:29 UTC (permalink / raw)
  To: Terje Frøysa; +Cc: xenomai@xenomai.org

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-01  7:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.