標題: 應用緊密耦合記憶體之Linux內核效能最佳化
Optimizing Linux Kernel Performance with Tightly-Coupled Memory
作者: 林榮燦
Lin, Jung-Tsan
黃育綸
Huang, Yu-Lun
電機學院電機與控制學程
關鍵字: 緊密耦合記憶體;嵌入式系統;Tightly-Coupled Memory;TCM;Embedded system;Linux
公開日期: 2011
摘要: 緊密耦合記憶體 (Tightly-Coupled Memory,TCM) 比傳統記憶體結構擁有高速存取與低耗電的優點。為此,TCM 最適合用於關鍵的常用程式和資料結構。當前此領域的研究都是集中在非作業系統的嵌入式應用程式,例如多媒體資料的處理,以提高整體效能。可能是由於 Linux 內核程式碼和其資料結構是龐大且複雜的,因此沒有關於將作業系統內核函數程式放到 TCM 之性能影響的討論。不當安排內核函數程式在 TCM 中會造成效能降低。在本論文中,我們分析 TCM 的利用率和效能的影響,並把 Linux 內核函數程式根據 TCM 的容量進行分組。然後,我們選擇不同群組的 Linux 內核函數程式進行個別編譯,在系統執行期間將這些群組放入 TCM 並且不再置換。通過使用 lmbench 的實驗,我們找到把 exec() 或 schedule() 函數程式放置到 TCM 可以縮短本地端通信延遲 13%-14%。
TCM (Tightly-Coupled Memory) is advantaged of high-speed data access with lower power consumption than the traditional memory architecture. As such, TCM is a best fit to hold mission critical routines and data structures. Prior research of this area has emphasized on how TCM can be applied to non-OS embedded applications, like media streaming, to improve the overall performance. Possibly due to large and complicated Linux kernel code base and its data structures, there is no discussion regarding the performance impact when placing OS kernel functions into TCM. An improper arrangement of kernel functions in TCM can contrarily downgrade the performance. In this paper, we analyze the utilization and performance impact of TCM, and classify Linux kernel functions into groups per the TCM capacity. Then, we select different groups of Linux kernel functions at the compiling time and place these function groups into TCM without swapping them out during execution. By conducting the experiments with lmbench, we find that placing exec() or schedule() into TCM can reduce the local communication latency by a factor of 13% - 14%.
URI: http://140.113.39.130/cdrfb3/record/nctu/#GT079767533
http://hdl.handle.net/11536/46313
Appears in Collections:Thesis


Files in This Item:

  1. 753301.pdf

If it is a zip file, please download the file and unzip it, then open index.html in a browser to view the full text content.