-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add util::nofile_cap_limits() to manage maximum number of file descri…
…ptors The main purpose of this function is to disarm excessive memory use on systems with very large limits for open file descriptors, where libkqueue currently wastes gigabytes of memory by allocating state for every possible file descriptor. This particularly triggers in Docker environments until libkqueue gets fixed or containerd changes its default-uncapped fd limit behavior. The function caps the maximum to a default of 1M open fds. The user can override or disable the behavior via the ZEEK_NOFILE_MAX environment variable. References: mheily/libkqueue#153 moby/moby#38814
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters