-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEA] Add IO diagnostic output for GPU slowness in Profiler tool (#1451)
Contributes to #1374 ### Changes - Added an IO diagnostic view in Profiler output: `io_diagnostic_metrics.csv` - Added class `IOAccumDiagnosticMetrics` to store selected IO related metric names and methods - Added class `IODiagnosticResult` to represent each IO diagnostic result - In `core/src/main/scala/com/nvidia/spark/rapids/tool/analysis/AppSQLPlanAnalyzer.scala`, cache results from `generateSQLAccums` and use them to compute IO diagnostic metrics in function `generateIODiagnosticAccums` - Added `IODiagnostics` in class `DiagnosticSummaryInfo` - Reorganized `AccumProfileResults` and `SQLAccumProfileResults` presentation for better readability ### Testing - Added unit test "test IO diagnostic metrics" in `core/src/test/scala/com/nvidia/spark/rapids/tool/profiling/AnalysisSuite.scala` ### Example Output ``` appIndex,appName,appId,sqlId,stageId,stageDurationMs,nodeId,nodeName,outputRowsMin,outputRowsMedian,outputRowsMax,outputRowsTotal,scanTimeMin,scanTimeMedian,scanTimeMax,scanTimeTotal,outputBatchesMin,outputBatchesMedian,outputBatchesMax,outputBatchesTotal,bufferTimeMin,bufferTimeMedian,bufferTimeMax,bufferTimeTotal,shuffleWriteTimeMin,shuffleWriteTimeMedian,shuffleWriteTimeMax,shuffleWriteTimeTotal,fetchWaitTimeMin,fetchWaitTimeMedian,fetchWaitTimeMax,fetchWaitTimeTotal,gpuDecodeTimeMin,gpuDecodeTimeMedian,gpuDecodeTimeMax,gpuDecodeTimeTotal 1,Spark shell,local-1622814619968,0,0,1743,16,"GpuColumnarExchange",1666666,1666667,1666667,10000000,0,0,0,0,200,200,200,1200,0,0,0,0,41434653,60830365,100858775,400284505,0,0,0,0,0,0,0,0 1,Spark shell,local-1622814619968,0,0,1743,21,"Scan",1666666,1666667,1666667,10000000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 1,Spark shell,local-1622814619968,0,1,1631,8,"GpuColumnarExchange",1666666,1666667,1666667,10000000,0,0,0,0,200,200,200,1200,0,0,0,0,37444140,92128351,108992798,508750471,0,0,0,0,0,0,0,0 1,Spark shell,local-1622814619968,0,1,1631,13,"Scan",1666666,1666667,1666667,10000000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 1,Spark shell,local-1622814619968,0,2,688,3,"GpuColumnarExchange",1,1,1,200,0,0,0,0,1,1,1,200,0,0,0,0,139875,230038,9747416,93193331,0,0,0,0,0,0,0,0 ``` ### Follow-up Issue #1454 --------- Signed-off-by: cindyyuanjiang <[email protected]>
- Loading branch information
1 parent
d15a999
commit de411e3
Showing
14 changed files
with
758 additions
and
123 deletions.
There are no files selected for viewing
36 changes: 0 additions & 36 deletions
36
core/src/main/scala/com/nvidia/spark/rapids/tool/analysis/AnalysisUtils.scala
This file was deleted.
Oops, something went wrong.
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.