All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Maximum number of realtime tasks
@ 2006-10-31  8:51 Frits de Klark
  2006-10-31  9:04 ` Philippe Gerum
  2006-10-31  9:13 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 8+ messages in thread
From: Frits de Klark @ 2006-10-31  8:51 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

Hello everyone,

I'm thinking about implementing a tcp/ip socket server where I assign each
incoming connection 2 realtime tasks; 1 one for transmitting data and 1 for
receiving data. I'm aware of the fact that the tasks will lose their
realtime capacities, but I want to do some tests nonetheless.
I was wondering if there is a limit on the number of realtime tasks I can
allocate and run at the same time. Is there any?
And may there be other problems to expect?

Thanks very much for your help,

Frits

[-- Attachment #2: Type: text/html, Size: 542 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [Xenomai-help] Maximum number of realtime tasks
@ 2006-10-31 11:38 Daniel Schnell
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel Schnell @ 2006-10-31 11:38 UTC (permalink / raw)
  To: xenomai

Gilles Chanteperdrix wrote:
> 
> Pay attention to the stack size of the user-space tasks: the default 
> of 8 Megabytes will exhaust your RAM rapidly. So, you should either :
> - set the default stack size with ulimit;
> - or set the the stack size of the created threads, but in this case 
> the main thread will have an 8 Megabytes stack.
> 
> In order to set the stack size of a thread, use 
> pthread_attr_setstacksize if using the POSIX skin or the stksize 
> parameter of rt_task_create if using the native skin.

If I set the stacksize generally via ulimit -s and additionally via the
pthread_attr_setstacksize() how is the precedence of one of these calls
over the other ? Does pthread_attr_setstacksize() "overwrite" the stack
size limitation of ulimit -s ?

Daniel.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-10-31 15:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-31  8:51 [Xenomai-help] Maximum number of realtime tasks Frits de Klark
2006-10-31  9:04 ` Philippe Gerum
2006-10-31  9:13 ` Gilles Chanteperdrix
2006-10-31 11:38   ` Daniel Schnell
2006-10-31 11:54     ` Gilles Chanteperdrix
2006-10-31 12:15       ` Daniel Schnell
2006-10-31 15:43         ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2006-10-31 11:38 Daniel Schnell

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.