[lug] lsof

Richard Johnson rdump at river.com
Sat Apr 14 18:05:49 MDT 2018


On 2018-04-13 16:54, Jeffrey S. Haemer wrote:
> I didn't specify the hardware because it's slow on two different Macs
> running 10.13.4: a new Macbook Pro Touchbar (work) and an old Macbook Pro
> (my home laptop).

My lsof -i on 2016 touchbar MacBook Pro has been pausing for ~10 seconds
between listing:

| xartstora   270           root    4u  IPv6 0xeaf376bae7d254af      0t0
TCP *:61500 (LISTEN)

and

| biometric   271           root    4u  IPv6 0xeaf376bae7d24eef      0t0
TCP [fe80:a::aede:48ff:fe00:1122]:49162->[fe80:a::aede:48ff:fe33:4455]:52032
(ESTABLISHED)

Fast otherwise. It's an annoyance in certain scripts, but hasn't broken them yet.

I mention it only because you've noted 10 seconds as well. That could be
coincidence, though.

My preliminary guess was that the touchbar/fingerprint reader ARM coprocessor
is now slower to respond, by virtue of doing something broken in the realm of
DNS resolution, in 10.13.4. In partial confirmation that my case is
DNS-related, lsof -n -i prints results as fast as the terminal can write them.

I'm otherwise unable to duplicate your timing problem.

laramie:~ $ time lsof foo
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF       NODE NAME
bash    19199 mirk    1w   REG    1,4       29 8769775889 foo
sleep   19201 mirk    1w   REG    1,4       29 8769775889 foo

real	0m0.148s
user	0m0.013s
sys	0m0.127s
laramie:~ $ time lsof -n foo
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF       NODE NAME
bash    19199 mirk    1w   REG    1,4       58 8769775889 foo
sleep   19206 mirk    1w   REG    1,4       58 8769775889 foo

real	0m0.140s
user	0m0.012s
sys	0m0.127s


Rich




More information about the LUG mailing list