본문 바로가기

Programming/Linux_Kernel

memory compaction (kcompactd)

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에 대한 그림으로 설명

 

'Programming > Linux_Kernel' 카테고리의 다른 글

linux kernel 의 memory mapping 함수 정리  (0) 2020.04.29
__meminit section keyword  (0) 2020.03.23
[linux kernel] memory zone  (0) 2020.03.20
buddy allocator가 왜 buddy인가?  (0) 2020.03.20
linux kernel - boot args 중 boot_cpus  (0) 2019.09.02