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

[Data] Raise warning if user tries to pass large argument to UDF #45288

Open
bveeramani opened this issue May 13, 2024 · 0 comments
Open

[Data] Raise warning if user tries to pass large argument to UDF #45288

bveeramani opened this issue May 13, 2024 · 0 comments
Assignees
Labels
data Ray Data-related issues enhancement Request for new feature and/or capability P2 Important issue, but not time-critical

Comments

@bveeramani
Copy link
Member

Description

If you pass a large arg if fn_args or fn_kwargs, Ray stores a copy of that object in heap memory for each task. So, if Ray Data launches many tasks, this can cause heap OOMs. See Anti-pattern: Passing the same large argument by value repeatedly harms performance

To avoid users shooting themselves in the foot with this, we should raise a warning.

Use case

UX

@bveeramani bveeramani added enhancement Request for new feature and/or capability P2 Important issue, but not time-critical data Ray Data-related issues labels May 13, 2024
@bveeramani bveeramani self-assigned this May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Ray Data-related issues enhancement Request for new feature and/or capability P2 Important issue, but not time-critical
Projects
None yet
Development

No branches or pull requests

1 participant