MAPDL launching time analysis #2314
Replies: 1 comment 1 reply
-
Hi @germa89, We can understand why launching MAPDL with minimal amount of resources can speed-up the starting step. And perhaps we could expose some few configurations, wrt what the user intend to do. Using SMP is ok to solve small size problems, or just to do some R&D. Default configuration in Mechanical is to start MAPDL in DMP with 4 cores. We could have some predefined configs depending what the user needs, Is it what you have in mind ? |
Beta Was this translation helpful? Give feedback.
-
Summary
Analyse the time spent by MAPDL to launch in different configurations.
Goal
For the CICD purposes (mainly pool testing) I would like to reduce the time to launch MAPDL to the minimum. For that reason, I am investigating different configurations for this.
Setup
Configurations
We are checking the impact of
SMP/DMP
, number of processor and amount of RAM in the launching time of MAPDL.-m
specifies the amount of memory which MAPDL will start with. In MB by default-np
specify the amount of processors.-smp
is the flag that activates the Shared Memory Processing-dmp
is the flag tat activated Distributed Memory Processing. Uses MPI, it is more time consuming.Results
Using
smp -np 1 -m 100
can reduce the launching time 50% which is good enough.Detailed console tests
Console output without grpc exiting cleanly (using /EXIT)
Console output with grpc
The logic to time this is a bit more complex:
I had to pipe Ansys output to
/dev/tty
so I can read it after withgrep -q
(-q
to exiting the process when a match is found), then after I found out a match, I kill the process.Beta Was this translation helpful? Give feedback.
All reactions