lkml.org 
[lkml]   [2000]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Linux 2.2.18pre8
On Fri, Sep 15, 2000 at 05:34:23PM +0100, Alan Cox wrote:
>
> o Update NR_TASKS comment (Jarkko Kovala)

The only limit cames from the GDT that can handle 8192 entries (8 bytes each),
and each task needs two of them (one for LDT and one for the TSS) and the first
12 entries are reserved (not conditionally to APM).

(8192-12)/2 = 4090

--- 2.2.18pre8/include/linux/tasks.h Fri Sep 15 19:18:38 2000
+++ /tmp/tasks.h Fri Sep 15 19:33:12 2000
@@ -11,7 +11,7 @@
#define NR_CPUS 1
#endif

-#define NR_TASKS 512 /* On x86 Max about 4000 */
+#define NR_TASKS 512 /* On x86 Max 4090 */

#define MAX_TASKS_PER_USER (NR_TASKS/2)
#define MIN_TASKS_LEFT_FOR_ROOT 4

Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.028 / U:28.656 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site