From owner-freebsd-threads@FreeBSD.ORG Tue Nov 16 20:38:43 2004 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 EBA2E16A4CE for ; Tue, 16 Nov 2004 20:38:43 +0000 (GMT) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72FE243D4C for ; Tue, 16 Nov 2004 20:38:43 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) iAGKccG5021224; Tue, 16 Nov 2004 15:38:39 -0500 (EST) Date: Tue, 16 Nov 2004 15:38:14 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Petri Helenius In-Reply-To: <419A42BE.5090507@he.iki.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) cc: freebsd-threads@freebsd.org Subject: Re: thread scheduling X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2004 20:38:44 -0000 On Tue, 16 Nov 2004, Petri Helenius wrote: > > I have an single CPU (2.0GHz P4 Celeron) machine which is practically > empty running an application which dispatches detached threads to do > various kinds of work. It seems that recently process scope threads seem > to have fairly random scheduling latency up to various seconds while > system scope threads work as expected. This behaviour seems to have > introduced between 5.2.1 and 5.3 but cannot point exactly when. I have > printf's next to pthread_create and at the top of the new thread routine > and the delay is usually in order of multiple seconds. The application > also uses itimers if that makes a difference. > > Haven't built a simplified application demonstrating the issue yet, but > will do that if the problem is not known. I don't know about the problem and haven't really been keeping track of what's been merged to -stable. I would suggest checking out the -6 branch library and trying it on -stable (there should be nothing that needs to change for it to run on -stable). I also have some patches at: http://people.freebsd.org/~deischen/kse/libpthread.diffs -- Dan Eischen