Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2012 18:11:24 -0400
From:      Dan Plassche <dplassche@gmail.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: FreeBSD 1.x Binaries Work Except under Chroot
Message-ID:  <CAOD8Yqrz790nTev20iP_eRfdRWHzsnHbpwbzYAORAe1vm%2BpMLg@mail.gmail.com>
In-Reply-To: <20120816130625.GT5883@deviant.kiev.zoral.com.ua>
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> <20120816130625.GT5883@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 16, 2012 at 9:06 AM, Konstantin Belousov
<kostikbel@gmail.com> wrote:

> 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.

Thanks, the kern.pid_max tunable works well on 8.2.

The diff to /usr/src/sys/sys/proc.h before merging in r239301 was
editing PID_MAX:

     --- proc.h.bak	2010-12-21 12:09:25.000000000 -0500
     +++ proc.h	2012-08-15 13:54:25.000000000 -0400
     @@ -667,7 +667,7 @@
       * We use process IDs <= PID_MAX; PID_MAX + 1 must also fit in a pid_t,
       * as it is used to represent "no process group".
       */
     -#define	PID_MAX		99999
     +define PID_MAX		30000
      #define	NO_PID		100000

      #define	SESS_LEADER(p)	((p)->p_session->s_leader == (p))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOD8Yqrz790nTev20iP_eRfdRWHzsnHbpwbzYAORAe1vm%2BpMLg>