Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit sysinfo crate FDs usage. (Azure#5055)
**Context:** We use [Sysinfo](https://docs.rs/sysinfo/0.18.0/sysinfo/) crate to get host metrics and processes info. By default it keeps `/proc/...` files open for perf optimizations. Unfortunately, there could be many processes/threads in the host system, so `sysinfo` can consume a lot of FDs. **Solution:** After looking into details of `sysinfo`, I found out that we can limit the number of FDs it can use. Also, maybe we don't need to refresh everything if we don't use that?
- Loading branch information