Re: [Gems-users] cache statistics with timing info.


Date: Sat, 5 Mar 2005 18:23:51 -0500
From: Nauman Rafique <nrafique@xxxxxxxxxx>
Subject: Re: [Gems-users] cache statistics with timing info.
You have to look into SLICC specification of cache coherence protocols. The
SLICC specification is translated automatically to C++ code. So all the code for
caches is automatically generated. 
To find the specification for different protocols, look into the protocols
directory in gems folder.

Here is an example of profiling in SLICC
-------------------------------------------------------------------------------
  action(uu_profileMiss, "\u", desc="Profile the demand miss") {
    peek(L1requestNetwork_in, RequestMsg) {
      // AccessModeType not implemented
      profile_L2Cache_miss(convertToGenericType(in_msg.Type), in_msg.AccessMode,
MessageSizeTypeToInt(in_msg.MessageSize),  in_msg.Prefetch,
machineIDToNodeID(in_msg.Requestor));
    }
  }
-------------------------------------------------------------------------------

The function profile_L2Cache_miss is declared in RubySlicc_Profiler.sm,
GEMS/ruby/slicc_interface/RubySlicc_Profiler_interface.h and 
GEMS/ruby/slicc_interface/RubySlicc_Profiler_interface.C.
It is implemented in files in GEMS/ruby/profiler.
So make your own function on the same pattern.
p.s.
Just trying to point you in the right direction. I am a newbie too so dont trust
me too much :)

Thanks.
-- 
Nauman


Quoting yilmazer@xxxxxxxxxxx:

> Hi,
> I have just started to use gems. I want to collect some statistics from ruby
> cache module. What I want to do is to track transitions of shared
> cache-lines
> with timing information. 
>    t1: Modified
>    ..
>    tn: Modified/Shared
>    tm: Invalid
>    what is t1 time, tn and tm?
> I looked over the source code but I couldn't figure out where to start. If
> you
> can help me, I will very appreciate it.
> Thanks,
> Ayse Yilmazer.
>    
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> 

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