From owner-freebsd-threads@FreeBSD.ORG Tue Nov 16 18:11:12 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 AA8ED16A4CE for ; Tue, 16 Nov 2004 18:11:12 +0000 (GMT) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 886CD43D69 for ; Tue, 16 Nov 2004 18:11:11 +0000 (GMT) (envelope-from pete@he.iki.fi) Received: from [193.64.42.134] (h86.vuokselantie10.fi [193.64.42.134]) by silver.he.iki.fi (8.13.1/8.11.4) with ESMTP id iAGIB8rb047530 for ; Tue, 16 Nov 2004 20:11:09 +0200 (EET) (envelope-from pete@he.iki.fi) Message-ID: <419A42BE.5090507@he.iki.fi> Date: Tue, 16 Nov 2004 20:11:10 +0200 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-threads@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: thread scheduling 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: Tue, 16 Nov 2004 18:11:12 -0000 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. Pete