Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA] Add serialization time in Profiler diagnostic feature #1454

Open
cindyyuanjiang opened this issue Dec 6, 2024 · 0 comments
Open

[FEA] Add serialization time in Profiler diagnostic feature #1454

cindyyuanjiang opened this issue Dec 6, 2024 · 0 comments
Assignees
Labels
core_tools Scope the core module (scala) feature request New feature or request

Comments

@cindyyuanjiang
Copy link
Collaborator

We wish to add serialization time in one of the diagnostic views in Profiler tool. The serialization time metric was planned to be included in IO diagnostic view. However, we realized it is a stage/task level metric which cannot be added to IO diagnostic view (which collects SQL/node level metrics).

@amahussein amahussein added core_tools Scope the core module (scala) and removed ? - Needs Triage labels Dec 13, 2024
cindyyuanjiang added a commit that referenced this issue Jan 27, 2025
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core_tools Scope the core module (scala) feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants