-
-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- don't clean cache by number of items. - clean inodes from cache every 2' if the descriptor symlink doesn't exist anymore, or if the lastSeen time is more than 5 minutes. - launch cache cleaners before start a new process monitoring method, and start it only once for the life time of the daemon. - do not store in cache the Time objects, only the nanoseconds of the last updated time. - if the inode of a connection is found in cache, reorder the descriptors to push the descritptor to the top of the list. Also add cached the inode. It turns out that when a new connection is about to be established, when the process resolves the domain, the same inode is used to open the tcp connection to the target. So if it's cached we save CPU cycles. This also occurs when we block a connection and the process retries it, or when a connection timeouts and the process retries it (telnet 1.1.1.1).
- Loading branch information
1 parent
7b9a57b
commit 6048b0e
Showing
6 changed files
with
115 additions
and
48 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
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
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