Michael Mess wrote:
>
> Hi!
>
> in /usr/src/linux/include/linux/tasks.h I read:
[snip]
> Why is NR_TASKS limited to 4092 for x86 ?
This limitation has been removed in more recent kernels. Older kernels
used hardware task switching on the x86 by using 2 GDT (global
descriptor table) entries per task. There are only 8192 GDT entries
available, and the kernel needs a few for other uses. Newer kernels use
2 GDT entries per cpu and then switch tasks in software, which allows
for an unlimited number of tasks and keeps the GDT size small.
--Brian Gerst
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:09 EST