Optimizing code allocation for hybrid on-chip memory in IoT systems

被引:0
作者
Sun, Zhe [1 ,2 ]
Zhou, Zimeng [3 ,4 ]
Fu, Fang-Wei [1 ,2 ]
机构
[1] Nankai Univ, Chern Inst Math, Tianjin 300071, Peoples R China
[2] Nankai Univ, LPMC, Tianjin 300071, Peoples R China
[3] Quan Cheng Lab, Jinan 250103, Peoples R China
[4] Shandong Univ, Sch Cyber Sci & Technol, Qingdao 266237, Peoples R China
关键词
Scratchpad memory; Hybrid on-chip memory; IoT systems; Cache interferences; Heuristic solution; SCRATCH-PAD MEMORY; ALGORITHMS;
D O I
10.1016/j.vlsi.2024.102195
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
With the increasing application of IoT devices, the memory subsystem, as the performance and energy bottleneck of IoT systems, has received a lot of attention. One of the keys is on -chip memory which can bridge the performance gap between the CPU and main memory. While many off -the -shelf embedded processors utilize the hybrid on -chip memory architecture containing scratchpad memories (SPMs) and caches, most existing literature ignores the collaboration between caches and SPMs. This paper proposes static SPM allocation strategies for the architecture mentioned above in IoT systems, which try to minimize the overall instruction memory subsystem latency and/or energy consumption. We capture the intra- and inter -task cache conflict misses via a fine-grained temporal cache behavior model. Based on this cache conflict information, we propose an integer linear programming (ILP) algorithm to generate an optimal static function level SPM allocation for system performance. Furthermore, to improve the scalability of the proposed allocation scheme for an enormous task set, we offer the interference factor to calculate the interference impact quantitatively. Then, based on the interference factor, we present two approximate knapsack based heuristic algorithms to provide near optimal static allocation schemes at both function- and basic block -level granularities, which favors fast design space exploration. The experiment results demonstrate that the proposed solution achieves a 30.85% improvement in memory performance, and up to 31.39% reduction in energy consumption, compared to the existing SPM allocation scheme at the function level. In addition, the proposed basic block level allocation algorithm shows better performance than our function level allocation algorithm and other basic block level allocation algorithm.
引用
收藏
页数:12
相关论文
共 40 条
  • [1] [Anonymous], 2023, CACTI5.3
  • [2] Memory- and Communication-Aware Model Compression for Distributed Deep Learning Inference on IoT
    Bhardwaj, Kartikeya
    Lin, Ching-Yi
    Sartor, Anderson
    Marculescu, Radu
    [J]. ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2019, 18 (05)
  • [3] Burger D., 1997, Computer Architecture News, V25, P13, DOI 10.1145/268806.268810
  • [4] Work-in-Progress: DORY: Lightweight Memory Hierarchy Management for Deep NN Inference on IoT Endnodes
    Burrello, Alessio
    Conti, Francesco
    Garofalo, Angelo
    Rossi, Davide
    Benini, Luca
    [J]. INTERNATIONAL CONFERENCE ON COMPILERS, ARCHITECTURE, AND SYNTHESIS FOR EMBEDDED SYSTEMS (CODES +ISSS) 2019, 2019,
  • [5] Introduction to the Special Issue on Memory and Storage Systems for Embedded and IoT Applications
    Chang, Yuan-Hao
    Boukhobza, Jalil
    Han, Song
    [J]. ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2022, 21 (01)
  • [6] Chen Jun, 2023, arXiv
  • [7] Cell broadband engine architecture and its first implementation - A performance view
    Chen, T.
    Raghavan, R.
    Dale, J. N.
    Iwata, E.
    [J]. IBM JOURNAL OF RESEARCH AND DEVELOPMENT, 2007, 51 (05) : 559 - 572
  • [8] The Sunway TaihuLight supercomputer: system and applications
    Fu, Haohuan
    Liao, Junfeng
    Yang, Jinzhe
    Wang, Lanning
    Song, Zhenya
    Huang, Xiaomeng
    Yang, Chao
    Xue, Wei
    Liu, Fangfang
    Qiao, Fangli
    Zhao, Wei
    Yin, Xunqiang
    Hou, Chaofeng
    Zhang, Chenglong
    Ge, Wei
    Zhang, Jian
    Wang, Yangang
    Zhou, Chunbo
    Yang, Guangwen
    [J]. SCIENCE CHINA-INFORMATION SCIENCES, 2016, 59 (07)
  • [9] Inter-Task Cache Interference Aware Partitioned Real-Time Scheduling
    Guo, Zhishan
    Yang, Kecheng
    Yao, Fan
    Awad, Amro
    [J]. PROCEEDINGS OF THE 35TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING (SAC'20), 2020, : 218 - 226
  • [10] Gustafsson Jan., 2010, WCET2010, P137, DOI [10.4230/OASIcs.WCET.2010.136, DOI 10.4230/OASICS.WCET.2010.136]