-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cgofuse: use fd table shrinker and change limits
Since the file table can now reclaim memory, we can raise the hardcoded open file limit. These limits are arbitrary and should become variable at some point. The file table grows by some factor as needed, and now it can shrink when descriptors are freed (down to some limit based on the growth scaling factor). No metrics on how this impacts performance. For now, we just want to prevent the table from growing large and remaining large after lots of open+close calls have been made. This could help handle lookups slightly, since we no longer need to range over as many `nil` entries at the tail anymore. But it's hard to judge without measuring if the checks+realloc cost more than we save in the average usecases.
- Loading branch information
Showing
1 changed file
with
27 additions
and
26 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