Re: [TEST/REVIEW/PERF] kern_thread.c tid allocation patch

From: David Xu <davidxu_at_freebsd.org>
Date: Fri, 18 Mar 2005 08:03:32 +0800
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
>
>  
>
I have tested it, yes, it is slight faster than current code.

David Xu
Received on Thu Mar 17 2005 - 23:03:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:30 UTC