![]() |
TRACE User Guide
TRACE Version 9.8.1
|
The load balancing statistics printed at the start of a run are computed using the number of (weighted) cells per process (see also the section Mesh Partitioning and Load Balancing in the PREP user guide). With this option the post mortem load balancing statistics are printed.
When this command line option is active MPI time gets measured. This allows the definition of the useful computation time on a single process as
\begin{equation} t_{comp, i} = t_{wall} - t_{MPI, i}, \quad i=1,\dots,N \end{equation}
and \(t_{comp, max}\) as the maximum of these. Here, \(t_{wall}\) is the wall clock time of the iteration loop, \(t_{MPI, i}\) the MPI time during the iteration loop and \(N\) the number of mpi ranks.
The post mortem load balance \(LB_i\) for every mpi rank is given by the fraction of local computation time and maximum computation time
\begin{equation} LB_i = \frac{t_{comp, i}}{t_{comp, max}}, \end{equation}
and for the total value as the average
\begin{equation} LB = \frac{\sum_i^N t_{comp, i}}{N \cdot t_{comp, max}}. \end{equation}
The load balance shows how well the computational load is distributed over the processes. In many cases, e.g. expensive boundary conditions and zonal interfaces, it can be improved drastically by weighting the corresponding blocks higher. It is not always possible to achieve a good load balance on all processes. In these cases a small load balance on a few number of processes, but a high number on the majority is highly preferable to a very high balance on some processes and a medium balance on the majority. One should always try to optimize the total (average) balance.
The output also includes the communication efficiency, defined as the fraction of maximum computation time and total runtime
\begin{equation} CE = \frac{ t_{comp, max}}{t_{wall}}. \end{equation}
The communication efficiency can be broken down further into the serialization efficiency and the transfer efficiency using external tools. A low value can therefore be caused by serializations and long transfer times of messages. It can be an indicator for the developer if the implementation of the communication patterns have issues.
Last there is the parallel efficiency, defined as the product of load balance and communication efficiency
\begin{equation} PE = LB \cdot CE. \end{equation}