Existing memory reclamation policies on mobile devices may be no longer valid because they have negative effects on the response time of running applications. In this paper, we propose SWAM, a new integrated memory management technique that complements the shortcomings of both the swapping and killing mechanism in mobile devices and improves the application responsiveness. SWAM consists of (1) Adaptive Swap that performs swapping adaptively into memory or storage device while managing the swap space dynamically, (2) OOM Cleaner that reclaims shared object pages in the swap space to secure available memory and storage space, and (3) EOOM Killer that terminates processes in the worst case while prioritizing the lowest initialization cost applications as victim processes first. Experimental results demonstrate that SWAM significantly reduces the number of applications killed by OOMK (6.5x lower), and improves application launch time (36% faster) and response time (41% faster), compared to the conventional schemes.
翻译:摘要:现有移动设备中的内存回收策略可能已不再适用,因为它们会对运行中应用的响应时间产生负面影响。本文提出SWAM——一种新型集成内存管理技术,它弥补了移动设备中交换与终止机制的不足,并提升了应用响应性能。SWAM包含三大组件:(1) 自适应交换(Adaptive Swap),能够自适应地将数据交换到内存或存储设备中,同时动态管理交换空间;(2) OOM清理器(OOM Cleaner),回收交换空间中的共享对象页面以保障可用内存和存储空间;(3) EOOM终止器(EOOM Killer),在最坏情况下以最低初始化成本应用作为优先终止进程。实验结果表明,与传统方案相比,SWAM显著降低了OOMK机制终止的应用数量(降低6.5倍),并将应用启动时间(提升36%)和响应时间(提升41%)分别提高了36%和41%。