Proceedings of the Institute for System Programming of the RAS
RUS  ENG    JOURNALS   PEOPLE   ORGANISATIONS   CONFERENCES   SEMINARS   VIDEO LIBRARY   PACKAGE AMSBIB  
General information
Latest issue
Archive

Search papers
Search references

RSS
Latest issue
Current issues
Archive issues
What is RSS



Proceedings of ISP RAS:
Year:
Volume:
Issue:
Page:
Find






Personal entry:
Login:
Password:
Save password
Enter
Forgotten password?
Register


Proceedings of the Institute for System Programming of the RAS, 2015, Volume 27, Issue 4, Pages 39–48
DOI: https://doi.org/10.15514/ISPRAS-2015-27(4)-3
(Mi tisp163)
 

Evaluating a number of cache coherency misses based on a statistical model

Evgeny Velesevich

Institute for System Programming of the Russian Academy of Sciences
References:
Abstract: False cache sharing happens when different threads executing in parallel on distinct processor cores simultaneously update the variables that reside in the same cache line. This results in the invalidation of the current memory state data that is saved in the cache utilized by the first thread’s core, and also in the necessity to stall for the second thread on the memory state data update.
We suggest in this paper to evaluate the number of cache misses using code instrumentation and post-mortem trace analysis: the probability of the false sharing cache miss (defined as a memory write issued by one thread between two consecutive memory accesses issued by another thread) is calculated based on the gathered event trace, where each observed event is a memory access with a timestamp. The tracer tool is implemented as a GCC compiler pass inserting necessary tracing instructions before each memory access. The pass is scheduled after all other optimization passes that allow to use the tracer for optimized code. The post-mortem analyzer is a separate application that gets the trace collection gathered on a sample application input data as its own input. Program slowdown in our approach is 10 times, and it is dependent on a sampling probability but it does not depend on a cache line size.
Keywords: false cache sharing, GCC compiler, code instrumentation.
Bibliographic databases:
Document Type: Article
Language: Russian
Citation: Evgeny Velesevich, “Evaluating a number of cache coherency misses based on a statistical model”, Proceedings of ISP RAS, 27:4 (2015), 39–48
Citation in format AMSBIB
\Bibitem{Vel15}
\by Evgeny~Velesevich
\paper Evaluating a number of cache coherency misses based on a statistical model
\jour Proceedings of ISP RAS
\yr 2015
\vol 27
\issue 4
\pages 39--48
\mathnet{http://mi.mathnet.ru/tisp163}
\crossref{https://doi.org/10.15514/ISPRAS-2015-27(4)-3}
\elib{https://elibrary.ru/item.asp?id=24928722}
Linking options:
  • https://www.mathnet.ru/eng/tisp163
  • https://www.mathnet.ru/eng/tisp/v27/i4/p39
  • Citing articles in Google Scholar: Russian citations, English citations
    Related articles in Google Scholar: Russian articles, English articles
    Proceedings of the Institute for System Programming of the RAS
    Statistics & downloads:
    Abstract page:114
    Full-text PDF :123
    References:27
     
      Contact us:
     Terms of Use  Registration to the website  Logotypes © Steklov Mathematical Institute RAS, 2024