Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Oct 1998 13:15:48 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Mike Smith <mike@smith.net.au>, Wolfram Schneider <wosch@panke.de.freebsd.org>, current@FreeBSD.ORG
Subject:   Re: calcru: negative time of -695317300 usec for pid 
Message-ID:  <199810312115.NAA00643@dingo.cdrom.com>
In-Reply-To: Your message of "Sat, 31 Oct 1998 20:47:26 %2B0100." <14686.909863246@critter.freebsd.dk> 

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810312115.NAA00643>