Message-ID: <53F6E307.7050606@xenomai.org> Date: Fri, 22 Aug 2014 08:28:23 +0200 From: Philippe Gerum MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] ENOMEM returned from rt_task_create and rt_sem_create List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Steve Hartmann , "xenomai@xenomai.org" On 08/21/2014 10:04 PM, Steve Hartmann wrote: > Hi folks, > > I am using linux 3.2.21 + xenomai 2.6.2.1 on intel core i7. This is a user land application. > > This code I am having issues with was working pretty well until I added some more semaphores. As it runs right now, it will call rt_sem_create 544 times, then call a single rt_task_create. There are also about 15 mutexes created also. I didn't count it, but somewhere around 520 or so semaphores, I start getting ENOMEM returned from both of these methods. > > Is there a way I can increase whatever memory pool these are pulling from? It is feasible to rewrite the code so I use less semaphores, but if it is not detrimental, I would like to just raise whatever limit it is that I am running into. > Raising CONFIG_XENO_OPT_SYS_HEAPSZ should fix this issue. -- Philippe.