Do tasks run in parallel or sequential in one executor? #5337
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
the parallelism overall on the executor is first controlled by the number of cores given to the executor, how many does the executor have? you said the machine has 16 but were all of those allocated to your 1 executor? Easiest way to check is look at the executors UI page. more information on this at: https://nvidia.github.io/spark-rapids/docs/tuning-guide.html#number-of-tasks-per-executor Also note that this is how much could run in parallel its up to spark to schedule and if tasks are so quick to finish sometimes you may not get all running at the same time, you can watch the UI while running the application and see how many are running on the executor at once either by looking at executor page and refreshing or looking at the stages page. |
Beta Was this translation helpful? Give feedback.
-
Closing this as answered. @HaoYang670 please reopen if you have further questions. |
Beta Was this translation helpful? Give feedback.
the parallelism overall on the executor is first controlled by the number of cores given to the executor, how many does the executor have? you said the machine has 16 but were all of those allocated to your 1 executor? Easiest way to check is look at the executors UI page.
If that had 16 cores that means Spark could have started 16 tasks in parallel on that executor and the spark.rapids.sql.concurrentGpuTasks does control how many of those tasks are allowed to run on the GPU concurrently. So it should control the max parallelism of tasks run concurrently on the GPU.
more information on this at: https://nvidia.github.io/spark-rapids/docs/tuning-guide.html#number-of-tasks-per-executor
Also …