All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Mathew Benson <mathew.benson@gmail.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Resource utilization
Date: Wed, 7 Jan 2015 11:12:33 +0100	[thread overview]
Message-ID: <20150107101233.GC31996@hermes.click-hack.org> (raw)
In-Reply-To: <CA+C+_XQi7Nji4Ecq2VH4KfVxRdtWouE4=APu4bhfo8Yk4dZ-Zg@mail.gmail.com>

On Tue, Jan 06, 2015 at 10:20:04AM -0600, Mathew Benson wrote:
> First, I'd like to thank all contributors for Xenomai.  I'm an embedded
> software engineer accustomed to working with the more expensive closed
> RTOSs.  So far, I'm really happy with Xenomai.
> 
> Second, is there a mechanism to monitor resource utilization from user
> space?  My application used to measure CPU idle time by busy waiting and
> counting in a low priority thread.  Not the best solution, but usually very
> portable.  However, the nucleus detects the Linux kernel is getting starved
> and flags it as a failure.

You will get the same information with /proc/xenomai/stat


>  I could move this thread to secondary mode, but
> I would rather use a native API if one exists.

That would be another information (the first information is xenomai
load, the second information is the total load). For this
information, your approach is the only available.

> 
> Similar to the previous question, what other metrics are
> available?

other metrics?

-- 
					    Gilles.


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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06 16:20 [Xenomai] Resource utilization Mathew Benson
2015-01-07 10:12 ` Gilles Chanteperdrix [this message]
2015-01-07 13:06   ` Mathew Benson
2015-01-07 14:06     ` Gilles Chanteperdrix
2015-01-07 14:30       ` Mathew Benson
2015-01-07 16:20       ` Gilles Chanteperdrix
2015-01-07 17:52         ` Mathew Benson

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=20150107101233.GC31996@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=mathew.benson@gmail.com \
    --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.