[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Re : Re:fork()



On Mon, Aug 16, 1999 at 11:21:46PM -0700, Vimal Mathew wrote:
> Hi,
> Arun Sharma wrote ...
> >Look for NR_TASKS in linux/include
> Thanks a lot!! But, on the way, I came across some other stuff...
> #define NR_TASKS 512
> #define MAX_TASKS_PER_USER (NR_TASKS/2)
> It also says that on an x86 NR_TASKS can be 4092 max.(4090 with APM).
> Isnt the process table related to the GDT (atleast 8192 entries)? Then, why
> is it limited at 4092/4090 and not 8192. Is this an artificial limit?
>       The kernel cant *actually* be occupying all the others, can it?

Each process used to take up two slots in GDT - one for LDT and another
for TSS. That has changed in Linux 2.3.x - there is a per CPU TSS now.

	-Arun


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

------------------------------