Memory saved by KSM
I am using madvise() in my program to mark the allocated memory as mergeable. In the KSM, I can see that pages are getting merged.
My problem is that I am not able to monitor the actual memory being saved from the top command.
Is there a way to monitor the memory saved by using KSM and the overheads of using KSM.
Please help me. I really need it.
Thank you in advance.