lkml.org 
[lkml]   [1998]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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    [W:0.053 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site