This is related to this question, but I am on OSX 10.13.4. lsof
takes about a minute to run, even with the -n
option on.
I can't even run dtruss
to examine the system calls being made:
$ sudo dtruss sudo lsof
dtrace: system integrity protection is on, some features will not be available
dtrace: failed to execute sudo: dtrace cannot control executables signed with restricted entitlements
So, why is it taking so long? How can I speed it up?