From: Alexandre P. N. <al...@om...> - 2007-03-14 01:41:52
|
Dave Hylands wrote: > [cut] > > I think that df will show you how much RAM is being used. > > df -h /tmp shows 0 bytes, even tough there are 600k in use... but du -h /tmp seems to get close enough... > The kernel also uses what it can as cache. The cache portion will get > released if memory is low. > > cat /proc/meminfo > > will show you how much is being used in the cache. > > Good point, the "normal" free comand shows the cache/buffer statistics, but the simplified busybox one doesn't. There's also an "inactive" memory pool (grep ^Inactive /proc/meminfo), IIRC that's not accounted as cache but is memory that can be freed almost immediately, if needed. The damn thing could be a bit simpler. - Alexandre |