From owner-freebsd-current@FreeBSD.ORG Thu Feb 5 05:55:31 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 AD43316A4CE; Thu, 5 Feb 2004 05:55:31 -0800 (PST) Received: from ftp.bjpu.edu.cn (ftp.bjpu.edu.cn [202.112.78.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14D7043D45; Thu, 5 Feb 2004 05:55:28 -0800 (PST) (envelope-from junsu@delphij.net) Received: from localhost (localhost [127.0.0.1]) by ftp.bjpu.edu.cn (Postfix) with ESMTP id 2D0A052C9; Thu, 5 Feb 2004 21:55:25 +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 24486-10; Thu, 5 Feb 2004 21:55:23 +0800 (CST) Received: from beastie.frontfree.net (beastie.frontfree.net [218.107.145.7]) by ftp.bjpu.edu.cn (Postfix) with ESMTP id 1242152C6; Thu, 5 Feb 2004 21:55:23 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 426) id 384F1116D4; Thu, 5 Feb 2004 21:55:22 +0800 (CST) Received: from mail.frontfree.net (unknown [211.161.222.1]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by beastie.frontfree.net (Postfix) with ESMTP id 095EE11565; Thu, 5 Feb 2004 21:55:16 +0800 (CST) Date: Thu, 05 Feb 2004 21:54:55 +0800 To: "Peter Jeremy" References: <20040129134121.GB53644@frontfree.net> <20040129200442.GA52780@VARK.homeunix.com> <01bd01c3e742$093d83b0$56dea1d3@shasujunmv> <20040131215006.GP908@cirb503493.alcatel.com.au> 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: <20040131215006.GP908@cirb503493.alcatel.com.au> User-Agent: Opera M2/7.50 (Win32, build 3494) X-Virus-Scanned: by amavisd-new at frontfree.net cc: David Schultz cc: Olivier Houchard cc: current@freebsd.org Subject: [UPDATE] new pid allocation patch (was: Call for testers: New PID allocator patch for -CURRENT) 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: Thu, 05 Feb 2004 13:55:31 -0000 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. 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. Thanks, Jun Su