lkml.org 
[lkml]   [1998]   [Jun]   [10]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 10 Jun 1998 09:45:25 +0100 (BST)
FromMark Anthony Lisher <>
SubjectMax number of TASKS on i386 arch
Am I correct in thinking the maximum number of tasks (processes + kernel
threads) is approx 4080?

Setting NR_TASKS to much greater than 4080 causes an overflow in
arch/i386/kernel/head.S it tries it store a value of ((12+2*NR_TASKS)*8-1)
(with NR_TASKS=4080 this becomes 65375, just within the 2^16 of a word)
in a 16bit work. This value appears to by loaded by a
	lgdt gdt_descr
instruction. I don't know x86 assembly and at this point it goes straight
over my head.

I am writing a large parallel IO system a would like to use kernel
threads (glibc2) to handle the IO connections and make use of multiple
processors.

Any thoughts?

  Mark
   ________________________________________________________________________
  |- Mark Anthony Lisher                       -|- icq: 1283233 markal    -|
  |- Coconut Software Limited                  -|- ---------------------- -|
  |- mal@coconut.co.uk                         -|- Home: markal@iname.com -|
  |- Tel: +44 1534 498051 Fax: +44 1534 490866 -|-       +44 1534 874682  -|
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2008