From owner-freebsd-questions@FreeBSD.ORG Wed May 10 07:25:44 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D4E616A400 for ; Wed, 10 May 2006 07:25:44 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBE0643D46 for ; Wed, 10 May 2006 07:25:42 +0000 (GMT) (envelope-from nvass@teledomenet.gr) Received: from [192.168.1.71] ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id k4A7PeEY010867; Wed, 10 May 2006 10:25:40 +0300 From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Wed, 10 May 2006 10:22:15 +0300 User-Agent: KMail/1.9.1 References: <000a01c67362$f3d1f3d0$01010101@avalon.lan> <200605091622.30492.nvass@teledomenet.gr> <20060509141318.88A0FB822@shodan.nognu.de> In-Reply-To: <20060509141318.88A0FB822@shodan.nognu.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605101022.16121.nvass@teledomenet.gr> Cc: nospam@mgedv.net, Frank Steinborn Subject: Re: kern.randompid: jot generation senseful? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2006 07:25:44 -0000 On Tuesday 09 May 2006 17:13, Frank Steinborn wrote: > Nikos Vassiliadis wrote: > > Isn't kern.randompid a boolean? TRUE or FALSE? > > No. > > > It is just on or off. 1 means PIDs are random. > > 0 means PIDs are sequential. to be exact, everything > > not being 0, is TRUE. > > That is not true. Peter Pentchev once wrote: > > "The kern.randompid sysctl is not a boolean flag, but an estimate of > the random value that will be added to each newly created pid. For > more information, read the comments in src/sys/kern/kern_fork.c before > the sysctl_kern_randompid() function (around line 150). The function > itself ignores sysctl settings of less than 2." > Excuse my ignorance. It was an unlucky guess...