Skip to content

Commit 33c3c7e

Browse files
authored
M #-: Add high CPU utilization fix due to prediction to known issues (#472)
Signed-off-by: Mirko Stojiljkovic <[email protected]>
1 parent 681f613 commit 33c3c7e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

content/software/release_information/release_notes_70/known_issues.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,20 @@ RAW=[
104104
DATA="lxc.apparmor.profile=unconfined",
105105
TYPE="lxc" ]
106106
```
107+
108+
## High CPU utilization due to predictions
109+
110+
With some configurations, the usage of CPU on the hosts can be very high, due to running predictions. In such case, the number of threads used by BLAS (Basic Linear Algebra Subprograms) can be limited to 1 (or other suitable number) with the environment variables:
111+
112+
```shell
113+
export OMP_NUM_THREADS=${OMP_NUM_THREADS:-1}
114+
export OPENBLAS_NUM_THREADS=${OPENBLAS_NUM_THREADS:-1}
115+
export MKL_NUM_THREADS=${MKL_NUM_THREADS:-1}
116+
export BLIS_NUM_THREADS=${BLIS_NUM_THREADS:-1}
117+
export NUMEXPR_NUM_THREADS=${NUMEXPR_NUM_THREADS:-1}
118+
```
119+
120+
A more comprehensive way is to replace the following old files with the appropriate files from `one` repository:
121+
* [prediction script](https://github.com/OpenNebula/one/blob/master/src/im_mad/remotes/lib/python/prediction.sh)
122+
* [prediction script from node probes](https://github.com/OpenNebula/one/blob/master/src/im_mad/remotes/node-probes.d/prediction.sh)
123+
* [prediction model](https://github.com/OpenNebula/one/blob/master/src/im_mad/remotes/lib/python/pyoneai/ml/sklearn_prediction_model.py)

0 commit comments

Comments
 (0)