From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Yigal Goldberger <yigal_gold@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] pthread_create memory size
Date: Tue, 07 Jul 2009 19:41:53 +0200 [thread overview]
Message-ID: <4A5388E1.7070800@domain.hid> (raw)
In-Reply-To: <206278.72023.qm@domain.hid>
Yigal Goldberger wrote:
> Hi Gilles,
> Thanks for your quick reply.
> I'd like to give some more details based on some expirements I've made .
> I tried an older version of linux and xenomai (linux 2.6.14.7 ) and when I enlarged the requested stack size to 32KB instead of 8KB I saw a **dramatic** reduction in memory consumption per thread (~30MB less!!!).
> I saw that there is some minimum stack size that if trying to create a thread with a smaller value will end up with the default (2MB ?) .
> This improved to some extent the memory usage of my application also in the new version (linux 2.6.29 + new xenoami - recently ported to mpc8272ads by DENX ) , but I am getting the following :
>
> 2.6.14.7 :
> application usage : ~31MB
>
>
> 2.6.29.4
> application usage : ~180MB
>
> The application is the same in both versions , so I can't think of where ~150MB are comming from ?
As I told you in the previous mail, see /proc/pid/maps to see how the
memory is spent.
--
Gilles.
next parent reply other threads:[~2009-07-07 17:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <206278.72023.qm@domain.hid>
2009-07-07 17:41 ` Gilles Chanteperdrix [this message]
2009-07-08 10:52 [Xenomai-help] pthread_create memory size Yigal Goldberger
2009-07-08 11:12 ` 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-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=4A5388E1.7070800@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.