[RFC PATCH 1/6] mm: add defer mechanism to ksm to make it more suitable

2015-06-10 Thread Wenwei Tao
I observe that it is unlikely for KSM to merge new pages from an area that has already been scanned twice on Android mobile devices, so it's a waste of power to continue to scan these areas in high frequency. In this patch a defer mechanism is introduced which is borrowed from page compaction to

[RFC PATCH 1/6] mm: add defer mechanism to ksm to make it more suitable

2015-06-10 Thread Wenwei Tao
I observe that it is unlikely for KSM to merge new pages from an area that has already been scanned twice on Android mobile devices, so it's a waste of power to continue to scan these areas in high frequency. In this patch a defer mechanism is introduced which is borrowed from page compaction to