LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Testing the efficiency of the memory system part of linux (https://www.linuxquestions.org/questions/linux-newbie-8/testing-the-efficiency-of-the-memory-system-part-of-linux-806458/)

paragdas31s 05-07-2010 05:00 AM

Testing the efficiency of the memory system part of linux
 
I have applied a patch in linux kernel version-2.6.31(fedora core 12)source code.
Now I want to check whether the performance of the memory management part has been enhanced. So how to test the efficiency of this new modified code?
Plz help me out!!!!

ajeetsinghraina 05-07-2010 05:48 AM

I would recommend you to start with these tools:

vmstat => Monitor virtual memory
free Display amount of free and used memory in the system.

pmap => Display/examine memory map and libraries (so).
Usage: pmap pid

top Show top processes

sar -B Show statistics on page swapping.

time -v date Show system page size, page faults, etc of a process during execution.
Note you must fully qualify the command as "/usr/bin/time" to avoid using the bash shell command "time".

cat /proc/sys/vm/freepages Display virtual memory "free pages".

One may increase/decrease this limit: echo 300 400 500 > /proc/sys/vm/freepages

cat /proc/meminfo Show memory size and usage.


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