From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <558095.42393.qm@domain.hid> Date: Tue, 7 Jul 2009 07:06:02 -0700 (PDT) From: Yigal Goldberger MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Xenomai-help] pthread_create memory size List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org 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.