From owner-freebsd-stable@FreeBSD.ORG Mon Nov 7 01:04:33 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3D5516A41F for ; Mon, 7 Nov 2005 01:04:33 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: from srv-03.bs2.com.br (srv-03.bs2.com.br [200.203.183.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B19A43D45 for ; Mon, 7 Nov 2005 01:04:33 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: from localhost (localhost.bs2.com.br [127.0.0.1]) by srv-03.bs2.com.br (Postfix) with ESMTP id C78C74B0EA; Sun, 6 Nov 2005 23:06:18 -0200 (BRST) Received: from [201.25.176.132] (201-25-176-132.mganm702.dsl.brasiltelecom.net.br [201.25.176.132]) by srv-03.bs2.com.br (Postfix) with ESMTP id 638054B0E6; Sun, 6 Nov 2005 23:06:18 -0200 (BRST) Message-ID: <436EA824.5030106@tirloni.org> Date: Sun, 06 Nov 2005 23:04:36 -0200 From: "Giovanni P. Tirloni" User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stephen Montgomery-Smith References: <436E67F0.9050409@math.missouri.edu> In-Reply-To: <436E67F0.9050409@math.missouri.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: kernel: calcru: runtime went backwards X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2005 01:04:33 -0000 Stephen Montgomery-Smith wrote: > This is on a recent FreeBSD-6.0 stable SMP machine. > > As root, run "top -s0". Then, at the same time run this program: > > #include > #define D (1<<10) > void *thread(void *n) { > int i; > double array[D]; > for (i=0;i } > int main() { > void *i; > pthread_t tid; > while (1) { > pthread_create(&tid,NULL,thread,i); > pthread_join(tid,&i); > } > } > > Let this program run for about a minute. Then kill this program. > > At this point, I sometimes get some calcru messages from the kernel. > > (This is not a contrived situation - this happens much more frequently > than this sample program when I run programs with threaded fftw3 calls - > I suspect that it throws off the cpu times shown by top.) Try this, http://www.freebsd.org/doc/en/books/faq/book.html#CALCRU-NEGATIVE -- Giovanni P. Tirloni http://tirloni.blogspot.com