All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Roderik_Wildenburg@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] delete queues "offline"; /proc/stat
Date: Wed, 05 Jul 2006 15:33:21 +0200	[thread overview]
Message-ID: <44ABBFA1.4090706@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A3BD0B3@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1385 bytes --]

Roderik_Wildenburg@domain.hid wrote:
> when a xenomai-task crashs which created some queues (rt_queue_create)
> and I try to restart the task the creation of the queues will fail as
> the queue still exists (error EEXIST == 17). Is there a possibility to
> see which queues exist (I did not find a hint in the /proc/xenomai
> directory) and to get rid of these queues (or geneally spoken : to get
> rid of allocated resources) e.g. with a commandline tool ?

Native or posix skin? Gilles added per-process resource cleanup to the
posix skin in 2.2-rc3.

Otherwise: the names should be found in /proc/xenomai/registry. Writing
a tiny tool to pick up a name and resources type, attach to it, and then
release it should be straightforward. But I think we will have
per-process cleanup also for other skins in the future.

Stalled RTDM descriptors can be released via "echo DESCR_NO >
/proc/xenomai/rtdm/open_fildes" (I still have to make use of Gilles'
per-process cleanup also for the posix rtdm part...).

> An other question, I would appreciate some help for, is :
> How could I determine the CPU-load when a xenomai thread is running? Is
> the data provided by /proc/stat valid with xenomai ?

Nope, they aren't. We actually need to do something in this direction,
maybe a simple per-xeno-thread execution time accounting if
XENO_OPT_STATS is set.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

      reply	other threads:[~2006-07-05 13:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-05 11:50 [Xenomai-help] delete queues "offline"; /proc/stat Roderik_Wildenburg
2006-07-05 13:33 ` Jan Kiszka [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=44ABBFA1.4090706@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=Roderik_Wildenburg@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.