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/
This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:26 EST