Date: Sat, 31 Oct 1998 20:47:26 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Mike Smith <mike@smith.net.au> Cc: Wolfram Schneider <wosch@panke.de.freebsd.org>, current@FreeBSD.ORG Subject: Re: calcru: negative time of -695317300 usec for pid Message-ID: <14686.909863246@critter.freebsd.dk> In-Reply-To: Your message of "Sat, 31 Oct 1998 11:30:59 PST." <199810311930.LAA00799@dingo.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14686.909863246>