Date: Thu, 16 Aug 2012 16:06:25 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Dan Plassche <dplassche@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 1.x Binaries Work Except under Chroot Message-ID: <20120816130625.GT5883@deviant.kiev.zoral.com.ua> In-Reply-To: <CAOD8YqpFeSqaMX-j%2Bz4MDB-MnN_HKw9sapJqG0hhDAp9sydxcw@mail.gmail.com> References: <CAOD8YqpVzT0pdBCHaMcu2krpjHcP3eotyDtiBR7OzUK1E9Hi5g@mail.gmail.com> <20120810170715.GI2425@deviant.kiev.zoral.com.ua> <CAOD8Yqpz89-bxN7vpsyNWisr7eMDjcbvTSfknvG6M_jZFOW-yQ@mail.gmail.com> <20120811184522.GK2425@deviant.kiev.zoral.com.ua> <CAOD8YqqNpY33t450jovcJRRf6BGffPCyO%2BF4LB0N_SbhZJd-0g@mail.gmail.com> <5029A9CE.8070307@freebsd.org> <CAOD8YqpFeSqaMX-j%2Bz4MDB-MnN_HKw9sapJqG0hhDAp9sydxcw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--cUjMc5fB5G+GsIM6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 15, 2012 at 05:32:03PM -0400, Dan Plassche wrote: > On Mon, Aug 13, 2012 at 9:28 PM, Julian Elischer <julian@freebsd.org> > wrote: >=20 > > you will also have to change PID_MAX (spelling?) to be 60000 > > I have considered making this a tunable.. > > If you don't then the shell in the 1.1.5.1 environment will not be able= to > > handle when a child > > get s a pid of > 16 bits and it will not be able to wait on it. so it w= ill > > suspend for ever. > > teh result is that you can not complete a "make world". >=20 > The shell hangs as you described on "make world" when the PID > hits 32768. Looks like this was the old limit and things changed > around release 3. >=20 > I went to recompile the kernel with "define PID_MAX 30000" in > /usr/src/sys/sys/proc.h and got a new build error that I'm still > trying to resolve: >=20 > In file included from /usr/src/sys/sys/buf.h:258, > from /usr/src/sys/i386/i386/genassym.c:47: >=20 > /usr/src/sys/sys/proc.h:670: error: expected '=3D', ',', ';', > 'asm' or '__attribute__' before 'PID_MAX' >=20 > /usr/src/sys/sys/proc.h:769: warning data definition has no > type or storage class >=20 > /usr/src/sys/sys/proc.h:769: warning: type defaults to 'int' > in declaration of 'pidhashtbl' >=20 > *** Error code 1 >=20 > Line 670 in proc.h is the define PID_MAX line. I have the > feeling I may be missing something obvious here, but I haven't > been able to sort out the problem. Since you did not provided exact diff of your change, I cannot comment on what goes wrong. Anyway, just merge the r239301 locally and use sysctl kern.pid_max. --cUjMc5fB5G+GsIM6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlAs8FEACgkQC3+MBN1Mb4iANgCgtMMuFMTrLXP5bRUdzip431Mg qXoAn287jmSfHLrnCCwquvER7pD5G9WS =XjKg -----END PGP SIGNATURE----- --cUjMc5fB5G+GsIM6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120816130625.GT5883>