-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: fix high latency generated by file handle creation
Whenever the file descriptor table is full, Linux expands it by doubling it's size. The filesystem code that does this uses RCU synchronization to ensure all pre-existing RCU read-side critical sections have completed. The latency induced by this synchronization is a big part of the total time required to restore a snapshot. The kernel has an optimization in the expand table code path where it doesn't call synchronize_rcu() if there is only one thread in the process. To address this issue we attempt to expand the descriptor table at the application start, when it has only one thread. Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com>
- Loading branch information
1 parent
5a811af
commit 37b9ba7
Showing
1 changed file
with
105 additions
and
2 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