Re: Linux 2.2.18pre8

2000-09-15 Thread Andrea Arcangeli

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.hFri Sep 15 19:18:38 2000
+++ /tmp/tasks.hFri 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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Linux 2.2.18pre8

2000-09-15 Thread Andrea Arcangeli

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.hFri Sep 15 19:18:38 2000
+++ /tmp/tasks.hFri 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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/