From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 16 13:06:40 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7425C106566C; Thu, 16 Aug 2012 13:06:40 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 0AD988FC22; Thu, 16 Aug 2012 13:06:39 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q7GD6cRR002638; Thu, 16 Aug 2012 16:06:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q7GD6P7Z032355; Thu, 16 Aug 2012 16:06:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q7GD6Pm6032354; Thu, 16 Aug 2012 16:06:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 16 Aug 2012 16:06:25 +0300 From: Konstantin Belousov To: Dan Plassche Message-ID: <20120816130625.GT5883@deviant.kiev.zoral.com.ua> References: <20120810170715.GI2425@deviant.kiev.zoral.com.ua> <20120811184522.GK2425@deviant.kiev.zoral.com.ua> <5029A9CE.8070307@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cUjMc5fB5G+GsIM6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 1.x Binaries Work Except under Chroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2012 13:06:40 -0000 --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 > 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--