I can't find out the answer
Hello,
I want to calculate the total memory usage of kernel. I wonder that we just need to add these(*1) in slabinfo or we need to add each line(*1 and *2) in slabinfo. Thanks. AND
I know the size of size-512 is 512 bytes, but I want to know the size of tcp_tw_bucket, tcp_open_request, etc. How can I find out this answer? Thanks a lot.
*1
size-131072 0 0 size-65536 0 0 size-32768 0 0
size-16384 11 11
size-8192 1 1
size-4096 8 12
size-2048 153 284
size-1024 20 688 size-512 54 64 size-256 51 70
size-128 396 600
size-64 942 1050
size-32 3964 7245
*2kmem_cache 30 42pio_request 0 0tcp_tw_bucket 5 126tcp_bind_bucket 45 127tcp_open_request 0 63
skbuff_head_cache 57 693 sock 94 132
dquot 0 0
filp 1677 1680signal_queue 0 29
kiobuf 0 0buffer_head 48636 60396mm_struct 61 93vm_area_struct 2081 2835dentry_cache 18304 19933files_cache 68 90uid_cache 10 127slab_cache 183 189
Quoted 10 lines · On Sat, 21 Apr 2001, gis88530 wrote:
I want to calculate the total memory usage of kernel. I wonder that we just need to add
these(*1)in slabinfo or we need to add eachline(*1 and *2)in slabinfo. Thanks. AND
I know the size of size-512 is 512 bytes, but I want to know the size oftcp_tw_bucket,tcp_open_request, etc. How can I find out this answer? Thanks a lot.size-4096 8 12
1) you want to use only the values from the second column
2) the sizes of the structures you want to know are somewhere in the kernel header files, grep should be able to find them
regards,
Rik
--
Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose...
http://www.surriel.com/