From owner-freebsd-hackers Wed Apr 3 13: 0:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id D6A1637B428 for ; Wed, 3 Apr 2002 13:00:12 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020403210012.VWPT21252.rwcrmhc53.attbi.com@InterJet.elischer.org>; Wed, 3 Apr 2002 21:00:12 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA27160; Wed, 3 Apr 2002 12:42:21 -0800 (PST) Date: Wed, 3 Apr 2002 12:42:21 -0800 (PST) From: Julian Elischer To: Mike Silbersack Cc: John Regehr , freebsd-hackers@FreeBSD.ORG Subject: Re: Linuxthreads on Linux vs FreeBSD performance question In-Reply-To: <20020403202732.K59420-100000@patrocles.silby.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 3 Apr 2002, Mike Silbersack wrote: > > On Wed, 3 Apr 2002, John Regehr wrote: > > > Anyway, I was speculating that the higher cost is either due to (1) a > > failure, in FreeBSD, to avoid page table operations when switching > > between threads in the same addres space, or (2) some other kind of > > semantic mismatch between Linuxthreads and rfork. Is one of these > > guesses right? > > > > Any help appreciated. Thanks, > > > > John Regehr > > You may be able to learn which is the case by building a kernel with > profiling support and seeing where the hotspot is during your tests. > > Offhand, I'd guess that any of your ideas is possible. I don't believe > that much time was spent optimizing the kernel for Linuxthreads. > > Have you tried benchmarking process to process context switch times to see > if the results are similar? Also: You should run both linuxthreads binaries compile on linux (using emulation) and compiled on FreeBSD. it would be interesting to see if there is a difference.. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message