+However, the execution times and the energy consumptions of EP and MG benchmarks, which have no or small communications, are not significantly affected
+ in both scenarios. Even when the number of nodes is doubled. On the other hand, the communications of the rest of the benchmarks increases when using long distance communications between two sites or increasing the number of computing nodes.
+
+\begin{figure}
+ \centering
+ \includegraphics[scale=0.5]{fig/eng_s.eps}
+ \caption{The energy reduction while executing the NAS benchmarks over different scenarios }
+ \label{fig:eng_s}
+\end{figure}
+
+
+\begin{figure}
+ \centering
+ \includegraphics[scale=0.5]{fig/per_d.eps}
+ \caption{The performance degradation of the NAS benchmarks over different scenarios }
+ \label{fig:per_d}
+\end{figure}
+
+
+\begin{figure}
+ \centering
+ \includegraphics[scale=0.5]{fig/dist.eps}
+ \caption{The tradeoff distance between the energy reduction and the performance of the NAS benchmarks over different scenarios }
+ \label{fig:dist}
+\end{figure}
+
+The energy saving percentage is computed as the ratio between the reduced
+energy consumption, equation (\ref{eq:energy}), and the original energy consumption,
+equation (\ref{eq:eorginal}), for all benchmarks as in figure \ref{fig:eng_s}.
+This figure shows that the energy saving percentages of one site scenario for
+16 and 32 nodes are bigger than those of the two sites scenario which is due
+to the higher computations to communications ratio in the first scenario
+than in the second one. Moreover, the frequency selecting algorithm selects smaller frequencies when the computations times are bigger than the communication times which
+results in a lower energy consumption. Indeed, the dynamic consumed power
+is exponentially related to the CPU's frequency value. On the other side, the increase in the number of computing nodes can
+increase the communication times and thus produces less energy saving depending on the
+benchmarks being executed. The results of the benchmarks CG, MG, BT and FT show more
+energy saving percentage in one site scenario when executed over 16 nodes comparing to 32 nodes. While, LU and SP consume more energy with 16 nodes than 32 in one site because their computations to communications ratio is not affected by the increase of the number of local communications.
+
+
+The energy saving percentage is reduced for all the benchmarks because of the long distance communications in the two sites
+scenario, except for the EP benchmark which has no communications. Therefore, the energy saving percentage of this benchmark is
+dependent on the maximum difference between the computing powers of the heterogeneous computing nodes, for example
+in the one site scenario, the graphite cluster is selected but in the two sits scenario
+this cluster is replaced with Taurus cluster which is more powerful.
+Therefore, the energy saving of EP benchmarks are bigger in the two sites scenario due
+to the higher maximum difference between the computing powers of the nodes.
+
+In fact, high differences between the nodes' computing powers make the proposed frequencies selecting
+algorithm select smaller frequencies for the powerful nodes which
+produces less energy consumption and thus more energy saving.
+The best energy saving percentage was obtained in the one site scenario with 16 nodes, the energy consumption was on average reduced up to 30\%.
+
+
+Figure \ref{fig:per_d} presents the performance degradation percentages for all benchmarks over the two scenarios.
+The performance degradation percentage for the benchmarks running on two sites with
+16 or 32 nodes is on average equal to 8\% or 4\% respectively.
+For this scenario, the proposed scaling algorithm selects smaller frequencies for the executions with 32 nodes without significantly degrading their performance because the communication times are higher with 32 nodes which results in smaller computations to communications ratio. On the other hand, the performance degradation percentage for the benchmarks running on one site with
+16 or 32 nodes is on average equal to 3\% or 10\% respectively. In opposition to the two sites scenario, when the number of computing nodes is increased in the one site scenario, the performance degradation percentage is increased. Therefore, doubling the number of computing
+nodes when the communications occur in high speed network does not decrease the computations to
+communication ratio.
+
+The performance degradation percentage of the EP benchmark after applying the scaling factors selection algorithm is the highest in comparison to
+the other benchmarks. Indeed, in the EP benchmark, there are no communication and slack times and its
+performance degradation percentage only depends on the frequencies values selected by the algorithm for the computing nodes.
+The rest of the benchmarks showed different performance degradation percentages, which decrease
+when the communication times increase and vice versa.
+
+Figure \ref{fig:dist} presents the distance percentage between the energy saving and the performance degradation for each benchmark over both scenarios. The tradeoff distance percentage can be
+computed as in equation \ref{eq:max}. The one site scenario with 16 nodes gives the best energy and performance
+tradeoff, on average it is equal to 26\%. The one site scenario using both 16 and 32 nodes had better energy and performance
+tradeoff comparing to the two sites scenario because the former has high speed local communications
+which increase the computations to communications ratio and the latter uses long distance communications which decrease this ratio.
+
+
+ Finally, the best energy and performance tradeoff depends on all of the following:
+1) the computations to communications ratio when there are communications and slack times, 2) the heterogeneity of the computing powers of the nodes and 3) the heterogeneity of the consumed static and dynamic powers of the nodes.
+
+
+
+
+%\subsection{The experimental results of multi-cores clusters}
+%\label{sec.res-mc}
+%The clusters of grid'5000 have different number of cores embedded in their nodes
+%as shown in Table \ref{table:grid5000}. In
+%this section, the proposed scaling algorithm is evaluated over the grid'5000 grid while using multi-core nodes
+%selected according to the two platform scenarios described in the section \ref{sec.res}.
+%The two platform scenarios, the two sites and one site scenarios, use 32
+%cores from multi-cores nodes instead of 32 distinct nodes. For example if
+%the participating number of cores from a certain cluster is equal to 12,
+%in the multi-core scenario the selected nodes is equal to 3 nodes while using
+%4 cores from each node. The platforms with one
+%core per node and multi-cores nodes are shown in Table \ref{table:sen-mc}.
+%The energy consumptions and execution times of running the NAS parallel
+%benchmarks, class D, over these four different scenarios are presented
+%in the figures \ref{fig:eng-cons-mc} and \ref{fig:time-mc} respectively.
+%
+%The execution times for most of the NAS benchmarks are higher over the one site multi-cores per node scenario
+% than the execution time of those running over one site single core per node scenario. Indeed,
+% the communication times are higher in the one site multi-cores scenario than in the latter scenario because all the cores of a node share the same node network link which can be saturated when running communication bound applications and. Moreover, the cores of a node share the memory bus which can be also saturated and become a bottleneck.
+%
+%
+%The experiments showed that for most of the NAS benchmarks and between the four scenarios,
+%the one site one core scenario gives the best execution times because the communication times are the lowest.
+%Indeed, in this scenario each core has a dedicated network link and memory bus and all the communications are local.
+%Moreover, the energy consumptions of the NAS benchmarks are lower over the
+%one site one core scenario than over the one site multi-cores scenario because
+%the first scenario had less execution time than the latter which results in less static energy being consumed.
+%
+%The computations to communications ratios of the NAS benchmarks are higher over
+%the one site one core scenario when compared to the ratios of the other scenarios.
+%More energy reduction was achieved when this ratio is increased because the proposed scaling algorithm selects smaller frequencies that decrease the dynamic power consumption.
+%
+% \textcolor{blue}{ Whereas, the energy consumption in the two sites one core scenario is higher than the energy consumption of the two sites multi-core scenario. This is according to the increase in the execution time of the two sites one core scenario. }
+%
+%
+%These experiments also showed that the energy
+%consumption and the execution times of the EP and MG benchmarks do not change significantly over these four
+%scenarios because there are no or small communications,
+%which could increase or decrease the static power consumptions. Contrary to EP and MG, the energy consumptions
+%and the execution times of the rest of the benchmarks vary according to the communication times that are different from one scenario to the other.
+%
+%
+%The energy saving percentages of all NAS benchmarks running over these four scenarios are presented in the figure \ref{fig:eng-s-mc}. It shows that the energy saving percentages over the two sites multi-cores scenario
+%and over the two sites one core scenario are on average equal to 22\% and 18\%
+%respectively. The energy saving percentages are higher in the former scenario because its computations to communications ratio is higher than the ratio of the latter scenario as mentioned previously.
+%
+%In contrast, in the one site one
+%core and one site multi-cores scenarios the energy saving percentages
+%are approximately equivalent, on average they are up to 25\%. In both scenarios there
+%are a small difference in the computations to communications ratios, which leads
+%the proposed scaling algorithm to select similar frequencies for both scenarios.
+%
+%The performance degradation percentages of the NAS benchmarks are presented in
+%figure \ref{fig:per-d-mc}. It shows that the performance degradation percentages for the NAS benchmarks are higher over the two sites
+%multi-cores scenario than over the two sites one core scenario, equal on average to 7\% and 4\% respectively.
+%Moreover, using the two sites multi-cores scenario increased
+%the computations to communications ratio, which may increase
+%the overall execution time when the proposed scaling algorithm is applied and the frequencies scaled down.
+%
+%
+%When the benchmarks are executed over the one
+%site one core scenario, their performance degradation percentages are equal on average
+%to 10\% and are higher than those executed over the one site multi-cores scenario,
+%which on average is equal to 7\%.
+%
+%\textcolor{blue}{
+%The performance degradation percentages over one site multi-cores is lower because the computations to communications ratio is decreased. Therefore, selecting bigger
+%frequencies by the scaling algorithm are proportional to this ratio, and thus the execution time do not increase significantly.}
+%
+%
+%The tradeoff distance percentages of the NAS
+%benchmarks over all scenarios are presented in the figure \ref{fig:dist-mc}.
+%These tradeoff distance percentages are used to verify which scenario is the best in terms of energy reduction and performance. The figure shows that using muti-cores in both of the one site and two sites scenarios gives bigger tradeoff distance percentages, on overage equal to 17.6\% and 15.3\% respectively, than using one core per node in both of one site and two sites scenarios, on average equal to 14.7\% and 13.3\% respectively.
+%
+%\begin{table}[]
+%\centering
+%\caption{The multicores scenarios}
+%
+%\begin{tabular}{|*{4}{c|}}
+%\hline
+%Scenario name & Cluster name & \begin{tabular}[c]{@{}c@{}}No. of nodes\\ in each cluster\end{tabular} &
+% \begin{tabular}[c]{@{}c@{}}No. of cores\\ for each node\end{tabular} \\ \hline
+%\multirow{3}{*}{Two sites/ one core} & Taurus & 10 & 1 \\ \cline{2-4}
+% & Graphene & 10 & 1 \\ \cline{2-4}
+% & Griffon & 12 & 1 \\ \hline
+%\multirow{3}{*}{Two sites/ multicores} & Taurus & 3 & 3 or 4 \\ \cline{2-4}
+% & Graphene & 3 & 3 or 4 \\ \cline{2-4}
+% & Griffon & 3 & 4 \\ \hline
+%\multirow{3}{*}{One site/ one core} & Graphite & 4 & 1 \\ \cline{2-4}
+% & Graphene & 12 & 1 \\ \cline{2-4}
+% & Griffon & 12 & 1 \\ \hline
+%\multirow{3}{*}{One site/ multicores} & Graphite & 3 & 3 or 4 \\ \cline{2-4}
+% & Graphene & 3 & 3 or 4 \\ \cline{2-4}
+% & Griffon & 3 & 4 \\ \hline
+%\end{tabular}
+%\label{table:sen-mc}
+%\end{table}
+%
+%\begin{figure}
+% \centering
+% \includegraphics[scale=0.5]{fig/eng_con.eps}
+% \caption{Comparing the energy consumptions of running NAS benchmarks over one core and multicores scenarios }
+% \label{fig:eng-cons-mc}
+%\end{figure}
+%
+%
+% \begin{figure}
+% \centering
+% \includegraphics[scale=0.5]{fig/time.eps}
+% \caption{Comparing the execution times of running NAS benchmarks over one core and multicores scenarios }
+% \label{fig:time-mc}
+%\end{figure}
+%
+% \begin{figure}
+% \centering
+% \includegraphics[scale=0.5]{fig/eng_s_mc.eps}
+% \caption{The energy saving of running NAS benchmarks over one core and multicores scenarios }
+% \label{fig:eng-s-mc}
+%\end{figure}
+%
+%\begin{figure}
+% \centering
+% \includegraphics[scale=0.5]{fig/per_d_mc.eps}
+% \caption{The performance degradation of running NAS benchmarks over one core and multicores scenarios }
+% \label{fig:per-d-mc}
+%\end{figure}
+%
+%\begin{figure}
+% \centering
+% \includegraphics[scale=0.5]{fig/dist_mc.eps}
+% \caption{The tradeoff distance of running NAS benchmarks over one core and multicores scenarios }
+% \label{fig:dist-mc}
+%\end{figure}
+
+\subsection{Experiments with different static and dynamic powers consumption scenarios}
+\label{sec.pow_sen}
+
+In section \ref{sec.grid5000}, since it was not possible to measure the static power consumed by a CPU, the static power was assumed to be equal to 20\% of the measured dynamic power. This power is consumed during the whole execution time, during computation and communication times. Therefore, when the DVFS operations are applied by the scaling algorithm and the CPUs' frequencies lowered, the execution time might increase and consequently the consumed static energy will be increased too.
+
+The aim of this section is to evaluate the scaling algorithm while assuming different values of static powers.
+In addition to the previously used percentage of static power, two new static power ratios, 10\% and 30\% of the measured dynamic power of the core, are used in this section.
+The experiments have been executed with these two new static power scenarios over the one site one core per node scenario.
+In these experiments, the class D of the NAS parallel benchmarks are executed over Nancy's site. 16 computing nodes from the three clusters, Graphite, Graphene and Griffon, where used in this experiment.
+
+ \begin{figure}
+ \centering
+ \includegraphics[scale=0.5]{fig/eng_pow.eps}
+ \caption{The energy saving percentages for the nodes executing the NAS benchmarks over the three power scenarios}
+ \label{fig:eng-pow}
+\end{figure}
+
+\begin{figure}
+ \centering
+ \includegraphics[scale=0.5]{fig/per_pow.eps}
+ \caption{The performance degradation percentages for the NAS benchmarks over the three power scenarios}
+ \label{fig:per-pow}
+\end{figure}
+
+
+\begin{figure}
+ \centering
+ \includegraphics[scale=0.5]{fig/dist_pow.eps}
+ \caption{The tradeoff distance between the energy reduction and the performance of the NAS benchmarks over the three power scenarios}
+ \label{fig:dist-pow}
+\end{figure}
+
+\begin{figure}
+ \centering
+ \includegraphics[scale=0.47]{fig/three_scenarios.pdf}
+ \caption{Comparing the selected frequency scaling factors for the MG benchmark over the three static power scenarios}
+ \label{fig:fre-pow}
+\end{figure}
+
+The energy saving percentages of the NAS benchmarks with the three static power scenarios are presented
+in figure \ref{fig:eng_sen}. This figure shows that the 10\% of static power scenario
+gives the biggest energy saving percentages in comparison to the 20\% and 30\% static power
+scenarios. The small value of the static power consumption makes the proposed
+scaling algorithm select smaller frequencies for the CPUs.
+These smaller frequencies reduce the dynamic energy consumption more than increasing the consumed static energy which gives less overall energy consumption.
+The energy saving percentages of the 30\% static power scenario is the smallest between the other scenarios, because the scaling algorithm selects bigger frequencies for the CPUs which increases the energy consumption. Figure \ref{fig:fre-pow} demonstrates that the proposed scaling algorithm selects the best frequency scaling factors according to the static power consumption ratio being used.
+
+The performance degradation percentages are presented in the figure \ref{fig:per-pow}.
+The 30\% static power scenario had less performance degradation percentage because the scaling algorithm
+had selected big frequencies for the CPUs. While,
+the inverse happens in the 10\% and 20\% scenarios because the scaling algorithm had selected CPUs' frequencies smaller than those of the 30\% scenario. The tradeoff distance percentage for the NAS benchmarks with these three static power scenarios
+are presented in the figure \ref{fig:dist}.
+It shows that the best tradeoff
+distance percentage is obtained with the 10\% static power scenario and this percentage
+is decreased for the other two scenarios because the scaling algorithm had selected different frequencies according to the static power values.
+
+In the EP benchmark, the energy saving, performance degradation and tradeoff
+distance percentages for the these static power scenarios are not significantly different because there is no communication in this benchmark. Therefore, the static power is only consumed during computation and the proposed scaling algorithm selects similar frequencies for the three scenarios. On the other hand, for the rest of the benchmarks, the scaling algorithm selects the values of the frequencies according to the communication times of each benchmark because the static energy consumption increases proportionally to the communication times.
+
+
+
+\subsection{The comparison of the proposed frequencies selecting algorithm }