Hi L4 Hackers!
When creating new threads within the L4Linux kernel, I "sometimes" (whatever that means) get the following output and error:
*l4lx | l4lx_thread_create: Created thread 0e.1a (Command) --Thread names exhausted!--------------------------------IP: 0050758e
What does that mean? After pressing "g", the system continues running. However when I try to kill the thread later, I get the following:
--Unknown TID to delete thread name!---------------------IP: 0050760a
Is it not possible to create more than 0x19 = 25 threads within the L4Linux kernel? Or am I doing anything wrong?
Regards Oskar.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
When creating new threads within the L4Linux kernel, I "sometimes" (whatever that means) get the following output and error:
*l4lx | l4lx_thread_create: Created thread 0e.1a (Command) --Thread names exhausted!--------------------------------IP: 0050758e
What does that mean? After pressing "g", the system continues running. However when I try to kill the thread later, I get the following:
--Unknown TID to delete thread name!---------------------IP: 0050760a
Is it not possible to create more than 0x19 = 25 threads within the L4Linux kernel? Or am I doing anything wrong?
You don't make a mistake. The thread library has a default setting for the maximum number of threads. You can increase this number by setting something like
const int l4thread_max_threads = 100;
in your application.
Bjoern
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Forget my last answer. I overlooked that you had an L4Linux problem. The solution is nearly the same, but in L4Linux you need to change the definition of L4LX_THREAD_NO_THREADS in asm/l4lxapi/generic/thread_gen.h
Bjoern
Hi Björn!
Forget my last answer. I overlooked that you had an L4Linux problem. The solution is nearly the same, but in L4Linux you need to change the definition of L4LX_THREAD_NO_THREADS in asm/l4lxapi/generic/thread_gen.h
Ok, I see. Is there a reason why it is set explicitly to 24? Are there any side effects of increasing that number?
Regards Oskar.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
L4LX_THREAD_NO_THREADS in asm/l4lxapi/generic/thread_gen.h
Ok, I see. Is there a reason why it is set explicitly to 24? Are there any side effects of increasing that number?
I assume 24 is as good as any other number. L4Linux consumes some more memory with more threads enabled.
Bjoern
On Fri Aug 25, 2006 at 12:21:45 +0200, Oskar Senft wrote:
Forget my last answer. I overlooked that you had an L4Linux problem. The solution is nearly the same, but in L4Linux you need to change the definition of L4LX_THREAD_NO_THREADS in asm/l4lxapi/generic/thread_gen.h
Ok, I see. Is there a reason why it is set explicitly to 24?
Because that's usually enough for common usage.
Are there any side effects of increasing that number?
Increased memory usage.
Adam
l4-hackers@os.inf.tu-dresden.de