MASCARET - simultaneous independent simulations run with mascaret.py are calculated on the same processor

Summary

Multiple independent simulations run with the mascaret.py script are computed using the same single core with a significant drop in performance.

This does not occur when using directly the binary file /TELEMAC_DIR/builds/CFG_NAME/bin/mascaret

Environment

  • Operating System: Observed on Linux but should occur on Windows/MacOS
  • TELEMAC version: V8P5R0

Steps to reproduce

Run a simulation:

mascaret.py my_case.xcas

Run a second simulation:

mascaret.py my_case2.xcas

Run the top command to observe CPU load :

PID   UTIL.     PR  NI    VIRT    RES    SHR S  %CPU  %MEM    TEMPS+ COM.                                                               
30534 phorgue   20   0   63936  55308   5376 R  50,2   0,2   0:08.29 mascaret
30566 phorgue   20   0   63936  55176   5248 R  49,8   0,2   0:02.02 mascaret

Each process uses only 50 %CPU. If the first run is stopped, the top command returns:

PID   UTIL.     PR  NI    VIRT    RES    SHR S  %CPU  %MEM    TEMPS+ COM.
30566 phorgue   20   0   63936  55176   5248 R  99,7   0,2   0:39.63 mascaret

with 100 %CPU for the mascaret simulation.