[Gems-users] Excessive Cache Misses


Date: Wed, 2 May 2007 00:57:46 -0600 (MDT)
From: Robert William Havlik <Robert.Havlik@xxxxxxxxxxxx>
Subject: [Gems-users] Excessive Cache Misses
Hello,
  I am trying to simulate a microbenchmark which excercises false sharing.  I modeled it off of the multiprocessor parallel microbenchmark.  In my code, one thread writes 32 locations in an array and another processor reads 32 locations in an array.  

I have used Magic Breakpoints after the threads are created and after they end so I can ONLY get the data during that execution of threads.  I also use ruby0.clear-stats to clear data recorded before the threads start.  

However, when I do a dump-results at the end, my cache misses just for user_misses is 66698, while overall total misses is 702887.  Both of these values seem unreasonable.  Where could these be coming from?  Obviously the operating system contributes some cache misses, but still, these numbers seem too high.

I've also noticed that even when I let the system idle for a few minutes (about 2), I get 394000 supervisor misses (0 user misses which makes sense).  I'm currently using the MI_example because I just wanted to look at misses with the simplest protocol possible.

Any insight would be very much appreciated.

Thanks,
Robert
[← Prev in Thread] Current Thread [Next in Thread→]