From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 9 Jan 2014 09:08:19 +0100 Message-ID: From: =?ISO-8859-1?Q?Pavel_Klinkovsk=FD?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7b6d7cbcc8f0dd04ef851cf3 Subject: Re: [9fans] Maximal number of processes Topicbox-Message-UUID: b0b478d2-ead8-11e9-9d60-3106f5b1d025 --047d7b6d7cbcc8f0dd04ef851cf3 Content-Type: text/plain; charset=ISO-8859-1 Hi Steven, conf.nproc = 100 + ((conf.npage*BY2PG)/MB)*5; > if(cpuserver) > conf.nproc *= 3; > if(conf.nproc > 2000) > conf.nproc = 2000; > > In general, you will find that 2000 is the highest allowable due to > limits imposed by proc.c. but if I understand it correctly it is just "soft limit", not a "hard" one inborn in CPU architecture. By the hard limit I consider something like "maximal capacity of GDT, LDT" or something similar, if exists. > At the end of the day, the only way to be sure is to read the source. > I did (of course, I am not an expert on Plan9 kernel), and I did not find any "hard limit" there. However to be sure I issued my question here. Pavel --047d7b6d7cbcc8f0dd04ef851cf3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Steven,


=A0 =A0 conf.nproc =3D 100= + ((conf.npage*BY2PG)/MB)*5;
=A0 =A0 if(cpuserver)
=A0 =A0 =A0 =A0 =A0 =A0 conf.nproc *=3D 3;
=A0 =A0 if(conf.nproc > 2000)
=A0 =A0 =A0 =A0 =A0 =A0 conf.nproc =3D 2000;

In general, you will find that 2000 is the highest allowable due to
limits imposed by proc.c.

but if I understa= nd it correctly it is just "soft limit", not a "hard" o= ne inborn in CPU architecture.

By the hard limit I= consider something like "maximal capacity of GDT, LDT" or someth= ing similar, if exists.
=A0
At the end of the day, the onl= y way to be sure is to read the source.

I did (of course, I am not an expert on Plan9 kernel), and I did not find = any "hard limit" there.
However to be sure I issued my question here.

Pavel
--047d7b6d7cbcc8f0dd04ef851cf3--