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

Basic example not working #519

Open
bakwc opened this issue Aug 9, 2023 · 2 comments
Open

Basic example not working #519

bakwc opened this issue Aug 9, 2023 · 2 comments

Comments

@bakwc
Copy link

bakwc commented Aug 9, 2023

Steps

Follow steps from tutorial: https://pythonspeed.com/fil/docs/trying.html

Expected result

Some results at command line, or non-empty fil-result folder

Actual result

No profiling output, empty fil-result folder, the only output is:

root@heavy:~# fil-profile run test_oom.py
=fil-profile= Memory usage will be written out at exit, and opened automatically in a browser.
=fil-profile= You can also run the following command while the program is still running to write out peak memory usage up to that point: kill -s SIGUSR2 475
Killed

System

Attempt 1: MacOS 12.4
Attempt 2: Debian 11
Installed with: python3 -m pip install filprofiler

@itamarst
Copy link
Collaborator

itamarst commented Aug 9, 2023

On macOS, it's disabled by default, you'll need to explicit enable OOM detection on the command line. So I should update docs if it doesn't say that.

On Linux... that's weird, sounds like a bug.

(Though the OOM detection is a heuristic, so it can fail sometimes. There might be better heuristics I can come up with though.)

@bakwc
Copy link
Author

bakwc commented Aug 9, 2023

On linux it was running inside docker container, may be that affected heuristic somehow. For mac - how can I enable it? In help the only option is --disable-oom-detection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants