From owner-freebsd-current@FreeBSD.ORG Thu Mar 17 09:34:29 2005 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 1682A16A4CE for ; Thu, 17 Mar 2005 09:34:29 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDE3343D31; Thu, 17 Mar 2005 09:34:28 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2H9YO8q023083; Thu, 17 Mar 2005 09:34:28 GMT (envelope-from davidxu@freebsd.org) Message-ID: <42394F22.9060100@freebsd.org> Date: Thu, 17 Mar 2005 17:34:26 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Poul-Henning Kamp References: <5641.1111050847@critter.freebsd.dk> In-Reply-To: <5641.1111050847@critter.freebsd.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: current@freebsd.org Subject: Re: [TEST/REVIEW/PERF] kern_thread.c tid 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: Thu, 17 Mar 2005 09:34:29 -0000 Thread ID should start from (PID_MAX + 1). David Xu Poul-Henning Kamp wrote: >While investigating a Coverity report (false alarm btw) I noticed >that kern_thread has a lot of code for allocating thread id's. > >This patch uses subr_unit instead. > >I would expect thread create/destroy performance to increase on >systems where there are many threads, and would be interested >if anybody can measure any difference. > >Poul-Henning > >