电子科技 ›› 2024, Vol. 37 ›› Issue (9): 27-33.doi: 10.16180/j.cnki.issn1007-7820.2024.09.005

• • 上一篇    下一篇

多核处理器共享Cache的划分算法

吕海玉, 罗广, 朱嘉炜, 张凤登   

  1. 上海理工大学 光电信息与计算机工程学院,上海 200093
  • 收稿日期:2023-03-08 出版日期:2024-09-15 发布日期:2024-09-20
  • 作者简介:吕海玉(1999-),男,硕士研究生。研究方向:分布式实时系统、多核处理器。
    罗广(1999-),男,硕士研究生。研究方向:分布式实时系统。
    张凤登(1963-),男,博士,教授。研究方向:汽车电子与现场总线、分布式实时系统。
  • 基金资助:
    国家自然科学基金(71840003);上海市自然科学基金(15ZR1429300)

Research on Shared Cache Partition Algorithm Based on Multi-Core Processors

LÜ Haiyu, LUO Guang, ZHU Jiawei, ZHANG Fengdeng   

  1. School of Optical-Electrical and Computer Engineering,University of Shanghai for Science & Technology,Shanghai 200093,China
  • Received:2023-03-08 Online:2024-09-15 Published:2024-09-20
  • Supported by:
    National Natural Science Foundation of China(71840003);Shanghai Municipal Natural Science Fund Project(15ZR1429300)

摘要:

针对多核处理器性能优化问题,文中深入研究多核处理器上共享Cache的管理策略,提出了基于缓存时间公平性与吞吐率的共享Cache划分算法MT-FTP(Memory Time based Fair and Throughput Partitioning)。以公平性和吞吐率两个评价性指标建立数学模型,并分析了算法的划分流程。仿真实验结果表明,MT-FTP算法在系统吞吐率方面表现较好,其平均IPC(Instructions Per Cycles)值比UCP (Use Case Point)算法高1.3%,比LRU(Least Recently Used)算法高11.6%。MT-FTP算法对应的系统平均公平性比LRU算法的系统平均公平性高17%,比UCP算法的平均公平性高16.5%。该算法实现了共享Cache划分公平性并兼顾了系统的吞吐率。

关键词: 片上多核处理器, 内存墙, 划分, 公平性, 吞吐率, 共享Cache, 缓存时间, 集成计算机

Abstract:

In order to optimize the performance of multi-core processors, this study deeply investigates the management strategy of shared Cache on multi-core processors, and proposes a shared Cache partitioning algorithm MT-FTP(Memory Time based Fair and Throughput Partitioning) based on the fairness of cache time and throughput rate. A mathematical model based on the fairness and throughput index is established, and the partitioning flow of the algorithm is analyzed in the proposed study. The simulation results show that the MT-FTP algorithm has excellent performance in system throughput, and its average IPC (Instructions Per Cycles) value is 1.3% higher than that of UCP(Use Case Point) algorithm and 11.6% higher than that of LRU (Least Recently Used) algorithm. The average fairness of MT-FTP algorithm is 17% higher than that of LRU algorithm, and 16.5% higher than that of UCP algorithm. This algorithm realizes the fairness of shared Cache partition and takes into account the throughput of the system.

Key words: chip multi-processor, memory wall, partition, fairness, throughput rate, shared Cache, cache time, integrated computer

中图分类号: 

  • TP316.2