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

Warn when most of the RAM has been used up by Rerun #1651

Merged
merged 4 commits into from Mar 22, 2023

Conversation

emilk
Copy link
Member

@emilk emilk commented Mar 21, 2023

Unless the --memory-limit is already set, we now warn and suggest setting it when Rerun is using 75% of all available RAM by itself.

Tested on:

  • Max
  • Linux
  • Windows

The easiest to test is to run with RUST_LOG=debug and se what limit is printed out.

Checklist

Unless the `--memory-limit` is already set, we now warn and suggest
setting it when Rerun is using 75% of all available RAM by itself.
@emilk emilk added the 📺 re_viewer affects re_viewer itself label Mar 21, 2023
@teh-cmc teh-cmc self-requested a review March 21, 2023 14:25
@teh-cmc
Copy link
Member

teh-cmc commented Mar 21, 2023

A bit finicky on Linux since RSS count is disabled but eh 🤷‍♂️

@Wumpf
Copy link
Member

Wumpf commented Mar 21, 2023

confirmed limit printing to be working on windows! Anything you did to test hitting the limit?

@emilk
Copy link
Member Author

emilk commented Mar 22, 2023

@Wumpf running examples/python/opencv_canny/main.py should do it

@Wumpf
Copy link
Member

Wumpf commented Mar 22, 2023

works!

@emilk emilk merged commit 9aaf909 into main Mar 22, 2023
@emilk emilk deleted the emilk/warn-at-high-memory-use branch March 22, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📺 re_viewer affects re_viewer itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants