Programming/Linux_Kernel
memory compaction (kcompactd)
decdream
2020. 3. 20. 09:20
Kswapd & Kcompactd 노드마다 kswapd와 kcompactd가 동작하며 free 메모리가 일정량 이상 충분할 때에는 잠들어(sleep) 있다.
https://www.kernel.org/doc/Documentation/sysctl/vm.txt
compact_memory Available only when CONFIG_COMPACTION is set. When 1 is written to the file, all zones are compacted such that free memory is available in contiguous blocks where possible. This can be important for example in the allocation of huge pages although processes will also directly compact memory as required.
https://programmer.group/original-linux-memory-management-zoned-page-frame-allocator-4.html
: memory compaction에 대한 그림으로 설명