All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Paul Ianna <paulianna2002@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] primary mode versus secondary mode
Date: Wed, 23 Aug 2006 22:17:34 +0200	[thread overview]
Message-ID: <1156364255.4401.71.camel@domain.hid> (raw)
In-Reply-To: <75975c320608231300t30cf5e69u7a629887d9163e40@domain.hid>

On Wed, 2006-08-23 at 16:00 -0400, Paul Ianna wrote:
> On 8/21/06, Philippe Gerum <rpm@xenomai.org> wrote:
> > Also have a look at /proc/xenomai/stats when your application runs, the
> > MSW field (i.e. Mode SWitches) counts the number of transitions for each
> > Xenomai thread. This value should not increase over time, at least for
> > latency critical threads.
> 
> Thanks Philippe, very useful.
> 
> Could you also explain the CSW, PF, and STAT fields?

CSW: # of context-switches (seen by the Xenomai scheduler, not the Linux
one)
PF: # of page faults (should stop increasing as soon as mlockall is in
effect)
STAT: a bitfield describing the internal state of the thread. Bit values
are defined in include/nucleus/thread.h (See status and mode bits). The
STAT field from /proc/xenomai/sched gives a 1-letter-per-bit symbolic
translation of a the most significant subset of those bits (from a user
POV, that is). See "Status symbols" in the same source file. 

> 
> Thanks,
> Paul
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
-- 
Philippe.




  reply	other threads:[~2006-08-23 20:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <75975c320608211235l79dfb17ft54df1018e7f597ff@domain.hid>
2006-08-21 20:21 ` [Xenomai-help] primary mode versus secondary mode Paul Ianna
2006-08-21 20:42   ` Philippe Gerum
2006-08-23 20:00     ` Paul Ianna
2006-08-23 20:17       ` Philippe Gerum [this message]
2006-08-21 20:44   ` Jan Kiszka

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=1156364255.4401.71.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=paulianna2002@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.