請用此 Handle URI 來引用此文件:
http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/98625| 標題: | 基於 SimPoint/LLVM-MCA 效能分析的排隊理論資源分配方法 Queueing Theory-Based Resource Allocation based on our SimPoint/LLVM-MCA Performance Analysis |
| 作者: | 張盛翔 Sheng-Hsiang Chang |
| 指導教授: | 廖世偉 Shih-Wei Liao |
| 關鍵字: | LLVM-MCA,Simpoint,處理器資源調整, LLVM-MCA,Simpoint,Processor Resource Tuning, |
| 出版年 : | 2025 |
| 學位: | 碩士 |
| 摘要: | 為解決大型程式碼分析中所面臨的高昂模擬成本問題,本研究提出一套高效率的效能估算框架,整合 LLVM-MCA、SimPoint,以及兩種資源配置策略:模擬退火(SA)與基於排隊理論的資源分配(QTRA)。當程式規模擴大時,傳統的全追蹤模擬將導致極高的運算時間與資源消耗,因此本研究採用 SimPoint 技術選出具代表性的程式區段,以大幅減少模擬範圍,同時保留原始程式行為的統計特徵。
本方法在 CoreMark 基準測試上進行驗證。實驗結果顯示,QTRA 能產生穩定且具可解釋性的資源配置趨勢,適用於成本敏感與可擴展的設計環境;而 SA 雖能偶爾探索出較佳效能組合,但其隨機特性導致結果波動。最後透過 SimPoint 加權區間估算的週期數與完整 LLVM-MCA 模擬結果相比,其誤差僅約在 -0.75% 至 -8.51% 之間,證實其在大規模程式分析中具有準確性與效率兼具的優勢。本研究提供一種針對大型程式之微架構設計與分析的可行方法,有效降低模擬負擔。 To address the high simulation overhead associated with large-scale program analysis, this study proposes an efficient performance estimation framework that integrates LLVM-MCA, SimPoint, and two resource configuration strategies: Simulated Annealing (SA) and Queueing-Theory-based Resource Allocation (QTRA). As program size increases, traditional full-trace simulation becomes computationally infeasible due to excessive runtime and resource usage. Therefore, this work leverages SimPoint to identify representative program intervals, significantly reducing the simulation scope while preserving the statistical characteristics of the original execution behavior. The proposed framework is validated using the CoreMark benchmark. Experimental results show that QTRA produces stable and interpretable resource allocation trends, making it suitable for cost-sensitive and scalable architectural design. In contrast, SA can occasionally discover better-performing configurations, but its stochastic nature introduces variability. Finally, when comparing SimPoint-based cycle estimates with full-trace LLVM-MCA simulation, the observed error ranges from -0.75% to -8.51%, confirming the effectiveness and accuracy of this method for large-scale program analysis. Overall, this study provides a practical and efficient approach for microarchitectural optimization under resource constraints. |
| URI: | http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/98625 |
| DOI: | 10.6342/NTU202503193 |
| 全文授權: | 未授權 |
| 電子全文公開日期: | N/A |
| 顯示於系所單位: | 資訊網路與多媒體研究所 |
文件中的檔案:
| 檔案 | 大小 | 格式 | |
|---|---|---|---|
| ntu-113-2.pdf 未授權公開取用 | 5.23 MB | Adobe PDF |
系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。
