Index menü
Azaz memória deduplikáció
echo 1 > /sys/kernel/mm/ksm/run
The effectiveness of KSM and MADV_MERGEABLE is shown in
/sys/kernel/mm/ksm/:
pages_sharedhow many shared unswappable kernel pages KSM is using pages_sharinghow many more sites are sharing them i.e. how much saved pages_unsharedhow many pages unique but repeatedly checked for merging pages_volatilehow many pages changing too fast to be placed in a tree full_scanshow many times all mergeable areas have been scanned
A high ratio ofpages_sharingtopages_sharedindicates good sharing, but a high ratio ofpages_unsharedtopages_sharingindicates wasted effort.pages_volatileembraces several different kinds of activity, but a high proportion there would also indicate poor use of madvise MADV_MERGEABLE.