Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time goes slowly on VirtualBox #531

Open
tomaka opened this issue Jul 26, 2020 · 2 comments
Open

Time goes slowly on VirtualBox #531

tomaka opened this issue Jul 26, 2020 · 2 comments
Labels
A-standalone-x86_64 Issues specific to x86_64

Comments

@tomaka
Copy link
Owner

tomaka commented Jul 26, 2020

On QEmu, one second in the VM seems to match one second outside of the VM.
However, on VirtualBox, one second in the VM seems to take more like 2 or 3 real world seconds.

The problem is noticed by repeatedly printing the value of the monotonic clock. This isn't a problem with processes being woken up or something like that, but really about the clock advancing too slowly.

I suspect that we're not properly measuring the number of ticks per second at initialization.

@tomaka tomaka added the A-standalone-x86_64 Issues specific to x86_64 label Jul 26, 2020
@tomaka
Copy link
Owner Author

tomaka commented Jul 26, 2020

On my Thinkpad X1, time seems to go at a normal rate.

@tomaka
Copy link
Owner Author

tomaka commented Aug 1, 2020

Thanks to #536, one can see that in VirtualBox the monotonic clock increases by approximately 171800000 per real-life second, in other words time goes ~5.8 (1 divided by 0.171) times slower.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-standalone-x86_64 Issues specific to x86_64
Projects
None yet
Development

No branches or pull requests

1 participant