Memory Usage on Linux
Hi,
I am Using /proc/meminfo to get the memory as Used Memory, Used Memory, Total Memory, shared buffers, cached 6438912 6152192 286720 0 32768 1413120 1. Here As we are using 8 MB of SDRAM Only 6.1 MB is shown in the above list what about other remaining 1.9 MB where it is being used. 2. My Application when it is loaded the proc/meminfo says it took 2.5 MB but in the objdump of my application bss+txt+data is 1.7 MB where is the remaining .8 MB used.(till that time even my application is not initialized it is only loaded into SDRAM). Please clarify my questions. Thanks in Advance L.Chand |
(1) Unfreeable memory used by the kernel and reserved for I/O operations is not reported in /proc/meminfo AFAIK.
(2) Probably the extra .8 MB comes from runtime allocations on the stack and on the heap. |
Quote:
Code:
total: used: free: shared: buffers: cached: 1048576 - 1031552 = 17024kB, which is the kernel memory usage, I assume. Am I right about that? |
All times are GMT -5. The time now is 09:23 PM. |