From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jefferson Noxon <jeff@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Maximum number of kernel tasks?
Date: Sun, 16 Nov 2008 19:58:16 +0100 [thread overview]
Message-ID: <49206D48.4010106@domain.hid> (raw)
In-Reply-To: <ea7e69bd0811161026q4481e280l7dcf664fee50eeec@domain.hid>
Jefferson Noxon wrote:
> Hello,
>
> This is my first project using Xenomai. I have a Diamond Systems Athena II
> board with an 800 MHz VIA Mark (Corefusion) chip. I built Xenomai 2.4.5 with
> Linux kernel 2.6.26.5 and I-pipe 2.0-09.
>
> For some reason I can create 7 kernel tasks just fine, but the 8th task
> fails with -ENOMEM in rt_task_create(). I increased the heap size from 128Kb
> to 256Kb, but the problem persists. If I remove my kernel module and re-load
> it after a task creation fails, I get an oops in __xntimer_init after
> starting my first task (which is periodic).
This should be fix in xenomai 2.4.6.
>
> If I build the same code to run in user-space (I have ifdefs allowing me to
> build it either way), I can create as many tasks as I want and my code
> behaves exactly as I would expect it to.
>
> I imagine I am probably doing something stupid, but since it works in user
> mode I'm not sure what to check. Is there a limit of RT kernel tasks? If
> not, any pointers on how to debug this would be appreciated.
Did you try to change the stack pool setting in kernel configuration?
--
Gilles.
next prev parent reply other threads:[~2008-11-16 18:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-16 18:26 [Xenomai-help] Maximum number of kernel tasks? Jefferson Noxon
2008-11-16 18:58 ` Gilles Chanteperdrix [this message]
2008-11-17 1:59 ` Jefferson Noxon
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=49206D48.4010106@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jeff@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.