NetBSD Problem Report #40511
From martin@aprisoft.de Thu Jan 29 11:00:41 2009
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id EE7E363C04A
for <gnats-bugs@gnats.NetBSD.org>; Thu, 29 Jan 2009 11:00:40 +0000 (UTC)
Message-Id: <20090129110032.849B5AF5826@emmas.aprisoft.de>
Date: Thu, 29 Jan 2009 12:00:32 +0100 (CET)
From: martin@duskware.de
Reply-To: martin@duskware.de
To: gnats-bugs@gnats.NetBSD.org
Subject: negative runtime
X-Send-Pr-Version: 3.95
>Number: 40511
>Notify-List: gson@gson.org
>Category: kern
>Synopsis: negative runtime
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 29 11:05:00 +0000 2009
>Closed-Date: Thu May 26 03:24:53 +0000 2022
>Last-Modified: Thu May 26 03:24:53 +0000 2022
>Originator: Martin Husemann
>Release: NetBSD 5.99.7
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD nelly.aprisoft.de 5.99.7 NetBSD 5.99.7 (NELLY.MP) #31: Thu Jan 29 11:20:13 CET 2009 martin@emmas.aprisoft.de:/nelly/usr/src/sys/arch/sparc64/compile/NELLY.MP sparc64
Architecture: sparc64
Machine: sparc64
>Description:
Starting with a kernel from a few hours ago my log and console are spammed
with:
WARNING: negative runtime; monotonic clock has gone backwards
I am using ntpd, and it has synced just fine.
>How-To-Repeat:
no idea
>Fix:
n/a
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Fri, 30 Jan 2009 09:08:51 +0000
State-Changed-Why:
fixed with the lastest rlimit changes
State-Changed-From-To: closed->open
State-Changed-By: martin@NetBSD.org
State-Changed-When: Fri, 30 Jan 2009 10:19:35 +0000
State-Changed-Why:
Let's remove the cause .. but not the symptom.
From: YAMAMOTO Takashi <yamt@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40511 CVS commit: src/sys/kern
Date: Sat, 31 Jan 2009 15:53:36 +0000 (UTC)
Module Name: src
Committed By: yamt
Date: Sat Jan 31 15:53:36 UTC 2009
Modified Files:
src/sys/kern: kern_time.c
Log Message:
settime1: fix a bug i introduced when i made l_stime use monotonic time.
from Matthias Drochner on tech-kern@. PR/40511 from Martin Husemann.
To generate a diff of this commit:
cvs rdiff -r1.158 -r1.159 src/sys/kern/kern_time.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: rmind@NetBSD.org
State-Changed-When: Wed, 04 Feb 2009 00:19:24 +0000
State-Changed-Why:
yamt fixed this.
From: Mindaugas Rasiukevicius <rmind@netbsd.org>
To: yamt@netbsd.org
Cc: gnats-bugs@NetBSD.org, kern-bug-people@netbsd.org,
netbsd-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: kern/40511 (negative runtime)
Date: Wed, 4 Feb 2009 00:22:33 +0000
rmind@NetBSD.org wrote:
> Synopsis: negative runtime
>
> State-Changed-From-To: open->feedback
> State-Changed-By: rmind@NetBSD.org
> State-Changed-When: Wed, 04 Feb 2009 00:19:24 +0000
> State-Changed-Why:
> yamt fixed this.
>
yamt, could this be pulled-up?
--
Best regards,
Mindaugas
From: Matthias Scheler <tron@zhadum.org.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/40511 (negative runtime)
Date: Fri, 6 Feb 2009 23:09:51 +0000
On Wed, Feb 04, 2009 at 12:25:02AM +0000, Mindaugas Rasiukevicius wrote:
> > Synopsis: negative runtime
> >
> > State-Changed-From-To: open->feedback
> > State-Changed-By: rmind@NetBSD.org
> > State-Changed-When: Wed, 04 Feb 2009 00:19:24 +0000
> > State-Changed-Why:
> > yamt fixed this.
> >
>
> yamt, could this be pulled-up?
Yes, please.
I just got that message on a NetBSD/amd64 5.0_RC1 system:
WARNING: negative runtime; monotonic clock has gone backwards
Fortunately it only occurred once.
Kind regards
--
Matthias Scheler http://zhadum.org.uk/
From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40511 CVS commit: [netbsd-5] src/sys/kern
Date: Sun, 8 Feb 2009 20:38:49 +0000 (UTC)
Module Name: src
Committed By: snj
Date: Sun Feb 8 20:38:49 UTC 2009
Modified Files:
src/sys/kern [netbsd-5]: kern_time.c
Log Message:
Pull up following revision(s) (requested by rmind in ticket #429):
sys/kern/kern_time.c: revision 1.159 via patch
settime1: fix a bug i introduced when i made l_stime use monotonic time.
from Matthias Drochner on tech-kern@. PR/40511 from Martin Husemann.
To generate a diff of this commit:
cvs rdiff -r1.155.4.1 -r1.155.4.2 src/sys/kern/kern_time.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/40511 (negative runtime)
Date: Tue, 10 Mar 2009 18:46:50 +0200
The log entry saying "yamt fixed this" notwithstanding, I'm still
getting the "WARNING: negative runtime; monotonic clock has gone
backwards" messages on the console when installing and booting
-current (CVS trunk as of 2009.03.10.10.48.09 UTC) in qemu. In my
last install, I got one while running sysinst, and a second one
booting the intstalled system:
Configuring network interfaces:.
Adding interface aliases:.
WARNING: negative runtime; monotonic clock has gone backwards
Building databases: dev, utmp, utmpx, services done
--
Andreas Gustafsson, gson@gson.org
State-Changed-From-To: feedback->open
State-Changed-By: gson@NetBSD.org
State-Changed-When: Tue, 10 Mar 2009 17:18:02 +0000
State-Changed-Why:
Bug is still there according to my testing
From: Antti Kantee <pooka@cs.hut.fi>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/40511
Date: Tue, 17 Mar 2009 20:00:36 +0200
I also noticed the same thing with qemu. However, at least my qemu does
something really funny with time, since it advances daytime at half speed
(i.e. 1 second every 2 seconds). I've never bothered investigating,
but maybe these are connected?
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc:
Subject: re: kern/40511 (negative runtime)
Date: Wed, 29 May 2019 01:18:34 +0000
If someone has an issue, maybe specify which clock is problematic in its
own bug?
Generally, netbsd seems able to keep a monotonic time for many systems,
so it's no longer a general problem.
We have separate bugs for alpha MP (PR 42189) and x86 KVM (PR 53648).
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 26 May 2022 03:24:53 +0000
State-Changed-Why:
a good number of clock runs backwards bugs have been fixed since 2009,
plus this report predates the entire current timecounters infrastructure
(right?) so I think it's best treated as stale -- if you are seeing such
a problem please file a new PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.