Dynamic lib loading & memory question
Jeff Angielski
jangiels at speakeasy.net
Fri Jun 25 09:28:44 EST 2004
On Thu, 2004-06-24 at 17:58, Smith, Craig wrote:
> Memory: 14112k available (1564k kernel code, 436k data, 68k init, 0k
> highmem)
<snip>
> ########################################
> root at raptorlinux->~ [2] cat /proc/meminfo
> total: used: free: shared: buffers: cached:
> Mem: 14520320 4505600 10014720 0 0 2531328
> Swap: 0 0 0
> MemTotal: 14180 kB
> MemFree: 9780 kB
> MemShared: 0 kB
> Buffers: 0 kB
> Cached: 2472 kB
> SwapCached: 0 kB
> Active: 1088 kB
> Inactive: 1792 kB
> HighTotal: 0 kB
> HighFree: 0 kB
> LowTotal: 14180 kB
> LowFree: 9780 kB
> SwapTotal: 0 kB
> SwapFree: 0 kB
>
> Question: Why the total (and "available" value at startup) indicates
> ~14M...why doesn't it say 16M (and what is the ~2.5M "cached" value). Thanks
> again in advance.
The memory line from the boot sequence tells you why total is not 16MB.
The kernel is already using it... :)
You can find the answer to your cached question if you look at the code
from fs/proc/proc_misc.c
Jeff Angielski
The PTR Group
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list