sapling/eden
John Elliott 01afcad092 Filter out duplicates when reporting NFS crawling
Summary:
When the NFS crawl detection logic runs, it walks over the list of processes that have open files in any of the Eden mounts. If a given process hierarcy has mulitple non-exluded process with open files they are reported multiple times. This change keeps track of which pids have been seen in the reporting and only reports them one time. It also detects process hierarchies that are proper subsets of and only retains the longest hiearchy for reporting.

NFS crawl detection is still pretty basic - simple detecting that certain metrics have crossed a threshold and reporting which processes have open files in Eden mounts. Future improvements could use this trigger to initiate sampling of open files over a short interval to better refine which processes are actually opening multiple files and not just holding a static list. This improvement could be made in the future if this simple mechansim is too noisy.

Reviewed By: mshroyer

Differential Revision: D48095393

fbshipit-source-id: c85f5dd7d8a7d184cd41d4b0604795874e123641
2023-08-09 17:17:58 -07:00
..
fs Filter out duplicates when reporting NFS crawling 2023-08-09 17:17:58 -07:00
integration symlinks: fix bug when listing directories containing symlinks 2023-08-04 15:21:11 -07:00
locale
mononoke rename with_default_cachelib_settings to with_cachelib_settings 2023-08-09 05:13:18 -07:00
scm edenapi: log correlator on request 2023-08-09 10:08:32 -07:00
test_support tests: make Windows tests use buck-built hg 2023-06-27 13:11:01 -07:00
test-data update test snapshot 2023-08-04 11:38:18 -07:00
testlib Re-sync with internal repository 2023-07-17 15:51:52 -07:00
.clang-tidy clang-tidy: disable facebook-hte-ContextDependentStaticInit 2022-11-04 15:33:50 -07:00
.gitignore
.mononoke_test_file test push 2022-01-06 05:57:35 -08:00
Eden.project.toml