Closed aftaylor2 closed 11 months ago
I forgot to include the associated error message when experiencing the timeout:
2023-12-15 10:36:11.989 system_profiler[12578:260685] Timed out waiting for the Activation Lock Capable check
Awesome, I much prefer this solution anyways. Thank you for the find and the contribution!
The system_profiler command used to determine the total memory on darwin systems performs an "Activation Lock" check. This can produce a delay in returning total memory. I began experiencing delays of around 10 seconds.
Switching from system_profiler to sysctl to calculate total memory bypasses the "Activation Lock" check / timeout scenario.
Results of "time" command using system_profiler:
Results of "time" command using sysctl: