Re: [Gems-users] regd ruby results and magic instruction


Date: Wed, 06 Sep 2006 14:45:14 -0500
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] regd ruby results and magic instruction
Dave Z. wrote:
--- Dan Gibson <degibson@xxxxxxxx> wrote:

Dave Z. wrote:
Hello All,

I have a few questions regarding Ruby results and
magic instruction. In my configuration, there are
two
processors. For example, total_misses is shown as
follows: total_misses: 39269 [39269 0]. Does each
number in brackets refer to a processor?
Yes, each bracket refers to a processor. In your
example above, processor 0 had 39,269 L2 misses, processor 1 had
zero.
If so, does
it mean the benchmark ran only on one of the
processors?
Not necessarily -- it means that Ruby didn't find
any misses from that processor...which probably means that Ruby isn't fully installed. Are you using the "sarek" target?

Yes, I'm using the sarek target w/ solaris 10.

Good.
Using non-sarek
targets or even sarek targets with some configuration options set can result in more than on physical memory object (often one per processor). Ruby installs itself of "phys_mem0", which can manifest as only showing accesses from cpu0. Find out if a "phys_mem0" object exists in your simulation, and also a "phys_mem1", "phys_mem2", etc.

There exists only phys_mem0 object. What do I need to
do to have phys_mem1? Perhaps private L1 cache and
shared L2 cache? I would like to see memory accesses
from each processor.
You DON'T want separate phys_mems...it just complicates things.
Otherwise, have you set the cpu-switch-time in
Simics to 1?

No, I haven't. The current CPU switch time is 1000000
cycles.

THAT is the problem then. Simics is running for very few instructions and isn't even running processor 1 at all during your benchmark. Use cpu-switch-time 1 (and simulate for at least 1000000 cycles to allow the switch to occur) and your problem will go away.
You might have a very large cpu-switch-time and/or cpu1 might
be in a disabled state.

How do I enable cpu1? Isn't it done automatically when
I set g_NUM_PROCESSORS to 2?
IF cpu1 was disabled for some reason, you could enable it with:
cpu1.enable-processor. However, your problem is the cpu-switch-time (see above)
Thank you for your help.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.


--
http://www.cs.wisc.edu/~gibson [esc]:wq!

[← Prev in Thread] Current Thread [Next in Thread→]