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

Limiting async allocator using alignment of 512 #10395

Merged
merged 2 commits into from
Mar 8, 2022

Conversation

rongou
Copy link
Contributor

@rongou rongou commented Mar 7, 2022

We use the limiting_resource_adaptor in front of the async allocator to track the total size of allocations and trigger spills. By default the adaptor aligns to 256, but the async allocator internally aligns to 512. This causes the limiting adaptor to under count allocation sizes, leading to OOMs in the async allocator. This PR changes the limiting adaptor to also use 512. This seems to help with a customer query that we were seeing OOMs before.

Note that CUDA is planning to switch back to 256 in the future so this may need to be revisited.

Fixes #10384

@rongou rongou added bug Something isn't working 3 - Ready for Review Ready for review by team RMM Java Affects Java cuDF API. Spark Functionality that helps Spark RAPIDS non-breaking Non-breaking change labels Mar 7, 2022
@rongou rongou requested review from jlowe and abellina March 7, 2022 18:52
@rongou rongou self-assigned this Mar 7, 2022
@rongou rongou requested a review from a team as a code owner March 7, 2022 18:52
@codecov
Copy link

codecov bot commented Mar 7, 2022

Codecov Report

Merging #10395 (ae6dd8f) into branch-22.04 (1e5b01f) will increase coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head ae6dd8f differs from pull request most recent head 9c5a7f6. Consider uploading reports for the commit 9c5a7f6 to get more accurate results

Impacted file tree graph

@@              Coverage Diff              @@
##           branch-22.04   #10395   +/-   ##
=============================================
  Coverage         10.50%   10.50%           
=============================================
  Files               126      126           
  Lines             21218    21206   -12     
=============================================
  Hits               2228     2228           
+ Misses            18990    18978   -12     
Impacted Files Coverage Δ
python/cudf/cudf/core/_base_index.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/dataframe.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/index.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/indexed_frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/multiindex.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/series.py 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e5b01f...9c5a7f6. Read the comment docs.

@rongou
Copy link
Contributor Author

rongou commented Mar 8, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit a4f2e10 into rapidsai:branch-22.04 Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working Java Affects Java cuDF API. non-breaking Non-breaking change Spark Functionality that helps Spark RAPIDS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] JNI side is not setting the proper alignment for the limiting_resource_adaptor with ASYNC
2 participants