Detecting a memory fragmentation problem in the process

What are the different mechanisms by which we can determine if a process leads to memory fragmentation?

Are there any tools for this? A recommendation for tools that work with "C" code and can work on Windows, Linux, and VxWorks will be helpful.

+7
c
source share
3 answers

As a suggestion, you can try Valgrind. I'm not sure what you are looking for, but it might come in handy.

http://valgrind.org/

+2
source share

In vxworks there is maxfreeblocksize if it keeps gettin lower and lower indicating it fragmented

+1
source share

In linux you can see the output:

cat /proc/buddyinfo 

It shows how many pages of this order are available. If very few higher-order pages are available, and mostly lower-order pages are available, this indicates that your system memory is quite fragmented. Find the "normal" entry.

See proc.txt

0
source share

All Articles