From owner-freebsd-current@FreeBSD.ORG Mon Jun 21 00:15:20 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B08316A4CE; Mon, 21 Jun 2004 00:15:20 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2F0943D54; Mon, 21 Jun 2004 00:15:17 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i5L0ClMO018887; Sun, 20 Jun 2004 20:12:47 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i5L0Ck0j018884; Sun, 20 Jun 2004 20:12:47 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sun, 20 Jun 2004 20:12:46 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: threads@FreeBSD.org In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@FreeBSD.org Subject: Re: calcru: negative time ... followed by freeze X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2004 00:15:20 -0000 FYI, this is a Xeon box with two physical processors, each with two logical processors, and the problem could well be SMP-related. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research On Sun, 20 Jun 2004, Robert Watson wrote: > > I've now seen the following scenario happen several times in the last few > days while doing testing and benchmarking: I run a multi-threaded test, > such as super-smack, that causes a moderately high system load. I then > hit Ctrl-T or run top, or some other activity that forces calcru() to > execute. I will not infrequently get an extremely hard hang -- can't get > to DDB using serial break, etc. I don't remember it happening when using > non-threaded apps, so I'm wondering if there's a poor interaction with > KSE/scheduler/who knows what. > > 7:55PM up 6 mins, 2 users, load averages: 1.37, 0.91, 0.43 > USER TTY FROM LOGIN@ IDLE WHAT > root d0 - 7:55PM - w > rwatson p0 cboss 7:50PM 2 super-smack > select-key > hippy# top > calcru: negative time of 1834075 usec for pid 654 (super-smack) > ca~~ > > In this case, I ran super-smack with the following parameters: > > hippy:/usr/tmp/super-smack> super-smack select-key.smack 15 1000 > > This generates 15 workers, which should cause mysql to spawn off threads > as well. I'm running with stock libpthread on this system (slightly old) > but an up-to-date kernel from CVS, GENERIC. > > Has anyone else seen this? > > Robert N M Watson FreeBSD Core Team, TrustedBSD Projects > robert@fledge.watson.org Senior Research Scientist, McAfee Research > >