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

Explore using max_nbytes kwarg of joblib.Parallel #12

Open
craffel opened this issue Apr 26, 2016 · 0 comments
Open

Explore using max_nbytes kwarg of joblib.Parallel #12

craffel opened this issue Apr 26, 2016 · 0 comments

Comments

@craffel
Copy link
Owner

craffel commented Apr 26, 2016

By default, joblib.Parallel will memmap any numpy ndarray objects that are shared between tasks when they are bigger than 1e6 bytes, to avoid lots of memory allocation. In any experiment involving the big MSD PSE matrix (~1 GB = 1e9 bytes), this matrix will get memmapped, and I think this is preventing the script from running fully parallel. We have tons of memory, so it's totally safe for this object to be shared across tasks. Setting max_nbytes = 2e9 is probably safe and may avoid this locking issue.

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

1 participant