You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "waitinfuture (via GitHub)" <gi...@apache.org> on 2023/07/11 09:06:51 UTC

[GitHub] [incubator-celeborn] waitinfuture opened a new pull request, #1707: [CELEBORN-789] Increase default value of celeborn.worker.push.composi…

waitinfuture opened a new pull request, #1707:
URL: https://github.com/apache/incubator-celeborn/pull/1707

   …teBuffer.maxComponents
   
   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     - Make sure the PR title start w/ a JIRA ticket, e.g. '[CELEBORN-XXXX] Your PR title ...'.
     - Be sure to keep the PR description updated to reflect all changes.
     - Please write your PR title to summarize what this PR proposes.
     - If possible, provide a concise example to reproduce the issue for a faster review.
   -->
   
   ### What changes were proposed in this pull request?
   Set default value of ```celeborn.worker.push.compositeBuffer.maxComponents``` to 256, to be aligned with 0.2.1-incubating version.
   
   
   ### Why are the changes needed?
   Default 16 is too small, and causes severe GC and CPU high load.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No, it's internal config.
   
   
   ### How was this patch tested?
   Passes GA.
   


-- 
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: issues-unsubscribe@celeborn.apache.org

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


[GitHub] [incubator-celeborn] pan3793 commented on pull request #1707: [CELEBORN-789] Set default value of flushBuffer's max components to 256

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #1707:
URL: https://github.com/apache/incubator-celeborn/pull/1707#issuecomment-1630449962

   maybe 64 is fine, let me test


-- 
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: issues-unsubscribe@celeborn.apache.org

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


[GitHub] [incubator-celeborn] waitinfuture commented on pull request #1707: [CELEBORN-789] Set default value of flushBuffer's max components to 256

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on PR #1707:
URL: https://github.com/apache/incubator-celeborn/pull/1707#issuecomment-1630447729

   cc @pan3793 


-- 
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: issues-unsubscribe@celeborn.apache.org

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


[GitHub] [incubator-celeborn] waitinfuture commented on pull request #1707: [CELEBORN-789] Increase default value of flushBuffer's max components

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on PR #1707:
URL: https://github.com/apache/incubator-celeborn/pull/1707#issuecomment-1630732648

   > My test shows that 128~256 works better in low memory cases (2g off-heap memory per worker)
   > 
   > When lower than 128, the CPU cost is very high on CompositeBuffer compaction, and there is a high probability that "direct memory usage" < "disk buffer size", since pause is judged by "direct memory usage", OOM happens frequently.
   > 
   > Even with 128, sometimes "direct memory usage" < "disk buffer size"
   > 
   > ```
   > Direct memory usage: 1476.0 MiB/2.0 GiB, disk buffer size: 1850.7 MiB
   > ```
   > 
   > On the other hand, with the growth of "maxComponents", memory fragmentation grows rapidly too.
   > 
   > My final choice is 192. But I think setting 128 in default should be fine considering most users will give it a larger resource than me.
   > 
   > <img alt="image" width="1661" src="https://user-images.githubusercontent.com/26535726/252643124-49d0522d-1739-4e90-b6c6-1a6ec223c491.png"> <img alt="image" width="1274" src="https://user-images.githubusercontent.com/26535726/252643266-c4c829b6-5983-4f77-90c9-3a2a5f97e1f0.png"> <img alt="image" width="1317" src="https://user-images.githubusercontent.com/26535726/252643371-db9b7c53-bac8-47fb-90e6-1594aafe8ea5.png"> <img alt="image" width="1251" src="https://user-images.githubusercontent.com/26535726/252643557-60a33054-f18e-4ad7-8692-c3242a299534.png">
   
   Thanks @pan3793 for the detailed profiling! I have changed the default value to 128 according to your suggestion. I also agree that optimal settings depend on environment and workloads.


-- 
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: issues-unsubscribe@celeborn.apache.org

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


