All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Wolfgang Grandegger <wg@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] switchtest fails with pthread_create: Cannot	allocate memory
Date: Sun, 25 Jan 2009 23:40:51 +0100	[thread overview]
Message-ID: <497CEA73.4060902@domain.hid> (raw)
In-Reply-To: <4976027D.2090905@domain.hid>

Wolfgang Grandegger wrote:
> Gilles Chanteperdrix wrote:
>> Wolfgang Grandegger wrote:
>>> Hello,
>>>
>>> when I try to run "switchtest" from the test-suite, I get the error
>>>
>>>   "pthread_create: Cannot allocate memory"
>>>
>>> on my MPC5200 PowerPC board. Some resource is exhausted and likely it's
>>> system memory. I already realized heavy memory usage by threads using
>>> the Xenomai POSIX skin. 
>>>
>>> -bash-3.2# free      
>>>              total       used       free     shared    buffers     cached
>>> Mem:         61280      12044      49236          0          0       5796
>>>
>>> -bash-3.2# ./switchtest rtk0 rtk0 rtup0 rtup0 rtus0 rtus0 rtuo0
>>>
>>> -bash-3.2# free
>>>              total       used       free     shared    buffers     cached
>>> Mem:         61280      59700       1580          0          0       3932
>>>
>>> Any idea what could cause the exhaustive use of memory? Is it the same on
>>> x86? This test was  done with Linux 2.6.26 i-Pipe 2.2-07 and Xenomai 2.4.x
>>> but it's the same with trunk.
>> It not is the stack size problem described in TROUBLESHOOTING ?
> 
> Well, RTFM, it seems to be exactly the problem described in there.
> Setting "ulimit -s 2048" before starting "switchtest" helps.

What I do not understand is that switchtest sets the pthreads stack size
to 20K, so we should not have this problem...

-- 
					    Gilles.


      reply	other threads:[~2009-01-25 22:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-20 16:45 [Xenomai-help] switchtest fails with pthread_create: Cannot allocate memory Wolfgang Grandegger
2009-01-20 16:47 ` Gilles Chanteperdrix
2009-01-20 16:57   ` Wolfgang Grandegger
2009-01-25 22:40     ` Gilles Chanteperdrix [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=497CEA73.4060902@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=wg@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.