Effective Compaction for Kernel Memory Allocator Using Workload Distribution

Low latency is one of the most important requirements for smart devices. Even though they have a small amount of memory, end users often want to run multiple applications concurrently without delays. Memory fragmentation is a critical obstacle to this aspect. To recover from it, the operating system uses compaction to create contiguous space from scattered free pages. Memory compaction tends to secure as many contiguous memory pages as it can, which may affect the user experience adversely at application launches. In this paper, a new page compaction method is proposed to improve the user experience. This method employs an efficient mechanism to find candidate pages to move. It also uses a bitmap to represent the status of the physical pages and find compactable pages effectively. The experiment performed on the proposed method demonstrates that the interruptions for compaction occur more frequently, but with a significantly lower workload than conventional compaction. According to the experiment, the success rate after compaction increased by about 22%, and the elapsed time to scan free pages decreased dramatically compared to conventional compaction. Moreover, the proposed method reduced the worst-case time for a new process creation by about 67%.

[1]  Hwanju Kim,et al.  Rigorous rental memory management for embedded systems , 2013, TECS.

[2]  Hyeonggyu Kim,et al.  Efficient memory reclaiming for mitigating sluggish response in mobile devices , 2015, 2015 IEEE 5th International Conference on Consumer Electronics - Berlin (ICCE-Berlin).

[3]  Andy Whitcroft,et al.  Supporting the Allocation of Large Contiguous Regions of Memory , 2010 .

[4]  Cheng-Zen Yang,et al.  Design of an Intelligent Memory Reclamation Service on Android , 2013, 2013 Conference on Technologies and Applications of Artificial Intelligence.

[5]  Joonwon Lee,et al.  Selective memory deduplication for cost efficiency in mobile smart devices , 2014, IEEE Transactions on Consumer Electronics.

[6]  Juan E. Navarro,et al.  Practical, transparent operating system support for superpages , 2002, OSDI '02.

[7]  Jin-Soo Kim,et al.  Controlling physical memory fragmentation in mobile systems , 2015, ISMM.

[8]  Cheol-Ho Hong,et al.  Compressed and shared swap to extend available memory in virtualized consumer electronics , 2014, IEEE Transactions on Consumer Electronics.

[9]  Jaehyuk Huh,et al.  Balanced memory management for smartphones based on adaptive background app management , 2014, The 18th IEEE International Symposium on Consumer Electronics (ISCE 2014).

[10]  K. Gopinath,et al.  A Case for Protecting Huge Pages from the Kernel , 2016, APSys.