NetBSD Problem Report #52664

From www@NetBSD.org  Sat Oct 28 15:59:36 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B1BCC7A1D0
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 28 Oct 2017 15:59:36 +0000 (UTC)
Message-Id: <20171028155933.82F677A20E@mollari.NetBSD.org>
Date: Sat, 28 Oct 2017 15:59:33 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: monotonic clock goes backwards
X-Send-Pr-Version: www-1.0

>Number:         52664
>Category:       port-xen
>Synopsis:       monotonic clock goes backwards
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-xen-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 28 16:00:00 +0000 2017
>Last-Modified:  Sat Oct 28 18:00:01 +0000 2017
>Originator:     coypu
>Release:        NetBSD 8.99.4
>Organization:
>Environment:
NetBSD lio.xen.prgmr.com 8.99.4 NetBSD 8.99.4 (XEN3_DOMU) #10: Sat Oct 28 13:28:12 UTC 2017  lio@lio.xen.prgmr.com:/home/lio/obj/sys/arch/amd64/compile/XEN3_DOMU amd64   
>Description:
dmesg:
WARNING: negative runtime; monotonic clock has gone backwards

run top:
  PID   LID USERNAME PRI STATE      TIME   WCPU    CPU NAME      COMMAND
11780     1 fly       79 wait/0     0:06  4.93%  4.93% -         pkgdata
    0    56 root     222 key_ti/2    ???  0.00%  0.00% key_timeh [system]
    0    32 root     127 xcall/3     ???  0.00%  0.00% xcall/3   [system]
    0     1 root     125 uvm/1       ???  0.00%  0.00% swapper   [system]
..

this is a domu machine with 4 vcpus.
>How-To-Repeat:

>Fix:

>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-xen/52664: monotonic clock goes backwards
Date: Sat, 28 Oct 2017 17:57:03 +0000

 it's considerably more wrong than rdtsc currently compared side by side

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.