All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Yigal Goldberger <yigal_gold@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] pthread_create memory size
Date: Wed, 08 Jul 2009 13:12:49 +0200	[thread overview]
Message-ID: <4A547F31.5010003@domain.hid> (raw)
In-Reply-To: <336414.37218.qm@domain.hid>

Yigal Goldberger wrote:
> Hi Gilles,
> 
> I enlarged the stack size during thread creation to 256KB and reduced
> the memory usage by ~140MB , this is roughly explained by an 8MB
> stack per thread .So there is no memory problem . Your quick and
> helpful responses are much appreciated.

Ok. But to avoid doing this tuning blindly, you can use
PTHREAD_STACK_MIN, and I believe checking pthread_attr_setstacksize
return value should tell you if the stack size you try is accepted.

-- 
					    Gilles.


  reply	other threads:[~2009-07-08 11:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08 10:52 [Xenomai-help] pthread_create memory size Yigal Goldberger
2009-07-08 11:12 ` Gilles Chanteperdrix [this message]
     [not found] <852117.36446.qm@domain.hid>
2009-07-08  8:26 ` Gilles Chanteperdrix
     [not found] <206278.72023.qm@domain.hid>
2009-07-07 17:41 ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2009-07-07 14:06 Yigal Goldberger
2009-07-07 14:11 ` Gilles Chanteperdrix
2009-07-07 14:13   ` Gilles Chanteperdrix

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=4A547F31.5010003@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    --cc=yigal_gold@domain.hid \
    /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.