Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Feb 2006 11:23:01 +0800
From:      David Xu <davidxu@freebsd.org>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/kern kern_thread.c
Message-ID:  <43E6C115.1050208@freebsd.org>
In-Reply-To: <200602060151.k161p8Lv096772@repoman.freebsd.org>
References:  <200602060151.k161p8Lv096772@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Robert Watson wrote:
> rwatson     2006-02-06 01:51:08 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             kern_thread.c 
>   Log:
>   When exiting a thread, submit any pending record.  Today, we don't
>   audit thread exit, but should that happen, this will prevent
>   unhappiness, as the thread exit system call will never return, and
>   hence not commit the record.
>   
>   Pointed out by/with:    cognet
>   Obtained from:          TrustedBSD Project
>   
>   Revision  Changes    Path
>   1.227     +4 -0      src/sys/kern/kern_thread.c
> 
> 
> 
Won't this add more overhead to kick libpthread out of kernel ?
I always think today's kernel environment is no longer very suitable
for M:N, the better enviroment might be RELENG_4. :-)

I don't care this overhead because libthr does not more frequently 
create and destroy kthread than libpthread, and almost all popular
heavy weight applications cache their threads for reuse, they does
not rely on fast thread creation and destruction.

David Xu




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43E6C115.1050208>