Gregoire Banderet wrote: > Hello, > > I have to report the amount of FreeMem on my embedded system. The rootfs > is in RAM. I use /proc/meminfo. > I started by doing : freemem = MemFree + Buffers + Cached > But I realized (tell me if I'm wrong) that my rootfs filesystems is > counted in "Cached". > Part of the memory in "Cached" can be allocated, so I should add it as > Free Memory, but part of it is my rootfs (i.e. really used). > How should I compute freemem ? What about sysconf(_SC_PAGESIZE) * sysconf(_SC_AVPHYS_PAGES)? -- Gilles. ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
- References:
- Free memory, include "cached"?
- From: Gregoire Banderet
- Free memory, include "cached"?
- Prev by Date: Re: Free memory, include "cached"?
- Next by Date: Converting portrait to landscape mode in SBC2440-I kit
- Previous by thread: Re: Free memory, include "cached"?
- Next by thread: Re: Free memory, include "cached"?
- Index(es):