LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-07-2012, 03:01 AM   #1
demon007
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, 04:00 AM   #2
demon007
LQ Newbie
 
Registered: Sep 2011
Posts: 13

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

Rep: Reputation: 0
KSM

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

Petr
 
  


Reply

Tags
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 05:20 PM
LXer: This week at LWN: KSM runs into patent trouble LXer Syndicated Linux News 0 12-15-2008 12:50 AM
Can't open saved web pages just saved by web browser... JeanBrownHarrel General 2 04-06-2008 11:52 AM
How much memory will be saved if the x/gui is not started? chickenjoy Linux - Newbie 3 06-17-2007 11:02 PM


All times are GMT -5. The time now is 10:29 AM.

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