forked from apache/incubator-gluten
-
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 per-driver cpu time slicing support (apache#8083)
Summary: Support per-driver cpu time slicing. It provides an advisory method from driver to check if a driver has been running too long on the thread. The driver execution framework respect this limit by checking this when switch operators in the driver pipeline execution. The long running operator method shall also respect this limit by checking this inside the operator method execution such as table scan and spill read path in hash join. Add one query config: driver_cpu_time_slice_limit_ms to allow query system to configure on query execution, and adds metric to monitor the cpu yield events in production: driver_yield_count Unit test is added to verify. The followup is to add a system-wide config in Prestissimo to configure this for slow query which are blocked in the queue for too long. Pull Request resolved: facebookincubator/velox#8083 Reviewed By: Yuhta Differential Revision: D52240407 Pulled By: xiaoxmeng fbshipit-source-id: 282ad89bfbae4361302c38d7480c5353756b6acb
- Loading branch information
1 parent
0f32527
commit f0b1ae0
Showing
8 changed files
with
222 additions
and
58 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
Oops, something went wrong.