From owner-freebsd-threads@FreeBSD.ORG Sat Nov 29 17:12:31 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0FD816A4CE for ; Sat, 29 Nov 2003 17:12:31 -0800 (PST) Received: from exchhz01.viatech.com.cn (ip-167-164-97-218.anlai.com [218.97.164.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id C581F43FE3 for ; Sat, 29 Nov 2003 17:12:28 -0800 (PST) (envelope-from davidxu@viatech.com.cn) Received: from viatech.com.cn (ip-240-1-168-192.rev.dyxnet.com [192.168.1.240]) by exchhz01.viatech.com.cn with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id XY9LQCWY; Sun, 30 Nov 2003 08:51:29 +0800 Message-ID: <3FC9455E.6030802@viatech.com.cn> Date: Sun, 30 Nov 2003 09:18:22 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Christopher M. Sedore" References: <32A8B2CB12BFC84D8D11D872C787AA9A515DAE@EXCHANGE.forest.maxwell.syr.edu> In-Reply-To: <32A8B2CB12BFC84D8D11D872C787AA9A515DAE@EXCHANGE.forest.maxwell.syr.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: threads@freebsd.org Subject: Re: KSE system scope vs non system scope threads X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2003 01:12:31 -0000 Can you checkout src/lib/libpthread/thread/thr_spinlock.c revision 1.18 and see any differents ? David Xu Christopher M. Sedore wrote: > >I have a fairly simple question about KSE threads: In a threaded program using KSE threads, what is the effective difference between a system-scope thread and a non-system-scope thread? If I understand the KSE architecture correctly, there should not be a significant functional difference. If my reading lead me to the right conclusion, at the nitty-gritty level, there are multiple KSE groups created with system-scope threads, as I understand it, meaning that the kernel scheduler actually does the scheduling work for system-scope threads, instead of the userland KSE scheduler. > >I ask this because I'm observing some behavior that I don't expect. When running a threaded program with KSE and non-system-scope threads, I see performance degradation in my network traffic when I'm attempting to connect to remote hosts that are down. Libthr doesn't see this degradation, and KSE with system-scope threads doesn't perform as well as libthr, but is much closer. > >If there is a canonical document that describes all this, a pointer would be very welcome. > >-Chris >_______________________________________________ >freebsd-threads@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-threads >To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" > > >