[Gems-users] about sharing miss


Date: Sun, 3 Oct 2010 16:25:09 +0800
From: 李 建樟 <piliman9176@xxxxxxxxxxx>
Subject: [Gems-users] about sharing miss
Hi all,

         In ruby / profiler / Profiler.C ,  I have found some sharing miss output.
 
if (m_all_sharing_histogram.size() > 0) {
      out << "all_sharing: " << m_all_sharing_histogram << endl;
      out << "read_sharing: " << m_read_sharing_histogram << endl;
      out << "write_sharing: " << m_write_sharing_histogram << endl;

      out << "all_sharing_percent: "; m_all_sharing_histogram.printPercent(out); out << endl;
      out << "read_sharing_percent: "; m_read_sharing_histogram.printPercent(out); out << endl;
      out << "write_sharing_percent: "; m_write_sharing_histogram.printPercent(out); out << endl;

      int64 total_miss = m_cache_to_cache +  m_memory_to_cache;
      out << "all_misses: " << total_miss << endl;
      out << "cache_to_cache_misses: " << m_cache_to_cache << endl;
      out << "memory_to_cache_misses: " << m_memory_to_cache << endl;
      out << "cache_to_cache_percent: " << 100.0 * (double(m_cache_to_cache) / double(total_miss)) << endl;
      out << "memory_to_cache_percent: " << 100.0 * (double(m_memory_to_cache) / double(total_miss)) << endl;
      out << endl;

}
 
         How should I do that it can output these information ?

         I want to measure false sharing miss by running splash-2 benchmark on GEMS.
 
         so if false sharing miss could measure,  that is  better. 
 
         Anyone can answer my questions ?  please ! 
[← Prev in Thread] Current Thread [Next in Thread→]