Readhub - 技术资讯 ( ) • 2021-06-23 01:51
As mentioned in Part I and Memory Compaction, memory compaction is not very efficient in practice—at least for the most commonly-used kernel, V3.10—no matter whether it is triggered automatically or manually ... As for direct memory reclaim, it is not only performed by the kernel when the memory is severely insufficient, but also triggered due to memory fragmentation in practical scenarios ... If memory compaction is automatically triggered, the kernel calculates the fragmentation index of the requested order to determine whether the zone has enough memory left for compaction.