From owner-freebsd-current Sat Oct 31 13:21:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA18544 for freebsd-current-outgoing; Sat, 31 Oct 1998 13:21:12 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles325.castles.com [208.214.167.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA18539 for ; Sat, 31 Oct 1998 13:21:08 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id NAA00643; Sat, 31 Oct 1998 13:15:48 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810312115.NAA00643@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Poul-Henning Kamp cc: Mike Smith , Wolfram Schneider , current@FreeBSD.ORG Subject: Re: calcru: negative time of -695317300 usec for pid In-reply-to: Your message of "Sat, 31 Oct 1998 20:47:26 +0100." <14686.909863246@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 31 Oct 1998 13:15:48 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Two, about 35 minutes apart: mi_switch: switching history 1030.150249 > 1030.-695235605 calcru: negative time of -669373627 usec for pid 295 (xterm) mi_switch: switching history 3252.553835 > 3252.-694832079 pid 258 (XF86_SVGA), uid 0: exited on signal 6 (core dumped) calcru: negative time of -652603588 usec for pid 258 (XF86_SVGA) getmicrotime: 909868434.985186 > 909868434.975187 > Could you try to change these lines from the bottom of mi_switch() > > ... > if (switchtime.tv_sec) > p->p_switchtime = switchtime; > else > microuptime(&p->p_switchtime); > ... > > to simply: > > microuptime(&p->p_switchtime); > > Poul-Henning -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message