From: Yigal Goldberger <yigal_gold@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] pthread_create memory size
Date: Tue, 7 Jul 2009 07:06:02 -0700 (PDT) [thread overview]
Message-ID: <558095.42393.qm@domain.hid> (raw)
Hi all,
I'm using xenomai on kernel 2.6.29 on a powerpc based board.
I see that when I call :
cat proc/meminfo
before pthread_create and after it there is a difference of 2MB in free memory , indicating that the thread is being allocated 2MB of ram (?) .
before :
MemTotal: 256868 kB
MemFree: 227624 kB
After :
MemTotal: 256868 kB
MemFree: 225632 kB
I am calling pthread_attr_setstacksize(&attr,8192)
before calling pthread_create so it shouldn't be the stack size .
Is this the expected memory consuption per thread ?
if not, how can I reduce this ?
Thanks ,
Yigal Goldberger.
next reply other threads:[~2009-07-07 14:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 14:06 Yigal Goldberger [this message]
2009-07-07 14:11 ` [Xenomai-help] pthread_create memory size Gilles Chanteperdrix
2009-07-07 14:13 ` Gilles Chanteperdrix
[not found] <206278.72023.qm@domain.hid>
2009-07-07 17:41 ` Gilles Chanteperdrix
[not found] <852117.36446.qm@domain.hid>
2009-07-08 8:26 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2009-07-08 10:52 Yigal Goldberger
2009-07-08 11:12 ` 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=558095.42393.qm@domain.hid \
--to=yigal_gold@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.