Discussion:
Simulation time profiling for Gem5 with Garnet2.0
(too old to reply)
Sumit Mandal
2018-11-28 16:21:55 UTC
Permalink
Hello everyone,

I want to profile simulation time for Gem5 running along with Garnet2.0.
Basically I want to know simulation time spent by host for Garnet related
function calls.

For an example, consider that the whole Gem5 simulation takes 10 hours in
host system. I want to find out how much of this time is spent by Garnet
related function calls. If Garnet takes 2 out of 10 hours, we can roughly
say that Garnet simulation takes 20% of total simulation time.

Has anybody done this type of analysis before? Or can anybody help on how
to proceed for this kind of analysis.

Thanks is advance.

With regards
Sumit Kumar Mandal
PhD Student
Electrical Engineering
Arizona State University
Tempe, AZ 85281
USA
Jason Lowe-Power
2018-11-28 16:41:50 UTC
Permalink
Hi Sumit,

You should be able to get this information using gprof. You can run gem5
with gprof by compiling the profiling version (gem5.prof). If you prefer to
use the google perf tools (
https://gperftools.github.io/gperftools/cpuprofile.html), then you can
compile gem5.perf and use those.

Cheers,
Jason
Post by Sumit Mandal
Hello everyone,
I want to profile simulation time for Gem5 running along with Garnet2.0.
Basically I want to know simulation time spent by host for Garnet related
function calls.
For an example, consider that the whole Gem5 simulation takes 10 hours in
host system. I want to find out how much of this time is spent by Garnet
related function calls. If Garnet takes 2 out of 10 hours, we can roughly
say that Garnet simulation takes 20% of total simulation time.
Has anybody done this type of analysis before? Or can anybody help on how
to proceed for this kind of analysis.
Thanks is advance.
With regards
Sumit Kumar Mandal
PhD Student
Electrical Engineering
Arizona State University
Tempe, AZ 85281
USA
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Sumit Mandal
2018-11-28 16:48:57 UTC
Permalink
Hi Jason,

Thanks for your suggestion. I will surely go ahead with this.

With regards
Sumit Kumar Mandal
PhD Student
Electrical Engineering
Arizona State University
Tempe, AZ 85281
USA
Post by Jason Lowe-Power
Hi Sumit,
You should be able to get this information using gprof. You can run gem5
with gprof by compiling the profiling version (gem5.prof). If you prefer to
use the google perf tools (
https://gperftools.github.io/gperftools/cpuprofile.html), then you can
compile gem5.perf and use those.
Cheers,
Jason
Post by Sumit Mandal
Hello everyone,
I want to profile simulation time for Gem5 running along with Garnet2.0.
Basically I want to know simulation time spent by host for Garnet related
function calls.
For an example, consider that the whole Gem5 simulation takes 10 hours in
host system. I want to find out how much of this time is spent by Garnet
related function calls. If Garnet takes 2 out of 10 hours, we can roughly
say that Garnet simulation takes 20% of total simulation time.
Has anybody done this type of analysis before? Or can anybody help on how
to proceed for this kind of analysis.
Thanks is advance.
With regards
Sumit Kumar Mandal
PhD Student
Electrical Engineering
Arizona State University
Tempe, AZ 85281
USA
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Krishna, Tushar
2018-11-28 16:52:40 UTC
Permalink
Hi Sumit,
Once you do this analysis, can you send it out.
I am very curious to see how long Garnet takes, and specifically which functions in Garnet take longer.

Cheers,
Tushar

On Nov 28, 2018, 11:49 AM -0500, Sumit Mandal <***@asu.edu>, wrote:
Hi Jason,

Thanks for your suggestion. I will surely go ahead with this.

With regards
Sumit Kumar Mandal
PhD Student
Electrical Engineering
Arizona State University
Tempe, AZ 85281
USA


On Wed, Nov 28, 2018 at 9:42 AM Jason Lowe-Power <***@lowepower.com<mailto:***@lowepower.com>> wrote:
Hi Sumit,

You should be able to get this information using gprof. You can run gem5 with gprof by compiling the profiling version (gem5.prof). If you prefer to use the google perf tools (https://gperftools.github.io/gperftools/cpuprofile.html), then you can compile gem5.perf and use those.

Cheers,
Jason

On Wed, Nov 28, 2018 at 8:22 AM Sumit Mandal <***@asu.edu<mailto:***@asu.edu>> wrote:
Hello everyone,

I want to profile simulation time for Gem5 running along with Garnet2.0. Basically I want to know simulation time spent by host for Garnet related function calls.

For an example, consider that the whole Gem5 simulation takes 10 hours in host system. I want to find out how much of this time is spent by Garnet related function calls. If Garnet takes 2 out of 10 hours, we can roughly say that Garnet simulation takes 20% of total simulation time.

Has anybody done this type of analysis before? Or can anybody help on how to proceed for this kind of analysis.

Thanks is advance.

With regards
Sumit Kumar Mandal
PhD Student
Electrical Engineering
Arizona State University
Tempe, AZ 85281
USA
_______________________________________________
gem5-users mailing list
gem5-***@gem5.org<mailto:gem5-***@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-***@gem5.org<mailto:gem5-***@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Loading...