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

Implement ProxifyHostFile.evict() #862

Merged
merged 2 commits into from
Feb 22, 2022

Conversation

madsbk
Copy link
Member

@madsbk madsbk commented Feb 22, 2022

Closes #861

@madsbk madsbk added 2 - In Progress Currently a work in progress improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Feb 22, 2022
@github-actions github-actions bot added the python python code needed label Feb 22, 2022
@codecov-commenter
Copy link

codecov-commenter commented Feb 22, 2022

Codecov Report

Merging #862 (4354db5) into branch-22.04 (98686bd) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff                @@
##           branch-22.04     #862      +/-   ##
================================================
- Coverage         64.47%   64.42%   -0.06%     
================================================
  Files                22       22              
  Lines              3099     3103       +4     
================================================
+ Hits               1998     1999       +1     
- Misses             1101     1104       +3     
Impacted Files Coverage Δ
dask_cuda/proxify_host_file.py 93.33% <100.00%> (-0.74%) ⬇️

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 98686bd...4354db5. Read the comment docs.

@madsbk madsbk marked this pull request as ready for review February 22, 2022 10:14
@madsbk madsbk requested a review from a team as a code owner February 22, 2022 10:14
@madsbk madsbk added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Feb 22, 2022
Copy link
Member

@pentschev pentschev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just minor typo fixes and question not related to this PR itself, but otherwise LGTM. Thanks @madsbk ! 😄

dask_cuda/proxify_host_file.py Outdated Show resolved Hide resolved
@@ -583,25 +583,44 @@ def oom(nbytes: int) -> bool:
mr = rmm.mr.FailureCallbackResourceAdaptor(current_mr, oom)
rmm.mr.set_current_device_resource(mr)

def evict(self) -> int:
"""Manually evict 1% of host limit.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand this was already like this before and not quite sure how useful that would be, but should the 1% value be configurable somehow?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that is necessary. Hopefully, we get to a point where Dask never calls this.

dask_cuda/proxify_host_file.py Outdated Show resolved Hide resolved
Co-authored-by: Peter Andreas Entschev <peter@entschev.com>
@pentschev
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 97dc8cf into rapidsai:branch-22.04 Feb 22, 2022
@pentschev
Copy link
Member

Thanks @madsbk for fixing this!

@madsbk madsbk deleted the dask_evict branch February 22, 2022 15:19
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 improvement Improvement / enhancement to an existing function non-breaking Non-breaking change python python code needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: 'ProxifyHostFile' object has no attribute 'evict'
3 participants