Timer ticks backward ~4-30 microseconds
Posted: 22. Dec 2010, 21:59
We're running a ubuntu 10.04 (2.6.32-27-generic) guest on a ubuntu 10.10 (2.6.35-22-server) server using VirtualBox OSE 3.2.8. If I enable 2 virtual CPUs on the guest, every once in a while the timer will tick backwards by ~4-30 microseconds. If I allocate 1 virtual CPU instead of 2, this problem seems to happen much less often. I have tried a bunch of different things having to do with timer migration, disabling tickless support, specifying the timer to use on the kernel load line but nothing seems to be working.
Has anyone else run into this problem?
Here is the python test script I'm using, and the output it generates on failure.
Start time => Wed Dec 22 13:21:47 2010
ERROR:
CURR => 1293045736.284680
LAST => 1293045736.284684
End time => Wed Dec 22 13:22:16 2010
######################
import time
print("Start time => %s" % time.ctime())
while True:
t = time.time()
c = time.time()
if c < t:
print("ERROR:\nCURR => %f\nLAST => %f" % (c, t))
break
print("End time => %s" % time.ctime())
######################
Thanks,
Seth
Has anyone else run into this problem?
Here is the python test script I'm using, and the output it generates on failure.
Start time => Wed Dec 22 13:21:47 2010
ERROR:
CURR => 1293045736.284680
LAST => 1293045736.284684
End time => Wed Dec 22 13:22:16 2010
######################
import time
print("Start time => %s" % time.ctime())
while True:
t = time.time()
c = time.time()
if c < t:
print("ERROR:\nCURR => %f\nLAST => %f" % (c, t))
break
print("End time => %s" % time.ctime())
######################
Thanks,
Seth