You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strangely, at the moment when I run tup natively on my M1 Mac, I consistently have ~ 4.5s overhead for some tasks, compared to the time when running the same tasks under docker on the same Mac.
I profiled a tup run to see if I could find where the time is being spent.
I also added 'Starting' and 'Stopping' messages to the asm-format code at the start and end of the code.
Here we see that both tasks took in excess of 4.5s to run, even though between 'Starting' and 'Stopping' there were 0.5ms and 1ms. So the 4.5s overhead seems to be external to the code being called. Note, the tup id 9) calls a bash script which calls asm-format, so its Starting/Stopping numbers do not include the rest of the bash script - but for the sake of this report, tup id 10) is the one that demonstrates the issue best.
I've created a recording in macOS Instruments which includes os_log, stdout/stderr, dyld Activity, Hangs, CPU Usage, and Time Profiler. It is 11MB in size - happy to provide it. Not sure if it contains sensitive data, so haven't attached it here, but can provide it via some other means if required.
Note, I compiled from HEAD (8739d02) for this test, to make sure the issue is still present in development version.
I'm also fully aware, it could be a problem with my system rather than with tup. Certainly, the profile timings from this screenshot look pretty reasonable, and don't account for the 4.5 second lag, only accounting for some ms of the total 4.7s end-to-end time.
One thing that appears strange to me is when I look at the samples that Instruments took, it seems to have stopped taking samples exactly when the freezes appear to have happened:
Anyway, let me know if I should provide any other information, or if you'd like the 11MB Instruments recording. Thanks!
The text was updated successfully, but these errors were encountered:
Strangely, at the moment when I run tup natively on my M1 Mac, I consistently have ~ 4.5s overhead for some tasks, compared to the time when running the same tasks under docker on the same Mac.
I profiled a tup run to see if I could find where the time is being spent.
This is the output of the tup run:
I also added 'Starting' and 'Stopping' messages to the asm-format code at the start and end of the code.
Here we see that both tasks took in excess of 4.5s to run, even though between 'Starting' and 'Stopping' there were 0.5ms and 1ms. So the 4.5s overhead seems to be external to the code being called. Note, the tup id 9) calls a bash script which calls asm-format, so its Starting/Stopping numbers do not include the rest of the bash script - but for the sake of this report, tup id 10) is the one that demonstrates the issue best.
I've created a recording in macOS Instruments which includes os_log, stdout/stderr, dyld Activity, Hangs, CPU Usage, and Time Profiler. It is 11MB in size - happy to provide it. Not sure if it contains sensitive data, so haven't attached it here, but can provide it via some other means if required.
Note, I compiled from HEAD (8739d02) for this test, to make sure the issue is still present in development version.
I'm also fully aware, it could be a problem with my system rather than with tup. Certainly, the profile timings from this screenshot look pretty reasonable, and don't account for the 4.5 second lag, only accounting for some ms of the total 4.7s end-to-end time.
One thing that appears strange to me is when I look at the samples that Instruments took, it seems to have stopped taking samples exactly when the freezes appear to have happened:
Anyway, let me know if I should provide any other information, or if you'd like the 11MB Instruments recording. Thanks!
The text was updated successfully, but these errors were encountered: