forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid unnecessary memory capacity growth in case of concurrent arbitr… (
facebookincubator#9557) Summary: This PR avoids unnecessary memory capacity growth in case of concurrent arbitration requests from the same query. The first arbitration request might have reserved enough capacity from the arbitrator (we allocate more than request to reduce the number of arbitrations). We avoid this by checking if there is sufficient free capacity in the request pool itself before allocating more capacity from the arbitrator. Also to avoid unnecessary retries from the memory pool, we support to commit the reservation bytes before return arbitration success back to the memory pool. Correspondingly, the memory pool doesn't have to increase the reservation and check for retry on capacity grow success from the arbitrator. Pull Request resolved: facebookincubator#9557 Reviewed By: tanjialiang, oerling Differential Revision: D56444509 Pulled By: xiaoxmeng fbshipit-source-id: adbff6ba18389c30c601e627a325c6d7df1f907c
- Loading branch information
1 parent
32289f9
commit 97160cd
Showing
19 changed files
with
328 additions
and
410 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
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
Oops, something went wrong.