From owner-freebsd-current@FreeBSD.ORG Thu Feb 5 18:16:45 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC60016A4CE; Thu, 5 Feb 2004 18:16:45 -0800 (PST) Received: from ftp.bjpu.edu.cn (ftp.bjpu.edu.cn [202.112.78.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E62D743D53; Thu, 5 Feb 2004 18:16:43 -0800 (PST) (envelope-from junsu@delphij.net) Received: from localhost (localhost [127.0.0.1]) by ftp.bjpu.edu.cn (Postfix) with ESMTP id D590053D2; Fri, 6 Feb 2004 10:16:42 +0800 (CST) Received: from ftp.bjpu.edu.cn ([127.0.0.1]) by localhost (ftp.bjpu.edu.cn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30854-02; Fri, 6 Feb 2004 10:16:41 +0800 (CST) Received: from beastie.frontfree.net (beastie.frontfree.net [218.107.145.7]) by ftp.bjpu.edu.cn (Postfix) with ESMTP id CDCDF52C8; Fri, 6 Feb 2004 10:16:40 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id 52BD911477; Fri, 6 Feb 2004 10:16:40 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02419-09; Fri, 6 Feb 2004 10:16:36 +0800 (CST) Received: from mail.frontfree.net (tide121.microsoft.com [207.46.71.13]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by beastie.frontfree.net (Postfix) with ESMTP id 830C611462; Fri, 6 Feb 2004 10:16:34 +0800 (CST) Date: Fri, 06 Feb 2004 10:16:30 +0800 To: "Andre Oppermann" References: <20040129134121.GB53644@frontfree.net> <20040129200442.GA52780@VARK.homeunix.com> <01bd01c3e742$093d83b0$56dea1d3@shasujunmv> <20040131215006.GP908@cirb503493.alcatel.com.au> <40226429.4010702@freebsd.org> From: "Jun Su" Content-Type: text/plain; format=flowed; delsp=yes; charset=gbk MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <40226429.4010702@freebsd.org> User-Agent: Opera M2/7.50 (Win32, build 3494) X-Virus-Scanned: by amavisd-new at frontfree.net X-Virus-Scanned: by amavisd-new at frontfree.net cc: Peter Jeremy cc: David Schultz cc: Olivier Houchard cc: current@freebsd.org Subject: Re: [UPDATE] new pid allocation patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 02:16:45 -0000 On Thu, 05 Feb 2004 16:41:29 +0100, Andre Oppermann wrote: > Jun Su wrote: >> Hi All, >> John Baldwin's proc lock commit today made my patch broken, so I have >> revised the patch, and uploaded it to the same position: >> http://www.arbornet.org/~junsu/pid.diff >> The revised patch has been improved based on the feedback. Basically, >> 1. Added a new sysctl value kern.pidmax to control the current pid >> range. >> This value can influence the reuse pid period. The initial value is >> 4096. > > This sysctl name looks very misleading to me. Unless the highest PID > I can get here is actually 4096. > The sysctl should be named as pidrange or some similiar name to avoid the confusing. I just choose a name same as the vairable name. Jun Su >> 2. Change the meaning of PID_MAX back to what it was, and sainty-check >> whether the pid is 5 digit based on PID_MAX. (I think it is impossible >> that >> pid expand PID_MAX for the algorithm nature, though.) >> 3. The initial pid table size is bumped from 1<<5 to 1<<7. > -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/