Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2005 17:34:26 +0800
From:      David Xu <davidxu@freebsd.org>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        current@freebsd.org
Subject:   Re: [TEST/REVIEW/PERF] kern_thread.c tid allocation patch
Message-ID:  <42394F22.9060100@freebsd.org>
In-Reply-To: <5641.1111050847@critter.freebsd.dk>
References:  <5641.1111050847@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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
>  
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42394F22.9060100>