Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-07-2012, 04:01 AM   #1
LQ Newbie
Registered: Sep 2011
Posts: 13

Rep: Reputation: Disabled
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.
Old 03-08-2012, 05:00 AM   #2
LQ Newbie
Registered: Sep 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Please someone help me with it.
Old 03-27-2012, 05:29 PM   #3
LQ Newbie
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0

Why you can't use top?
You can see RES and SHR fields and also can check cpu load of ksmd worker thread there.



memory management, merge

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor memory saved from KSM demon007 Programming 3 03-08-2012 06:20 PM
LXer: This week at LWN: KSM runs into patent trouble LXer Syndicated Linux News 0 12-15-2008 01:50 AM
Can't open saved web pages just saved by web browser... JeanBrownHarrel General 2 04-06-2008 12:52 PM
How much memory will be saved if the x/gui is not started? chickenjoy Linux - Newbie 3 06-18-2007 12:02 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration