Memory Leak?
My Pi runs with the following command in the crontab file
0 0 * * * sh memtest >>stats/memavail
Which means "check and record free RAM every midnight" and where memtest contains:
date "+%D %R"
grep MemFree </proc/meminfo
And here's the memavail data since 9/11:
09/11/13 00:00
MemFree: 206572 kB
09/12/13 00:00
MemFree: 199620 kB
09/13/13 00:00
MemFree: 194668 kB
09/14/13 00:00
MemFree: 191468 kB
09/15/13 00:00
MemFree: 381268 kB
09/16/13 00:00
MemFree: 82852 kB
09/17/13 00:00
MemFree: 15280 kB
09/18/13 00:00
MemFree: 15536 kB
09/19/13 00:00
MemFree: 16552 kB
09/20/13 00:00
MemFree: 368384 kB (after reboot)
09/21/13 00:00
MemFree: 182220 kB
09/22/13 00:00
MemFree: 174812 kB
09/23/13 00:00
MemFree: 170820 kB
09/24/13 00:00
MemFree: 168828 kB
09/25/13 00:00
MemFree: 167620 kB
09/26/13 00:00
MemFree: 166388 kB
09/27/13 00:00
MemFree: 164620 kB
09/28/13 00:00
MemFree: 164124 kB
09/29/13 00:00
MemFree: 163124 kB
So, does the free RAM just diminish until nothing will run? Or will there be a miracle garbage collection when things get tight? My little shell file (memtest) could also force a reboot when memfree got below an arbitrary value. But is it necessary?
Anyone know?
No comments:
Post a Comment