应用科学学报 ›› 2012, Vol. 30 ›› Issue (4): 356-362.doi: 10.3969/j.issn.0255-8297.2012.04.005

• 电子技术 • 上一篇    下一篇

嵌入式Linux 的片上存储动态优化

武建平, 方攀, 凌明, 张阳   

  1. 东南大学国家专用集成电路系统工程技术研究中心,南京210096
  • 收稿日期:2011-05-20 修回日期:2011-12-31 出版日期:2012-07-23 发布日期:2012-07-25
  • 作者简介:武建平,博士生,研究方向:SoC存储子系统、SoC存储架构优化,E-mail:herofly2005@163.com
  • 基金资助:

    “青蓝工程”基金资助

On-Chip Memory Dynamic Optimization for Embedded Linux

WU Jian-ping, FANG Pan, LING Ming, ZHANG Yang   

  1. National ASIC System Engineering Research Center, Southeast University, Nanjing 210096, China
  • Received:2011-05-20 Revised:2011-12-31 Online:2012-07-23 Published:2012-07-25

摘要:

为了充分利用片上高速便签存储器(scratch-pad memory, SPM),提升嵌入式Linux 系统性能并降低功耗,该文提出一种面向嵌入式Linux 用户进程的SPM动态优化方案. 利用虚存管理技术在Linux 内核的内存模型中添加SPM页区,建立以SPM页区为基础的动态SPM页框分配机制,并实现页框分配的通用接口函数. 在实现对用户程序(包括代码段、栈和BSS 段)优化的基础上,提出自主设计的自动采样交换器(auto profile and pageswap, APPS) 优化方案. 该方案能在内核态自动分析用户进程热点并通过专用DMA将其搬运到SPM中,最终实现多进程用户程序的动态SPM优化. 实验结果表明,基于该优化方案的系统性能得到显著提升.

关键词: Linux, 内存管理, 便签存储器, 自动采样交换器

Abstract:

An on-chip memory (scratch-pad memory, SPM) dynamic optimization approach (auto profile
and page swap, APPS) for Linux user process is explored to improve system performance and reduce power
consumption. The SPM page zone is added to the memory model of Linux kernel by a virtual memory system.
The dynamic allocation mechanism for the SPM page frame is implemented based on the SPM page zone.
The general interface function for the SPM page frame assignment is provided for other processes. Based on
optimization for user program including code, stack and BSS segment, the APPS scheme is introduced. This
method can automatically analyze the hot-spots of processes in kernel mode and transmit them to the SPM
zone by a dedicated DMA channel. Therefore, the multi-process user program will be dynamically optimized.
Experimental results show that the proposed approach can improve the system performance.

Key words:  Linux, memory management, scratch-pad memory (SPM), auto profile and page swap (APPS)

中图分类号: