Skip navigation

DSpace

機構典藏 DSpace 系統致力於保存各式數位資料(如:文字、圖片、PDF)並使其易於取用。

點此認識 DSpace
DSpace logo
English
中文
  • 瀏覽論文
    • 校院系所
    • 出版年
    • 作者
    • 標題
    • 關鍵字
    • 指導教授
  • 搜尋 TDR
  • 授權 Q&A
    • 我的頁面
    • 接受 E-mail 通知
    • 編輯個人資料
  1. NTU Theses and Dissertations Repository
  2. 電機資訊學院
  3. 電機工程學系
請用此 Handle URI 來引用此文件: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/98233
完整後設資料紀錄
DC 欄位值語言
dc.contributor.advisor王勝德zh_TW
dc.contributor.advisorSheng-De Wangen
dc.contributor.author胡丞佑zh_TW
dc.contributor.authorCheng-Yu Huen
dc.date.accessioned2025-07-30T16:26:10Z-
dc.date.available2025-07-31-
dc.date.copyright2025-07-30-
dc.date.issued2025-
dc.date.submitted2025-07-28-
dc.identifier.citation[1] Android Developers. Detect and fix jank in android studio. https://developer.android.com/studio/profile/jank-detection, 2024. Accessed: 2025-06-19.
[2] Android Developers. dumpsys. https://developer.android.com/tools/dumpsys, 2024. Accessed: 2025-06-19.
[3] Android Developers. Low memory killer (lmk). https://developer.android.com/games/optimize/vitals/lmk, 2024. Accessed: 2025-06-19.
[4] Android Developers. Memory management overview. https://developer.android.com/topic/performance/memory-management, 2024. Accessed:2025-06-19.
[5] Android Open Source Project. Debugging art garbage collection. https://source.android.com/docs/core/runtime/gc-debug, 2024. Accessed: 2025-06-19.
[6] Google. Perfetto - system profiling, tracing and diagnostics. https://perfetto.dev/, 2024. Accessed:2025-06-19.
[7] J. Huang, Y. Zhang, J. Qiu, Y. Liang, R. Ausavarungnirun, Q. Li, and C. J. Xue. More apps, faster hot-launch on mobile devices via fore/background-aware gc-swap codesign. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3, ASPLOS’24, page 654–670, New York, NY, USA, 2024. Association for Computing Machinery.
[8] N. Lebeck, A. Krishnamurthy, H. M. Levy, and I. Zhang. End the senseless killing: improving memory management for mobile operating systems. In Proceedings of the 2020 USENIX Conference on Usenix Annual Technical Conference, USENIX ATC’20, USA, 2020. USENIX Association.
[9] W. Li, D. Yu, Y. Song, L. Luo, and L. Shi. Elasticzram: Revisiting zram for swapping on mobile devices. In Proceedings of the 61st ACM/IEEE Design Automation Conference, DAC ’24, New York, NY, USA, 2024. Association for Computing Machinery.
[10] myPAT. Memory management in android. https://medium.com/mypat/memory-management-in-android-f0101074debd, jan 2018. Accessed: 2025-06-19.
[11] D. Nunez, S. Z. Guyer, and E. D. Berger. Prioritized garbage collection: explicit gc support for software caches. In Proceedings of the 2016 ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA 2016, page 695–710, New York, NY, USA, 2016. Association for Computing Machinery.
[12] Oracle Corporation. Garbage collection. https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/garbage_collect.html, 2005. Accessed: 2025-06-19.
[13] W. W. Peterson and D. T. Brown. Cyclic codes for error detection. Proceedings of the IRE, 49(1):228–235, 1961.
[14] I. A. Qazi, Z. A. Qazi, T. A. Benson, G. Murtaza, E. Latif, A. Manan, and A. Tariq. Mobile web browsing under memory pressure. SIGCOMM Comput. Commun. Rev., 50(4):35–48, Oct. 2020.
-
dc.identifier.urihttp://tdr.lib.ntu.edu.tw/jspui/handle/123456789/98233-
dc.description.abstract行動裝置在現今複雜的應用程式日益增長的記憶體需求與有限的實體DRAM之間,持續面臨著挑戰,這導致低記憶體終止機制 (LMK) 頻繁地終止程序 (process),從而降低了多工處理的使用者體驗。儘管先前如 Marvin 和 Fleet 等物件級交換框架,已試圖透過優化回收速度或熱啟動延遲等單一效能指標來應對此問題,但它們在複雜且不可預測的工作負載下,仍可能表現出急遽的「效能懸崖」。
本論文提出 PhantomSwap,一個為行動裝置設計的混合式記憶體交換系統,其目標在於全面地改善系統流暢度與韌性。PhantomSwap 的核心創新是一個由智慧型「統一交換控制器」所管理的反應式三層式記憶體階層(DRAM、ZRAM、Flash)。在一個輕量級的「物件年齡演算法」驅動下,該控制器動態地將物件分類為熱、溫、冷三種狀態,並在無需依賴預測模型的情況下,將其遷移至最佳的儲存層級。此架構與 Android 執行環境的垃圾回收機制深度整合,採用了「類書籤式」機制,以確保記憶體正確性,並避免昂貴的喚回成本。
我們在 Android 10 環境中的全面評估證明了此方法的有效性。實驗結果顯示,PhantomSwap 顯著提升了應用程式的快取容量,在商業應用測試中能同時支援多達 19 個應用程式,而原生 Android 系統僅能支援 15 個。至關重要的是,PhantomSwap 在維持極具競爭力的中位數熱啟動效能的同時,展現了卓越的「尾部延遲」表現,在複雜的遊戲負載下,其第 95 百分位的啟動延遲較頂尖學術框架降低了達 46%。其中的 ZRAM 層作為關鍵緩衝區,有效減緩了記憶體未命中時的效能衝擊,並防止了雙層系統中常見的嚴重停頓問題。
總而言之,本研究證明了 PhantomSwap 的反應式三層式架構,為提升記憶體容量並在行動裝置上提供更一致、更具韌性的使用者體驗,提供了一個穩健且實用的解決方案。
zh_TW
dc.description.abstractMobile devices face a persistent conflict between the growing memory demands of sophisticated applications and their limited physical DRAM. This conflict leads to aggressive process termination by the Low Memory Killer (LMK), which degrades the multitasking user experience. While prior object-level swapping frameworks like Marvin and Fleet have sought to address this by optimizing for single performance vectors, such as reclamation speed or hot-launch latency, they can exhibit performance cliffs under complex, unpredictable workloads.
This thesis introduces PhantomSwap, a hybrid memory swapping system for mobile devices designed to deliver a more holistic improvement in system fluidity and resilience. PhantomSwap's core innovation is a reactive, three-tiered memory hierarchy (DRAM, ZRAM, Flash), managed by an intelligent Unified Swap Controller. Driven by a lightweight Object Aging Algorithm, the controller dynamically classifies objects as hot, warm, or cold, and migrates them to the optimal storage tier without relying on predictive models. This architecture is deeply co-designed with the Android Runtime's Garbage Collector, employing a Bookmark-style mechanism to ensure memory correctness without expensive fault-ins.
Our comprehensive evaluation on a reproduced Android 10 environment demonstrates the effectiveness of this approach. Experimental results show that PhantomSwap significantly increases application cache capacity, supporting up to 19 concurrent commercial applications compared to 15 in the Android baseline. Critically, while maintaining highly competitive median hot-launch performance, PhantomSwap exhibits superior tail latency, reducing the 95th-percentile launch time by up to 46% against state-of-the-art frameworks in complex gaming workloads. The ZRAM tier acts as a crucial buffer, "softening" the performance penalty of memory misses and preventing the severe stalls inherent in two-tiered systems.
In conclusion, PhantomSwap provides a robust and practical solution that enhances system capacity and delivers a more consistent, resilient user experience on mobile devices.
en
dc.description.provenanceSubmitted by admin ntu (admin@lib.ntu.edu.tw) on 2025-07-30T16:26:10Z
No. of bitstreams: 0
en
dc.description.provenanceMade available in DSpace on 2025-07-30T16:26:10Z (GMT). No. of bitstreams: 0en
dc.description.tableofcontentsAcknowledgements iii
摘要 v
Abstract vii
Contents xi
List of Figures xv
List of Tables xvii
Chapter 1 Introduction 1
Chapter 2 Related Work 5
2.1 Page-based Memory Swapping in Android/Linux 5
2.2 Object-aware Swapping Frameworks 6
2.3 Non-Android Systems for Comparative Insight 8
Chapter 3 PhantomSwap Design 9
3.1 Overview 9
3.2 The Policy Layer: Unified Swap Controller 11
3.2.1 Candidate Selection and Filtering 11
3.2.2 Object Temperature Tracking: The Aging Algorithm 12
3.2.3 The Multi-Tiered Swapping Policy 14
3.2.4 Dynamic Resource Management 15
3.3 The Execution Layer: Fault-Handling Mechanism 16
3.3.1 Swap-Out and Phantom Stub Installation 16
3.3.2 Data Integrity Verification 17
3.3.3 Fault-In via Read Barrier Interception 18
3.3.4 Relocatable Swap-In and Forwarding 18
3.4 The Coordination Layer: Integration and Robustness 20
3.4.1 Garbage Collector Integration 20
3.4.2 Concurrency and Synchronization 21
3.4.3 Core Data Structures and Lifecycle Management 22
3.5 Implementation Overview 24
Chapter 4 Experiments 27
4.1 Experimental Setup 27
4.1.1 Hardware and Software Platforms 27
4.1.2 Framework Configurations for Comparison 28
4.1.3 Benchmark Workloads 29
4.2 Evaluation Metrics 30
4.2.1 Application Performance and User Experience 30
4.2.2 System Overheads and Resource Consumption 31
4.3 Results 32
4.3.1 Application Cache Capacity 32
4.3.2 Application Hot-Launch Performance 36
4.3.3 Runtime Fluidity 39
4.3.4 System Overheads and Resource Consumption 41
4.3.5 Parameter Sensitivity Analysis 42
4.4 Discussion 43
Chapter 5 Conclusion 45
References 47
-
dc.language.isoen-
dc.subject記憶體管理zh_TW
dc.subject作業系統zh_TW
dc.subject行動裝置zh_TW
dc.subjectOperating Systemsen
dc.subjectMemory Managementen
dc.subjectMobile Devicesen
dc.title應用於行動裝置之混合式記憶體交換系統zh_TW
dc.titlePhantomSwap: A Hybrid Memory Swapping System for Mobile Devicesen
dc.typeThesis-
dc.date.schoolyear113-2-
dc.description.degree碩士-
dc.contributor.oralexamcommittee雷欽隆;陳永昇;于天立zh_TW
dc.contributor.oralexamcommitteeChin-Laung Lei;Yeong-Sheng Chen;Tian-Li Yuen
dc.subject.keyword記憶體管理,行動裝置,作業系統,zh_TW
dc.subject.keywordMemory Management,Mobile Devices,Operating Systems,en
dc.relation.page49-
dc.identifier.doi10.6342/NTU202502660-
dc.rights.note未授權-
dc.date.accepted2025-07-30-
dc.contributor.author-college電機資訊學院-
dc.contributor.author-dept電機工程學系-
dc.date.embargo-liftN/A-
顯示於系所單位:電機工程學系

文件中的檔案:
檔案 大小格式 
ntu-113-2.pdf
  未授權公開取用
1.17 MBAdobe PDF
顯示文件簡單紀錄


系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。

社群連結
聯絡資訊
10617臺北市大安區羅斯福路四段1號
No.1 Sec.4, Roosevelt Rd., Taipei, Taiwan, R.O.C. 106
Tel: (02)33662353
Email: ntuetds@ntu.edu.tw
意見箱
相關連結
館藏目錄
國內圖書館整合查詢 MetaCat
臺大學術典藏 NTU Scholars
臺大圖書館數位典藏館
本站聲明
© NTU Library All Rights Reserved