From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4E1D8389.7050305@domain.hid> Date: Wed, 13 Jul 2011 12:37:45 +0100 From: Jakub Nowacki MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Xenomai-help] Stack size of created task 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, I had a slight problem with freezing tasks in RTXI using Xenomai. Namely, task was working normally for some time and then froze, but just RTXI/task not the whole system. I've found that it was caused by the stack size of a task set to 2000B during the creation. Changing it to 0, i.e., automatic stack size fixed the freezing. My question is what is a preferred value there? Before on the list I asked about a problem with the stack size in the kernel being to small for switchtest to run properly on i7 machine. There, one of the answers was that safe bet is 8kB for 64-bit machine. I'm not sure should I leave the stack size in rt_task_create to 0 or to some high value or it should be machine dependent? What is being put on this stack and how to determine it's size depending on the complexity of the task (number of vars?)? Cheers, Jakub