Hi,
we are using a Jetson Tegra TK1 board to develop a SW using the GPU’s power. We use CUDA 6.5 version on a 14.04 LTS Ubuntu O.S.
During our developing we have discovered a little increasing of the usage memory, although we made no dynamic allocation (we only call cudaMalloc at the start of the program).
We print CUDA memory as follow:
void printMemStats()
{
size_t free = 0;
size_t total = 0;
float free_f = 0;
float total_f = 0;
float alloced_f = 0;
cudaMemGetInfo(&free, &total);
free_f = free;
total_f = total;
alloced_f = total_f - free_f;
printf("\nMemory stats:\n");
printf("\tfree %.0f bytes %.0fkB %.0fMB\n", free_f, free_f / 1024.0f,
free_f / 1024.0f / 1024.0f);
printf("\ttotal %.0f bytes %.0fkB %.0fMB\n", total_f, total_f / 1024.0f,
total_f / 1024.0f / 1024.0f);
printf("\tallocated (total - free) %.0f bytes %.0fkB %.0fMB\n",
alloced_f, alloced_f / 1024.0f,
alloced_f / 1024.0f / 1024.0f);
printf("\n");
}
So, we wrote a test program that print the memory stats every hour, with no processing at all. We went ahead with test during all the weekend (about 70 hours).
Below you can find the test result’s log.
As you can see, the allocated memory has increased (very small increase but there is) although the test program was the only process running at the moment (except for the O.S processes).
Do you have any clues about this? Is this a know “issue” on the TK1 boards?
Thank you in advance, best regards
Emanuele
Memory stats:
free 1950515200 bytes 1904800kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162598912 bytes 158788kB 155MB
Memory stats:
free 1951436800 bytes 1905700kB 1861MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 161677312 bytes 157888kB 154MB
Memory stats:
free 1951301632 bytes 1905568kB 1861MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 161812480 bytes 158020kB 154MB
Memory stats:
free 1951166464 bytes 1905436kB 1861MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 161947648 bytes 158152kB 154MB
Memory stats:
free 1950515200 bytes 1904800kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162598912 bytes 158788kB 155MB
Memory stats:
free 1950531584 bytes 1904816kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162582528 bytes 158772kB 155MB
Memory stats:
free 1950277632 bytes 1904568kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162836480 bytes 159020kB 155MB
Memory stats:
free 1950277632 bytes 1904568kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162836480 bytes 159020kB 155MB
Memory stats:
free 1950277632 bytes 1904568kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162836480 bytes 159020kB 155MB
Memory stats:
free 1950277632 bytes 1904568kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162836480 bytes 159020kB 155MB
Memory stats:
free 1950150656 bytes 1904444kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162963456 bytes 159144kB 155MB
Memory stats:
free 1950277632 bytes 1904568kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162836480 bytes 159020kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950294016 bytes 1904584kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162820096 bytes 159004kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950167040 bytes 1904460kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 162947072 bytes 159128kB 155MB
Memory stats:
free 1950040064 bytes 1904336kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 163074048 bytes 159252kB 156MB
Memory stats:
free 1950040064 bytes 1904336kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 163074048 bytes 159252kB 156MB
Memory stats:
free 1950040064 bytes 1904336kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 163074048 bytes 159252kB 156MB
Memory stats:
free 1950040064 bytes 1904336kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 163074048 bytes 159252kB 156MB
Memory stats:
free 1950040064 bytes 1904336kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 163074048 bytes 159252kB 156MB
Memory stats:
free 1950040064 bytes 1904336kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 163074048 bytes 159252kB 156MB
Memory stats:
free 1950040064 bytes 1904336kB 1860MB
total 2113114112 bytes 2063588kB 2015MB
allocated (total - free) 163074048 bytes 159252kB 156MB