[GitHub] [incubator-celeborn] pan3793 commented on pull request #1707: [CELEBORN-789] Increase default value of flushBuffer's max components

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #1707:
URL: https://github.com/apache/incubator-celeborn/pull/1707#issuecomment-1630631305

   My test shows that 128~256 works better in low memory cases (2g off-heap memory per worker)
   
   When lower than 128, the CPU cost is very high on CompositeBuffer compaction, and there is a high probability that "direct memory usage" < "disk buffer size", since pause is judged by "direct memory usage", OOM happens frequently.
   
   Even with 128, sometimes "direct memory usage" < "disk buffer size"
   
   ```
   Direct memory usage: 1476.0 MiB/2.0 GiB, disk buffer size: 1850.7 MiB
   ```
   
   On the other hand, with the growth of "maxComponents", memory fragmentation grows rapidly too.
   
   My final choice is 192. But I think setting 128 in default should be fine considering most users will give it a larger resource than me.
   
   <img width="1661" alt="image" src="https://github.com/apache/incubator-celeborn/assets/26535726/49d0522d-1739-4e90-b6c6-1a6ec223c491">
   
   <img width="1274" alt="image" src="https://github.com/apache/incubator-celeborn/assets/26535726/c4c829b6-5983-4f77-90c9-3a2a5f97e1f0">
   
   <img width="1317" alt="image" src="https://github.com/apache/incubator-celeborn/assets/26535726/db9b7c53-bac8-47fb-90e6-1594aafe8ea5">
   
   <img width="1251" alt="image" src="https://github.com/apache/incubator-celeborn/assets/26535726/60a33054-f18e-4ad7-8692-c3242a299534">
   


-- 
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: issues-unsubscribe@celeborn.apache.org

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


[GitHub] [incubator-celeborn] codecov[bot] commented on pull request #1707: [CELEBORN-789] Increase default value of flushBuffer's max components

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #1707:
URL: https://github.com/apache/incubator-celeborn/pull/1707#issuecomment-1632415240

   ## [Codecov](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1707?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   > Merging [#1707](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1707?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (0d13ee1) into [main](https://app.codecov.io/gh/apache/incubator-celeborn/commit/d64e0091f167462bacd358992ece4b151d673249?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (d64e009) will **increase** coverage by `0.15%`.
   > The diff coverage is `100.00%`.
   
   > :exclamation: Current head 0d13ee1 differs from pull request most recent head b93f6fa. Consider uploading reports for the commit b93f6fa to get more accurate results
   
   ```diff
   @@            Coverage Diff             @@
   ##             main    #1707      +/-   ##
   ==========================================
   + Coverage   46.51%   46.66%   +0.15%     
   ==========================================
     Files         161      161              
     Lines       10026     9995      -31     
     Branches      928      924       -4     
   ==========================================
     Hits         4663     4663              
   + Misses       5048     5017      -31     
     Partials      315      315              
   ```
   
   
   | [Impacted Files](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1707?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [...born/common/protocol/message/ControlMessages.scala](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1707?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29tbW9uL3NyYy9tYWluL3NjYWxhL29yZy9hcGFjaGUvY2VsZWJvcm4vY29tbW9uL3Byb3RvY29sL21lc3NhZ2UvQ29udHJvbE1lc3NhZ2VzLnNjYWxh) | `1.60% <ø> (+0.07%)` | :arrow_up: |
   | [...cala/org/apache/celeborn/common/CelebornConf.scala](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1707?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29tbW9uL3NyYy9tYWluL3NjYWxhL29yZy9hcGFjaGUvY2VsZWJvcm4vY29tbW9uL0NlbGVib3JuQ29uZi5zY2FsYQ==) | `87.23% <100.00%> (ø)` | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   


-- 
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: issues-unsubscribe@celeborn.apache.org

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


[GitHub] [incubator-celeborn] waitinfuture closed pull request #1707: [CELEBORN-789] Increase default value of flushBuffer's max components

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture closed pull request #1707: [CELEBORN-789] Increase default value of flushBuffer's max components
URL: https://github.com/apache/incubator-celeborn/pull/1707


-- 
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: issues-unsubscribe@celeborn.apache.org

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