lkml.org 
[lkml]   [1996]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Max # of processes?
Date
> > Well, on x86 architecture:
> > My guess is: ( 16384 - 8 ) >> 1 = 8188
> > If APM is enabled: ( 16384 - 11 ) >> 1 = 8186
> >
> > The limit is the global descriptor table (GDT). It can hold 8191
> > descriptors (selectors are 14 bits, and 0 is reserved by the CPU).

Doh! I screwed up. Sorry.

Selectors (16-bits) have a 2-bit privledge level, and 1 bit that
says the descriptor is in the GDT or LDT. Like I said, there are
8191 descriptors <- I should have read what I wrote!

Max NR_TASKS on x86 architecture:
My new guess is: ( 8192 - 8 ) >> 1 = 4092
If APM is enabled: ( 8192 - 11 ) >> 1 = 4090

Besides, the GDTR has only a 16-bit limit (each descriptor is 8 bytes).

--
Andrew E. Mileski
mailto:aem@ott.hookup.net http://www.redhat.com/~aem/
Linux Plug-and-Play Project Leader http://www.redhat.com/linux-info/pnp/
PGP public keys are available from http://www.redhat.com/~aem/pgp-keys.txt

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.067 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site