> > There are 3 programs (A, B ,C) to allocate 128M memory each using > KSM. > > > > A has memory content equal 'c'. > > B has memory content equal 'a'. > > C has memory content equal 'a'. > > > > Then (using the latest mmotm tree), > > pages_shared = 2 > > pages_sharing = 98292 > > pages_unshared = 0 > > So, after KSM has done its best, it all reduces to 1 page full of > 'a's and another 1 page full of 'c's. I would expect pages_sharing to be 98302 (128 * 256 - 2), but this one looks unstable. Increased pages_to_scan to 2 * 98304 did not help either. Thanks for the other suggestions! After modified the test accordingly, it looks like work as expected. CAI Qian -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>