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

David Xu davidxu at freebsd.org
Thu Mar 17 16:03:27 PST 2005


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


More information about the freebsd-current mailing list