Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hugetlb: compacting memory to reduce fragmental pages
Kernel memory compaction is a process that helps to reduce fragmentation and optimize memory allocation by compacting memory pages. `echo 1 > /proc/sys/vm/compact_memory` 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. As this introduced since v2.6.35, we could safely use it via SAFE_FILE_PRINT() in LTP lib: commit 76ab0f530e4a01d4dc20cdc1d5e87753c579dc18 Author: Mel Gorman <mel@csn.ul.ie> Date: Mon May 24 14:32:28 2010 -0700 mm: compaction: add /proc trigger for memory compaction Signed-off-by: Li Wang <liwang@redhat.com>
- Loading branch information