Просмотреть запись

Simulation of direct mapped, k-way and fully associative cache on all pairs shortest paths algorithms

Репозиторий БНТУ

Информация об архиве | Просмотр оригинала
 
 
Поле Значение
 
Заглавие Simulation of direct mapped, k-way and fully associative cache on all pairs shortest paths algorithms
Моделирование кэш прямого отображения и ассоциативных кэш на алгоритмах поиска кратчайших путей в графе
 
Автор Prihozhy, A. A.
 
Описание Caches are intermediate level between fast CPU and slow main memory. It aims to store copies of frequently used data and to reduce the access time to the main memory. Caches are capable of exploiting temporal and spatial localities during program execution. When the processor accesses memory, the cache behavior depends on if the data is in cache: a cache hit occurs if it is, and, a cache miss occurs, otherwise. In the last case, the cache may have to evict other data. The misses produce processor stalls and slow down the computations. The replacement policy chooses a data to evict, trying to predict the future accesses to memory. The hit and miss rate depends on the cache type: direct mapped, set associative and fully associative cache. The least recently used replacement policy serves the sets. The miss rate strongly depends on the executed algorithm. The all pairs shortest paths algorithms solve many practical problems, and it is important to know what algorithm and what cache type match best. This paper presents a technique of simulating the direct mapped, k-way associative and fully associative cache during the algorithm execution, to measure the frequency of read data to cache and write data to memory operations. We have measured the frequencies versus the cache size, the data block size, the amount of processed data, the type of cache, and the type of algorithm. After comparing the basic and blocked Floyd-Warshall algorithms, we conclude that the blocked algorithm well localizes data accesses within one block, but it does not localize data dependencies among blocks. The direct mapped cache significantly loses the associative cache; we can improve its performance by appropriate mapping virtual addresses to physical locations.
 
Дата 2020-01-09T07:27:37Z
2020-01-09T07:27:37Z
2019
 
Тип Статья (Article)
 
Идентификатор Prihozhy, A. A. Simulation of direct mapped, k-way and fully associative cache on all pairs shortest paths algorithms = Моделирование кэш прямого отображения и ассоциативных кэш на алгоритмах поиска кратчайших путей в графе / A. A. Prihozhy // Системный анализ и прикладная информатика. – 2019. – № 4. – С. 10-18.
https://rep.bntu.by/handle/data/62315
 
Язык en_EN
 
Охват Минск
 
Издатель БНТУ