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

[FIX] disable openblas threads #317

Open
wants to merge 1 commit into
base: release-4.5.X
Choose a base branch
from

Conversation

gurneyalex
Copy link
Member

When numpy is imported, it will load some dependencies, if they are available. One of these is openblas, which will start some threads, which we will not be using, but which are consuming precious memory resources. By setting the OPENBLAS_NUM_THREADS environment variable to 1, we disable the creation of these threads and therefore reduce the memory usage of the Odoo workers.

This fixes the memory consumption issue when ninja dashboard is installed.

When numpy is imported, it will load some dependencies, if they are
available. One of these is openblas, which will start some threads,
which we will not be using, but which are consuming precious memory
resources. By setting the OPENBLAS_NUM_THREADS environment variable to
1, we disable the creation of these threads and therefore reduce the
memory usage of the Odoo workers.

This fixes the memory consumption issue when ninja dashboard is
installed.
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

Successfully merging this pull request may close these issues.

1 participant