Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: time discontinuity detected
From: "Carsten Winkler (HZB)" <carsten.winkler@helmholtz-berlin.de>
To: tech-talk@aps.anl.gov
Date: Wed, 02 Feb 2011 13:01:14 +0100
Epics time goes crazy if I run softIoc with Epics base 3.14.12 (with all official patches) in a virtual machine.

I use following configuration:
                      Hypervisor:   kvm
                      Architecture: x86_64
                      Guest:        Windows XP (32-bit)

All works fine if I use a single core VM.

But if I use two or more CPU cores Epics time does several funny actions.
* I also get events with a new value but previous time stamp.
* Timestamps are wrong and in the future.
* I get the message: "currentTime::getCurrentTime(): 7623636.000000sec time discontinuity detected".

I've logged a test variable, which increments value every second.

-------------------------------------------------------------------------

record(ai, "demoHost:aiExample")
{
    field(DESC, "Analog input")
    field(INP, "demoHost:calcExample.VAL  NPP NNS")
    field(EGU, "Counts")
    field(HOPR, "10")
    field(LOPR, "0")
    field(HIHI, "8")
    field(HIGH, "6")
    field(LOW, "4")
    field(LOLO, "2")
    field(HHSV, "MAJOR")
    field(HSV, "MINOR")
    field(LSV, "MINOR")
    field(LLSV, "MAJOR")
}
record(calc, "demoHost:calcExample")
{
    field(DESC, "Counter")
    field(SCAN, "1 second")
    field(FLNK, "demoHost:aiExample")
    field(CALC, "(A<B)?(A+C):D")
    field(INPA, "demoHost:calcExample.VAL  NPP NNS")
    field(INPB, "9")
    field(INPC, "1")
    field(INPD, "0")
    field(EGU, "Counts")
    field(HOPR, "10")
    field(LOPR, "0")
    field(HIHI, "8")
    field(HIGH, "6")
    field(LOW, "4")
    field(LOLO, "2")
    field(HHSV, "MAJOR")
    field(HSV, "MINOR")
    field(LSV, "MINOR")
    field(LLSV, "MAJOR")
}

-------------------------------------------------------------------------

This is the log of "camonitor.exe":
###################################

One second = 1 minute?!!!
=========================
...
demoHost:aiExample             2011-02-02 11:04:02.893304 5
demoHost:aiExample             2011-02-02 11:04:55.757528 6 HIGH MINOR
demoHost:aiExample             2011-02-02 11:05:35.900993 7 HIGH MINOR
demoHost:aiExample             2011-02-02 11:05:44.292108 8 HIHI MAJOR
demoHost:aiExample             2011-02-02 11:06:10.091333 9 HIHI MAJOR
demoHost:aiExample             2011-02-02 11:07:11.216996 0 LOLO MAJOR
demoHost:aiExample             2011-02-02 11:08:16.242185 1 LOLO MAJOR
demoHost:aiExample             2011-02-02 11:09:00.773516 2 LOLO MAJOR
demoHost:aiExample             2011-02-02 11:09:43.136728 3 LOW MINOR
demoHost:aiExample             2011-02-02 11:10:25.476922 4 LOW MINOR
demoHost:aiExample             2011-02-02 11:11:32.704872 5
...

Allways the same time stamp?!!!
===============================
...
demoHost:aiExample             2011-02-02 12:58:24.858648 5
demoHost:aiExample             2011-02-02 12:58:24.858648 6 HIGH MINOR
demoHost:aiExample             2011-02-02 12:58:24.858648 7 HIGH MINOR
demoHost:aiExample             2011-02-02 12:58:24.858648 8 HIHI MAJOR
demoHost:aiExample             2011-02-02 12:58:24.858648 9 HIHI MAJOR
demoHost:aiExample             2011-02-02 12:58:24.858648 0 LOLO MAJOR
demoHost:aiExample             2011-02-02 12:58:24.858648 1 LOLO MAJOR
demoHost:aiExample             2011-02-02 12:58:24.858648 2 LOLO MAJOR
demoHost:aiExample             2011-02-02 12:58:24.858648 3 LOW MINOR
demoHost:aiExample             2011-02-02 12:58:24.858648 4 LOW MINOR
demoHost:aiExample             2011-02-02 12:58:24.858648 5
demoHost:aiExample             2011-02-02 12:58:24.858648 6 HIGH MINOR
demoHost:aiExample             2011-02-02 12:58:24.858648 7 HIGH MINOR
demoHost:aiExample             2011-02-02 12:58:24.858648 8 HIHI MAJOR
demoHost:aiExample             2011-02-02 12:58:24.858648 9 HIHI MAJOR
demoHost:aiExample             2011-02-02 12:58:24.858648 0 LOLO MAJOR
demoHost:aiExample             2011-02-02 12:58:24.858648 1 LOLO MAJOR
demoHost:aiExample             2011-02-02 12:58:24.858648 2 LOLO MAJOR
demoHost:aiExample             2011-02-02 12:58:24.858648 3 LOW MINOR
demoHost:aiExample             2011-02-02 12:58:24.858648 4 LOW MINOR
demoHost:aiExample             2011-02-02 12:58:24.858648 5
...

