You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "liuzqt (via GitHub)" <gi...@apache.org> on 2024/08/26 12:49:35 UTC

[PR] [SPARK-48788][WIP] Expose task peak onheap/offheap execution memory to API [spark]

liuzqt opened a new pull request, #47872:
URL: https://github.com/apache/spark/pull/47872

   ### What changes were proposed in this pull request?
   
   https://github.com/apache/spark/pull/47776 has introduced task peak on/off heap execution memory metrics, this PR exposes these two metrics to APIs.
   
   ### Why are the changes needed?
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. TODO
   
   
   ### How was this patch tested?
   
   Existing UTs.
   Verify through Spark UI (TODO)
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   NO
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-48788][CORE][UI] Expose task peak onheap/offheap execution memory to API and Spark UI [spark]

Posted by "liuzqt (via GitHub)" <gi...@apache.org>.
liuzqt commented on code in PR #47872:
URL: https://github.com/apache/spark/pull/47872#discussion_r1746847493


##########
core/src/main/protobuf/org/apache/spark/status/protobuf/store_types.proto:
##########
@@ -128,6 +128,8 @@ message TaskDataWrapper {
   int64 shuffle_merged_local_bytes_read = 49;
   int64 shuffle_remote_reqs_duration = 50;
   int64 shuffle_merged_remote_req_duration = 51;
+  int64 peak_on_heap_execution_memory = 52;
+  int64 peak_off_heap_execution_memory = 53;

Review Comment:
   Looks like we already have executor level stage memory metrics:
   - `ExecutorStageSummary` has `val peakMemoryMetrics: Option[ExecutorMetrics]`
   - `ExecutorSummary` has `val memoryMetrics: Option[MemoryMetrics]`
   - `ExecutorMetricsDistributions` has `val peakMemoryMetrics: ExecutorPeakMetricsDistributions`
   
   which are aggregated through [AppStatusListener.updateStageLevelPeakExecutorMetrics](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/status/AppStatusListener.scala#L1000)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-48788][CORE][UI] Expose task peak onheap/offheap execution memory to API and Spark UI [spark]

Posted by "liuzqt (via GitHub)" <gi...@apache.org>.
liuzqt commented on PR #47872:
URL: https://github.com/apache/spark/pull/47872#issuecomment-2356964617

   Hi @mridulm I've fixed broken tests, also answered you questions, do you mind taking another look when you have time? Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-48788][CORE][WIP] Expose task peak onheap/offheap execution memory to API [spark]

Posted by "liuzqt (via GitHub)" <gi...@apache.org>.
liuzqt commented on PR #47872:
URL: https://github.com/apache/spark/pull/47872#issuecomment-2316719817

   Hi @mridulm @dongjoon-hyun I'm working on this follow-up item for https://github.com/apache/spark/pull/47776, mostly APIs change and Spark UI change, I've manually verified it in Spark UI, could you pls help review this when you have time? 
   
   And BTW do you know how to run `HistoryServerSuite.main`? seems like I need to run that to re-generate the ground truth.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-48788][CORE][UI] Expose task peak onheap/offheap execution memory to API and Spark UI [spark]

Posted by "mridulm (via GitHub)" <gi...@apache.org>.
mridulm commented on code in PR #47872:
URL: https://github.com/apache/spark/pull/47872#discussion_r1743028581


##########
core/src/main/protobuf/org/apache/spark/status/protobuf/store_types.proto:
##########
@@ -128,6 +128,8 @@ message TaskDataWrapper {
   int64 shuffle_merged_local_bytes_read = 49;
   int64 shuffle_remote_reqs_duration = 50;
   int64 shuffle_merged_remote_req_duration = 51;
+  int64 peak_on_heap_execution_memory = 52;
+  int64 peak_off_heap_execution_memory = 53;

Review Comment:
   Add to `ExecutorStageSummary`, `ExecutorSummary`, `ExecutorMetricsDistributions` as well.
   (Here and other model classes)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-48788][CORE][UI] Expose task peak onheap/offheap execution memory to API and Spark UI [spark]

Posted by "mridulm (via GitHub)" <gi...@apache.org>.
mridulm commented on PR #47872:
URL: https://github.com/apache/spark/pull/47872#issuecomment-2327890893

   Also +CC @gengliangwang


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-48788][CORE][UI] Expose task peak onheap/offheap execution memory to API and Spark UI [spark]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #47872: [SPARK-48788][CORE][UI] Expose task peak onheap/offheap execution memory to API and Spark UI
URL: https://github.com/apache/spark/pull/47872


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-48788][CORE][UI] Expose task peak onheap/offheap execution memory to API and Spark UI [spark]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47872:
URL: https://github.com/apache/spark/pull/47872#issuecomment-2563190838

   We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
   If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org