Hi Shervin,
As you are running full-system simulation, the easiest way to measure run-time
is probably to use the same approaches you would on a real machine. There is no
“correct” way as such.
Concerning your observations regarding the frequency impact, if you change the
frequency without the operating system’s knowledge (I suspect this is what you
are doing), it still thinks all the cores are running at the same speed, and
will be doing load balancing/scheduling accordingly. We have a set of patches
ready to expose the DVFS control to the OS (for ARM at this point), and I
suspect this is one of the most important pieces in the puzzle.
In addition to the aforementioned issue, remember that the OS scheduler is not
necessarily going to take the most optimal decisions. Depending on how the DVFS
points are chosen (by cpufreq) the actual scheduling of threads to the cores
may be more or less optimal, and it could be that running some cores with a
higher frequency may not improve your run-time.
Andreas
From: shervin hajiamini
<[email protected]<mailto:[email protected]>>
Reply-To: shervin hajiamini
<[email protected]<mailto:[email protected]>>, gem5 users mailing
list <[email protected]<mailto:[email protected]>>
Date: Thursday, 1 May 2014 17:41
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: [gem5-users] Incorrect simulation time with dynamic frequency
Hi all,
I run my simulations in the full system mode with detailed CPU (64 detailed
CPUs) and I do change the frequency of the CPUs dynamically during the
simulation. I want to calculate the time penalty of the execution time of the
ROI with dynamic frequency compared to the execution time of the ROI when all
the CPUs have the highest frequency (2.5GHz) during the entire execution. I
measure the execution time via two checkpoints which are dumped before and
after the ROI section.
As the basic science when the frequency of a CPU decreases, it takes a longer
time for that CPU to complete the same task. However for some of my simulations
with dynamic frequency I see that their execution times are LESS than the
execution time of the simulation with the highest frequency!
I have not been able to find a reason or explanation for the lower execution
time with dynamic frequency. I appreciate if anybody gives me an idea about
this problem. Does anybody know the correct way of measuring the total
execution time of running a benchmark on Gem5? In the mailing list I found that
sim_ticks/sim_seconds (shown in stats.txt) is not a reliable way of measuring
the simulation time. I also don't know if using the checkpoints gives the
correct simulation time.
Thanks,
Shervin
-- IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended recipient,
please notify the sender immediately and do not disclose the contents to any
other person, use it for any purpose, or store or copy the information in any
medium. Thank you.
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users