Date: Fri, 18 Mar 2005 08:03:32 +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: <423A1AD4.2050207@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
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?423A1AD4.2050207>