-
Notifications
You must be signed in to change notification settings - Fork 26
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
profiled process getting killed much too early on Mac by OOM detector #287
Comments
Thanks for the bug report! I will take a look at the heuristics again. |
Turning above into more readable form:
|
|
One interesting thing I've observed since reporting this is that I can get similar behavior on Ubuntu 18.04. Sometimes fil-profiler will cause the process to exit within the first few minutes, but the process can complete successfully when On both of these OSes, I have some form of RAM compression enabled. I think that's the default for MacOS, but on Ubuntu I've enabled zram. I don't know if that's relevant to any of your hypotheses. |
Fascinating. I guess that's a fourth theory: compression might distort the RAM availability statistics. |
Still thinking about what to do... Some options:
|
Version information
Fil: 2021.12.2
Python: 3.7.12 (default, Dec 20 2021, 11:33:29)
[Clang 13.0.0 (clang-1300.0.29.3)]
Additional context that could be valuable is that this is on MacOS Monterey on an M1 Max - but I'm specifically running this as an x64 process, not ARM.
The machine has 64 GB of RAM.
This is what is getting output:
I can reproduce this consistently.
However, the process runs to completion if not run inside
filprofile
, and in fact seems to work with--disable-oom-detection
just fine as well (the runs take hours, so all I can be certain of so far is that using the flag prevents the process from getting killed early on. I'll update/close this later if I get an actual OOM, but this exact same run has completed successfully before, and I've already hit ~5x the RAM that was in use whenfilprofile
killed it, so I sort of doubt it will).It's nice that the flag exists, but the behavior feels like a bug to me. My machine is handling the RAM usage just fine when I run the process, so somehow it seems like
filprofile
's calibration for OOM is way off.The text was updated successfully, but these errors were encountered: