Bad performance of PHP(+xdebug) after sleep and waking up because of clock changing from TSC to HPET · Issue #3455 · docker/for-mac (original) (raw)
- I have tried with the latest version of my channel (Stable or Edge)
- I have uploaded Diagnostics
- Diagnostics ID: 327AD075-DF8F-491F-AF4D-200FBC3FB830/20190112205307
Expected behavior
Test scenario should always take 30s to complete
Actual behavior
Test scenario takes 30s to complete after Docker for Mac restart, and takes 1m30s-2m to complete after sleep and wakeup.
Information
- macOS Version: 10.14.1 (18B75)
I have some PHP test scenario for my application I can run to check how good or bad performance is. I also have a linux laptop to compare with. This test in docker on linux completes in 30s. When I restart Docker for Mac, it runs 30s on Docker for Mac as well, but after I put MacBook to sleep and wake it up, the very same test takes 1m30s-2m. And it would take this long until I restart Docker for Mac. After restart, this test takes 30s again. I can reproduce it very reliably every time I try. The very same issue was reported a year ago here: EugenMayer/docker-sync#524
Diagnostic logs
Docker for Mac: Version 2.0.0.0-mac81 (29211)
Steps to reproduce the behavior
- Run something with fixed run time, see time X
- Put Mac to sleep, wake it up
- Run it again, see time 3X
- Restart Docker for Mac
- Run it again, see time X