I have a large Fortran code in which I have edited the main routine to run multiple times in a loop.
I see the program memory growing as the loop runs, and am trying to track down where the memory is being leaked. (I have used massif, but it didn't help)
I am now attempting to monitor the memory use with reads of the /proc/'pid'/status file and examining vmRSS and vmSIZE.
My question is, as the loop runs multiple times the memory used grows at different points within the loop - despite the fact that the loop does the same thing each time.
So is there a delay in the reporting of memory use in the status file, and if so how would I go about tracking down where the memory is being allocated in this way.