Re: I can't find out the answer

From: Rik van Riel (riel@conectiva.com.br)
Date: Sat Apr 21 2001 - 10:31:32 EST


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 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.

> 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/ http://www.conectiva.com/ http://distro.conectiva.com.br/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 23 2001 - 21:00:39 EST