From nobody@FreeBSD.org  Tue Jul  4 07:47:57 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CE3F516A4DE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 Jul 2006 07:47:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5051543D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 Jul 2006 07:47:57 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k647lui6028501
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 4 Jul 2006 07:47:56 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k647luAm028500;
	Tue, 4 Jul 2006 07:47:56 GMT
	(envelope-from nobody)
Message-Id: <200607040747.k647luAm028500@www.freebsd.org>
Date: Tue, 4 Jul 2006 07:47:56 GMT
From: Artem Bokhan <art@academ.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: drifting time, SuperMicro PDSMi Motherboard, "calcru negative runtime" problems
X-Send-Pr-Version: www-2.3

>Number:         99765
>Category:       kern
>Synopsis:       drifting time, SuperMicro PDSMi Motherboard, "calcru negative runtime" problems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 04 07:50:15 GMT 2006
>Closed-Date:    Fri Mar 04 15:38:47 UTC 2011
>Last-Modified:  Fri Mar 04 15:38:47 UTC 2011
>Originator:     Artem Bokhan
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
FreeBSD  6.1-STABLE FreeBSD 6.1-STABLE #1: Tue Jul  4 13:33:29 NOVST 2006     form@:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
On SuperMicro SuperServer 5015M-MF with Super PDSMi Motherboard I have problems with drifting (several seconds for several minutes) time on all types of timecounters (TSC,ACPI-safe,i8254) in SMP and non-SMP modes, with acpi enabled and disabled.

Also, with ACPI-safe timecounter there are a lot of messages like:

Jul  4 14:37:34  kernel: calcru: negative runtime of -7736790 usec for pid 12 (swi4: clock sio)
Jul  4 14:37:34  kernel: calcru: negative runtime of -509284 usec for pid 516 (sshd)
Jul  4 14:37:34  kernel: calcru: negative runtime of -624737 usec for pid 421 (ntpd)
Jul  4 14:37:34  kernel: calcru: negative runtime of -1315926 usec for pid 44 (softdepflush)
Jul  4 14:37:34  kernel: calcru: negative runtime of -1018507 usec for pid 32 (irq14: ata0)
Jul  4 14:37:34  kernel: calcru: negative runtime of -1012373 usec for pid 21 (irq16: em0 uhci3)
Jul  4 14:37:34  kernel: calcru: runtime went backwards from 516063 usec to 216547 usec for pid 3 (g_up)
Jul  4 14:37:34  kernel: calcru: negative runtime of -7736785 usec for pid 12 (swi4: clock sio)
Jul  4 14:37:34  kernel: calcru: negative runtime of -509284 usec for pid 516 (sshd)
Jul  4 14:37:34  kernel: calcru: negative runtime of -624737 usec for pid 421 (ntpd)
Jul  4 14:37:34  kernel: calcru: negative runtime of -1315926 usec for pid 44 (softdepflush)

On FreeBSD 7-CURRENT everything is OK, no problems with clock with any of ACPI-safe, 
TSC or i8254 timecounters.

ps. I can provide full access to the server, if somebody could resolve the problem.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

From: "Chris Sevey" <csevey@hotmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/99765: drifting time, SuperMicro PDSMi Motherboard, "calcru negative ru
Date: Sun, 30 Jul 2006 16:29:48 -0500

 I am also showing the same issue with the combination of FreeBSD 6.1-STABLE 
 and Supermicro PDSMi Motherboard.
 
 Jul 31 05:26:22 ns1 kernel: calcru: negative runtime of -3180665 usec for 
 pid 109 (md2)
 Jul 31 05:26:22 ns1 kernel: calcru: negative runtime of -4022839 usec for 
 pid 47 (schedcpu)
 Jul 31 05:26:22 ns1 kernel: calcru: negative runtime of -7336739 usec for 
 pid 42 (softdepflush)
 Jul 31 05:26:22 ns1 kernel: calcru: negative runtime of -8908284 usec for 
 pid 41 (vnlru)
 Jul 31 05:26:22 ns1 kernel: calcru: negative runtime of -10933401 usec for 
 pid 40 (syncer)
 Jul 31 05:26:22 ns1 kernel: calcru: negative runtime of -470985 usec for pid 
 38 (pagezero)
 Jul 31 05:26:22 ns1 kernel: calcru: negative runtime of -1358801 usec for 
 pid 36 (pagedaemon)
 Jul 31 05:26:22 ns1 kernel: calcru: negative runtime of -90342236 usec for 
 pid 15 (yarrow)
 Jul 31 05:26:22 ns1 kernel: calcru: negative runtime of -48567596 usec for 
 pid 3 (g_up)
 
 I've been attempting to change some bios settings (disable hyperthreading, 
 etc...) to see if I can work around the issue, but have not been able to 
 find a working combination yet.
 
 CSevey
 
 

From: Martin Nilsson <martin@gneto.com>
To: bug-followup@FreeBSD.org
Cc: art@academ.org,  csevey@hotmail.com,  mikej@rogers.com
Subject: Re: kern/99765: drifting time, SuperMicro PDSMi Motherboard, "calcru
 negative runtime" problems
Date: Sun, 20 Aug 2006 06:37:30 +0200

 This is a hardware problem (drifting clock) with some PDSMi boards. I've 
 got a box of new boards from Supermicro that I replace the faulty ones with.
 
 Contact Supermicro to get your boards replaced.
 

From: Bokhan Artem <art@academ.org>
To: bug-followup@FreeBSD.org, art@academ.org
Cc:  
Subject: Re: kern/99765: drifting time, SuperMicro PDSMi Motherboard, "calcru
 negative runtime" problems
Date: Sun, 20 Aug 2006 14:50:22 +0700

 Four motheroards (SuperMicro PDSMi Motherboards) work fine without any 
 problems on FreeBSD 7.0 and Linux...
 Also we have 2 of 4 boards (the same SuperMicro PDSMi Motherboards) 
 which work fine on FreeBSD 6.1
 Strange behavior)
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Fri Mar 4 15:38:46 UTC 2011 
State-Changed-Why:  
Hardware problem according to audit trail. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99765 
>Unformatted:
