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: RLIMIT_NOFILES, current number of open files #1202

Open
bryanlarsen opened this issue Jan 12, 2024 · 3 comments
Open

Feature Request: RLIMIT_NOFILES, current number of open files #1202

bryanlarsen opened this issue Jan 12, 2024 · 3 comments

Comments

@bryanlarsen
Copy link
Sponsor

It would be useful for me if sysinfo gained the ability to report on the number of open files limit per process, as well as the number of open files each process currently has open. If these two values are only for the current process that's still useful.

It appears from reading #242 that you already have some of this code.

related crate: https://docs.rs/rlimit/latest/rlimit/

@GuillaumeGomez
Copy link
Owner

Just to be sure: you want:

  • Process::open_files
  • Process::open_files_limit

Not just for the current process, right? I prefer to confirm since you mentioned #242.

@bryanlarsen
Copy link
Sponsor Author

Yes, that seems exactly like what I am asking for, thank you.

@GuillaumeGomez
Copy link
Owner

No problem. I'll try to implement it in the coming weeks. A bit busy currently. ^^'

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