You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add warning for submissions close to the memory limit #413
Sometimes, you don't notice that you are close to the memory limit and depending on the default memory limit (and it can be REALLY hard to tell because of pypy or unordered_map in C++ having non-obvious amounts of memory usage). It would be nice to give a warning if you are within half or one quarter of the memory limit.
Of course, this is "impossible" to do for all languages. But as long as we do it for let's say only C++ and Python, we are 95% of the way there, and if people want it for more languages, they can make a PR 🙂.
With the new table, one could easily imagine adding this as a column.
Unfortunately, it seems difficult to easily extract memory usage. It's tempting to just use ru_maxrss (this is not too far off from what Kattis measures). Unfortunately, because of the way we fork submissions, problemtools' memory usage is also counted into this. Since that doesn't work, any real solution would probably require rewriting the judging flow, at which point we might as well finally start using isolate for judging.
Activity
Matistjati commentedon May 28, 2026
With the new table, one could easily imagine adding this as a column.
Unfortunately, it seems difficult to easily extract memory usage. It's tempting to just use
ru_maxrss(this is not too far off from what Kattis measures). Unfortunately, because of the way we fork submissions, problemtools' memory usage is also counted into this. Since that doesn't work, any real solution would probably require rewriting the judging flow, at which point we might as well finally start using isolate for judging.