limit number of threads used by Paraview

Hi,

I am currently trying out Paraview 5.6.0 (with OpenGL and OSPRay 1.7.3 support) on a machine sharing ressources with multiple users - client/server on the same machine.
I could limit the number of thread used by OSPRay rendering using OSPRAY_THREADS environment variable however I do not know if it is possible to do the same with Paraview itself (or VTK) - to get more control over resource usage.

Thanks.
Eric

1 Like

Hey Eric, my company had this same problem. Use both KNOB_MAX_WORKER_THREADS and OSPRAY_THREADS as environmental variables to cap CPU threads and memory usage. We have noticed that it will actually speed up your simulations as well since there won’t be an i/o hit from constantly changing number of threads.

#!/bin/bash
NP=$1
export KNOB_MAX_WORKER_THREADS=$NP
export OSPRAY_THREADS=$NP
echo $KNOB_MAX_WORKER_THREADS

1 Like