Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running lsof on external volume takes several minutes #10

Open
yk4to opened this issue Aug 2, 2023 · 0 comments
Open

Running lsof on external volume takes several minutes #10

yk4to opened this issue Aug 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@yk4to
Copy link
Owner

yk4to commented Aug 2, 2023

On a USB-connected SSD (5Gbps max), it took more than 3 minutes to identify the application that was using a certain file.

The +D option of lsof takes a very long time to execute because it recursively checks all files in a directory.

macOS detects the processes by some mechanism which is probably a low layer such as a file descriptor, so it may be necessary to use C APIs to get close to that.

related: #8

@yk4to yk4to added the bug Something isn't working label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant