Re: Memory usage analysis

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 31/03/2010, Anand Raj Manickam <anandrm@xxxxxxxxx> wrote:

> slabtop -s c , shows the total slabs used etc

> 12736  12078  94%    0.48K   1592        8      6368K ext3_inode_cache
>  80601  79231  98%    0.05K   1203       67      4812K buffer_head
>  10686  10176  95%    0.28K    822       13      3288K radix_tree_node
>   1342   1336  99%    2.00K    671        2      2684K size-2048
>  <snip>
>
> # free              total       used       free     shared    buffers  cached
> Mem:        508612     490768      17844          0      30664     367372

> Using these tools i m able to account roughly around
>
> 100 MB of user space data
> 20 MB of kernel space (slab allocs)
> The total memory is around 512MB  out of which i m able to account only for
> 120MB of memory .
>
> Can someone shed some light this ?

I might be wrong here, but it looks like your calculation missed out
buffers and cached usage.

Your 120MB accounted + 388.70 (cached + buffers) = 508MB approx.

But you did paste some output regarding ext3 inode and buffer slabs..
I'm not sure if SLAB is used for storing buffers and cache data -
maybe it's just metadata that is stored in SLAB?

(i'm stabbing in the dark - my kernel book is not with me)

Hopefully someone else will be able to give you a conclusive answer.

Regards,
Srdjan

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux