\newcommand{\tableIII}[2]{
	\begin{subfigure}{0.49\textwidth}
	\vspace{0.5cm}
	\begin{minipage}[c]{\textwidth}%
	\resizebox{\textwidth}{!}{
	\begin{tabular}{lrrrrr}
	\toprule
	\tableIIIh
	\midrule
	#2
	\bottomrule
	\end{tabular}}
	\end{minipage}
	\hfill
	\caption{Cluster #1}
	\end{subfigure}}

\newcommand{\tableIIIh}{%
\multirow{2}{*}{\parbox{1.5cm}{\centering{Task \\ termination}}}
& \multicolumn{5}{c}{Mean number of events} \\
& Overall ($95^{th}$ p.) &
EVICT & FAIL & FINISH & KILL \\}

\begin{figure}[p]
\begin{subfigure}{\textwidth}
	\centering
\begin{tabular}{lrrrrr}
\toprule
\tableIIIh
\midrule
 EVICT & 2.372 (5) & 2.094 & 0.259 & 0.004 & 0.015 \\
 FAIL & 3.130 (8) & 0.350 & 2.700 & 0.020 & 0.060 \\
 FINISH & 2.516 (4) & 0.302 & 1.175 & 1.023 & 0.016 \\
 KILL & 1.094 (1) & 0.061 & 0.008 & 0.011 & 1.014 \\
\bottomrule
\end{tabular}
	\caption{2011 data}
	\vspace{0.5cm}
\end{subfigure}
\begin{subfigure}{\textwidth}
	\centering
\begin{tabular}{lrrrrr}
\toprule
\tableIIIh
\midrule
 EVICT & 78.710 (342) & 52.242 &  0.673 & 0.000 & 25.795 \\
  FAIL &  24.962 (26) &  0.290 & 23.635 & 0.348 &  0.691 \\
FINISH &    2.962 (2) &  0.022 &  0.012 & 2.915 &  0.013 \\
  KILL &   8.763 (16) &  1.876 &  0.143 & 0.003 &  6.741 \\
	\bottomrule
\end{tabular}
	\caption{2019 data}
\end{subfigure}
	\caption{Mean number of termination events and their distributions per
	task type between 2011 and 2019 (all clusters aggregated) traces. The
	tables show an
	overall mean accompanied by the 95-th percentile of all termination
	events, followed by the mean of events per event type of each
	termination event.}
\end{figure}

\begin{figure}[p]
\tableIII{A}{%
 EVICT & 103.228 (719) & 73.694 &  0.769 & 0.000 & 28.766 \\
  FAIL &   11.819 (26) &  0.288 & 11.062 & 0.002 &  0.468 \\
FINISH &     2.185 (1) &  0.019 &  0.004 & 2.153 &  0.008 \\
  KILL &    5.963 (11) &  2.350 &  0.214 & 0.003 &  3.396 \\
}
\tableIII{B}{%
 EVICT & 83.018 (394) & 64.817 &  0.240 & 0.000 & 17.962 \\
  FAIL &  20.851 (62) &  0.518 & 19.657 & 0.001 &  0.675 \\
FINISH &    2.995 (4) &  0.020 &  0.021 & 2.943 &  0.012 \\
  KILL &   9.173 (12) &  3.351 &  0.276 & 0.004 &  5.541 \\
}
\tableIII{C}{%
 EVICT & 98.437 (444) & 73.716 &  1.813 & 0.000 & 22.908 \\
  FAIL &  52.010 (30) &  0.773 & 48.446 & 2.035 &  0.756 \\
FINISH &    2.507 (2) &  0.018 &  0.013 & 2.471 &  0.006 \\
  KILL &    5.452 (6) &  1.533 &  0.116 & 0.004 &  3.799 \\
}
\tableIII{D}{%
 EVICT & 76.759 (366) & 62.001 &  0.700 & 0.000 & 14.058 \\
  FAIL &  62.314 (62) &  0.496 & 58.968 & 0.810 &  2.040 \\
FINISH &    3.877 (2) &  0.059 &  0.019 & 3.789 &  0.010 \\
  KILL &    6.795 (6) &  1.960 &  0.151 & 0.002 &  4.682 \\
}
\tableIII{E}{%
 EVICT &  17.678 (72) & 11.781 &   0.106 & 0.000 &  5.791 \\
  FAIL & 112.384 (28) &  0.458 & 111.471 & 0.000 &  0.456 \\
FINISH &    2.029 (2) &  0.014 &   0.008 & 1.999 &  0.008 \\
  KILL &  13.505 (64) &  1.288 &   0.057 & 0.000 & 12.160 \\
}
\tableIII{F}{%
 EVICT & 70.146 (114) & 23.974 &  0.192 & 0.000 & 45.980 \\
  FAIL &  41.087 (54) &  0.279 & 39.257 & 0.000 &  1.550 \\
FINISH &    3.129 (4) &  0.019 &  0.004 & 3.008 &  0.098 \\
  KILL &  10.288 (38) &  0.384 &  0.098 & 0.001 &  9.804 \\
}
\tableIII{G}{%
 EVICT & 136.032 (490) & 77.429 & 0.303 &  0.000 & 58.299 \\
  FAIL &     8.948 (8) &  0.016 & 8.593 &  0.000 &  0.339 \\
FINISH &    14.176 (2) &  0.015 & 0.002 & 14.154 &  0.005 \\
  KILL &  32.320 (164) &  6.909 & 0.135 &  0.000 & 25.276 \\
}
\tableIII{H}{%
 EVICT &  14.734 (40) & 6.733 &  0.837 & 0.000 &  7.165 \\
  FAIL & 41.067 (120) & 0.600 & 37.600 & 0.000 &  2.867 \\
FINISH &    3.681 (2) & 0.024 &  0.014 & 3.633 &  0.011 \\
  KILL &  17.976 (98) & 0.633 &  0.170 & 0.000 & 17.173 \\
}
\caption{Mean number of termination events and their distributions per
task type for each cluster in the 2019 traces. The tables show an
overall mean accompanied by the 95-th percentile of all termination
events, followed by the mean of events per event type of each
termination event.}\label{fig:tableIII-csts}
\end{figure}

