Dynamic scratchpad memory management for code in portable systems with an MMU

Author:

Egger Bernhard1,Lee Jaejin2,Shin Heonshik2

Affiliation:

1. Samsung Advanced Institute of Technology

2. Seoul National University, Seoul, South Korea

Abstract

In this work, we present a dynamic memory allocation technique for a novel, horizontally partitioned memory subsystem targeting contemporary embedded processors with a memory management unit (MMU). We propose to replace the on-chip instruction cache with a scratchpad memory (SPM) and a small minicache. Serializing the address translation with the actual memory access enables the memory system to access either only the SPM or the minicache. Independent of the SPM size and based solely on profiling information, a postpass optimizer classifies the code of an application binary into a pageable and a cacheable code region. The latter is placed at a fixed location in the external memory and cached by the minicache. The former, the pageable code region, is copied on demand to the SPM before execution. Both the pageable code region and the SPM are logically divided into pages the size of an MMU memory page. Using the MMU's pagefault exception mechanism, a runtime scratchpad memory manager (SPMM) tracks page accesses and copies frequently executed code pages to the SPM before they get executed. In order to minimize the number of page transfers from the external memory to the SPM, good code placement techniques become more important with increasing sizes of the MMU pages. We discuss code-grouping techniques and provide an analysis of the effect of the MMU's page size on execution time, energy consumption, and external memory accesses. We show that by using the data cache as a victim buffer for the SPM, significant energy savings are possible. We evaluate our SPM allocation strategy with fifteen applications, including H.264, MP3, MPEG-4, and PGP. The proposed memory system requires 8% less die are compared to a fully-cached configuration. On average, we achieve a 31% improvement in runtime performance and a 35% reduction in energy consumption with an MMU page size of 256 bytes.

Funder

IT R&D Program of MIC/IITA

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference42 articles.

1. Polynomial-time algorithm for on-chip scratchpad memory partitioning

2. A post-compiler approach to scratchpad mapping of code

3. ARM926EJ-S 2002. ARM926EJ-S Jazelle-enhanced macrocell . http://www.arm.com/products/CPUs/ARM926EJ-S.html. ARM926EJ-S 2002. ARM926EJ-S Jazelle-enhanced macrocell . http://www.arm.com/products/CPUs/ARM926EJ-S.html.

4. ARMv6 2002. ARM Architecture Version 6 (ARMv6) . http://www.arm.com. ARMv6 2002. ARM Architecture Version 6 (ARMv6) . http://www.arm.com.

5. Scratchpad memory

Cited by 20 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Mapi-Pro: An Energy Efficient Memory Mapping Technique for Intermittent Computing;ACM Transactions on Architecture and Code Optimization;2023-12-14

2. Scratchpad-Memory Management for Multi-Threaded Applications on Many-Core Architectures;ACM Transactions on Embedded Computing Systems;2019-01-31

3. NPAM: NVM-Aware Page Allocation for Multi-Core Embedded Systems;IEEE Transactions on Computers;2017-10-01

4. Automatic management of Software Programmable Memories in Many‐core Architectures;IET Computers & Digital Techniques;2016-11

5. Building Fault-Tolerant Embedded System Using Virtualization;Advanced Science Letters;2016-11-01

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3