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

feature request: add an "available columns" to display count of fds #1478

Open
lidaobing opened this issue May 10, 2024 · 1 comment
Open
Labels
new feature Completely new feature

Comments

@lidaobing
Copy link

Usage: when checking the fd leaks when forking, it's handy to check the number of opened file descriptors for every parent process.

How to get data: the following information means 281132 has 16 opened fds(and should have a better way to get it)

$ ls -l /proc/281132/fd | wc -l
16
@BenBE BenBE added the new feature Completely new feature label May 10, 2024
@BenBE
Copy link
Member

BenBE commented May 10, 2024

When we implemented the FD meter we briefly thought about this extra information but ultimately decided against collecting it, as this takes up a considerable amount of time to collect. Each process causes one iteration over a directory, which is in itself a slow process. Thus unless this information is available somewhere readily (in preferably a file we already process) it's unlikely to be implemented, as this will cause quite a bit of slow-down in htop.

Also, such a column should ideally be cross-platform, just like the accompanying meter is.

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

No branches or pull requests

2 participants