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

[Linux] batch multiple process info in one shot #2454

Open
giampaolo opened this issue Oct 3, 2024 · 1 comment
Open

[Linux] batch multiple process info in one shot #2454

giampaolo opened this issue Oct 3, 2024 · 1 comment

Comments

@giampaolo
Copy link
Owner

This is a reminder ticket to investigate some links that @iglendd shared in #2366:

I didn't investigate any of these links, so I'm not sure if this is even possible, but more or less the idea here is to fetch info about multiple process in one shot, and integrate this in psutil.process_iter(). Or to put it another way, there may (or rather will) be an alternative method to reading pseudo-files from /proc, which is quite expensive on Linux (in fact it may be the slowest implementation across all supported platforms).

@iglendd
Copy link

iglendd commented Oct 17, 2024

@giampaolo I did investigate it a bit after I have shared with you. It appears that in theory there are a few alternative methods had been discussed a while ago but I think they have never materialized in the main Linux releases (despite the obvious shortcomings in the /proc API calls). I could be wrong but that is my impression. :(.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants