From owner-freebsd-current@FreeBSD.ORG Tue Feb 21 15:46:13 2006 Return-Path: X-Original-To: current@freebsd.org 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 B834616A420; Tue, 21 Feb 2006 15:46:13 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CFAC43D6B; Tue, 21 Feb 2006 15:46:12 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from [10.50.41.242] (Not Verified[10.50.41.242]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Tue, 21 Feb 2006 11:06:24 -0500 From: John Baldwin To: current@freebsd.org Date: Tue, 21 Feb 2006 10:47:04 -0500 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602211047.06599.jhb@freebsd.org> Cc: ups@freebsd.org Subject: [PATCH] possible fix for the runtime going backwards warnings X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 21 Feb 2006 15:46:13 -0000 The latest round of calcru() changes accidentally changed calccru() to use the wrong rusage_ext structure (p->p_rux vs p->p_crux) when calculating usage times for children. The patch fixes calccru() to use p->p_crux again. It also moves the ruadd() in exit1() even later in the function so that it takes the dying thread's last time slice into account. Please test it and let me know if it makes the messages go away (or if it makes things worse!) Thanks! http://www.FreeBSD.org/~jhb/patches/calccru.patch -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org