I'm trying to confirm that there is a memory leak on my Linux device while in idle state (there should be no continuous memory consumption). I'm not interested in identifying the process that is causing the leak but just to conclude the memory is leaking.
I'm using top
as the diagnostic tool. Example of memory fields from top:
Mem: 118616k total, 83980k used, 34636k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 24140k cached
I can see the value of free
continuously dropping, however, the value of cached
constantly increasing.
To confirm that there is a memory leak, the sum free+cached
should be continuously dropping as opposed to just free
decreasing (in which case the kernel could just be using free memory for caching)?