The error message
=================
...
demoHost:aiExample             2011-02-02 13:09:15.978653 0 LOLO MAJOR
demoHost:aiExample             2011-02-02 13:09:15.978653 1 LOLO MAJOR
demoHost:aiExample             2011-02-02 13:09:15.978653 2 LOLO MAJOR
currentTime::getCurrentTime(): 7623636.000000 sec time discontinuity detected
currentTime::getCurrentTime(): 250144975.000000 sec time discontinuity detected
demoHost:aiExample             2011-02-02 13:09:15.978653 3 LOW MINOR
currentTime::getCurrentTime(): 249700665.000000 sec time discontinuity detected
demoHost:aiExample             2011-02-02 13:09:15.978653 4 LOW MINOR
demoHost:aiExample             2011-02-02 13:09:15.978653 5
demoHost:aiExample             2011-02-02 13:09:15.978653 6 HIGH MINOR
currentTime::getCurrentTime(): 241047173.000000 sec time discontinuity detected
...


-------------------------------------------------------------------------

Any idea?


Helmholtz-Zentrum Berlin für Materialien und Energie GmbH Hahn-Meitner-Platz 1, 14109 Berlin Vorsitzende des Aufsichtsrates: Prof. Dr. Dr. h.c. mult. Joachim Treusch Stellvertretende Vorsitzende: Dr. Beatrix Vierkorn-Rudolph Geschäftsführer: Prof. Dr. Anke Rita Kaysser-Pyzalla, Prof. Dr. Dr. h.c. Wolfgang Eberhardt, Dr. Ulrich Breuer Sitz der Gesellschaft: Berlin Handelsregister: AG Charlottenburg, 89 HRB 5583 Disclaimer automatically attached by the E-Mail Security Appliance mail0.bessy.de 02/02/11 at Helmholtz-Zentrum Berlin GmbH.
begin:vcard
fn:Carsten Winkler
n:Winkler;Carsten
org;quoted-printable:Helmholtz-Zentrum Berlin f=C3=BCr Materialien und Energie GmbH;Control Systems
adr:;;Albert-Einstein-Str.15;Berlin;Berlin;12489;Deutschland
email;internet:winkler@bessy.de
tel;work:+49 30 8062 1 5005
tel;fax:+49 30 8062 1  4850
note;quoted-printable:Helmholtz-Zentrum Berlin f=C3=BCr Materialien und Energie GmbH=0D=0A=
	=0D=0A=
	Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentr=
	en e.V.=0D=0A=
	=0D=0A=
	Sitz Berlin, AG Charlottenburg, 89 HRB 5583=0D=0A=
	=0D=0A=
	Gesch=C3=A4ftsf=C3=BChrer: Prof. Dr. Anke Rita Pyzalla, Prof. Dr. Michael=
	Steiner, Dr. Ulrich Breuer=0D=0A=
	=0D=0A=
	Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph,=0D=0A=
	=0D=0A=
	Stellvertretende Vorsitzende: Dr. Jutta Koch-Unterseher
url:www.bessy.de
version:2.1
end:vcard


Replies:
Re: time discontinuity detected Michael Abbott
Re: time discontinuity detected Andrew Johnson

Navigate by Date:
Prev: Re: epicsEvent (posix implementation) bug ? Till Straumann
Next: Re: streamDevice I/O Intr polling rate Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: crosscompilation and installation of bin/lib emmanuel_mayssat
Next: Re: time discontinuity detected Michael Abbott
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·