From owner-freebsd-current Sat Oct 31 11:49:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA07009 for freebsd-current-outgoing; Sat, 31 Oct 1998 11:49:18 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA07003 for ; Sat, 31 Oct 1998 11:49:16 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.1/8.8.5) with ESMTP id UAA14688; Sat, 31 Oct 1998 20:47:26 +0100 (CET) To: Mike Smith cc: 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 11:30:59 PST." <199810311930.LAA00799@dingo.cdrom.com> Date: Sat, 31 Oct 1998 20:47:26 +0100 Message-ID: <14686.909863246@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 In message <199810311930.LAA00799@dingo.cdrom.com>, Mike Smith writes: > >I got these yesterday: > >/kernel.tc: microtime: 909767572.611009 > 909767572.-694775046 >/kernel.tc: getmicrotime: 909800392.486279 > 909800392.476272 >/kernel.tc: mi_switch: switching history 35692.614679 > 35692.-694771102 >/kernel.tc: mi_switch: switching history 35694.694002225 > 35692.617390 >/kernel.tc: calcru: negative time of -1390738769 usec for pid 271 (xconsole) >/kernel.tc: pid 262 (XF86_SVGA), uid 0: exited on signal 6 (core dumped) >/kernel.tc: calcru: negative time of -336242384 usec for pid 262 (XF86_SVGA) > >also with NTIMECOUNTER set to 10 (and the code that uses it is in the >kernel). > >> On 1998-10-28 12:19:30 +0100, Poul-Henning Kamp wrote: >> > Please try to increase "NTIMECOUNTER" in /sys/kern/kern_clock.c to >> > 10 and tell me if it works. >> >> The 18th `make world' got a >> calcru: negative time of -695373488 usec for pid 23724 (as) >> >> and a little bit later died with >> pid 4542 (ld), uid 0: exited on signal 11 (core dumped) >> >> Wolfram >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-current" in the body of the message >> > >-- >\\ 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 > > > -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message