Thread (8 messages) 8 messages, 4 authors, 2009-07-28

Re: [PATCH v2] IPVS: logging sizeof(struct ip_vs_conn) on startup

From: Eric Dumazet <hidden>
Date: 2009-07-28 05:39:10
Also in: lkml

Simon Horman a écrit :
Surprisingly its a very common question amongst users,
because they want to know how much memory they need.
It is of course all a bit silly, because the amount of
memory used by the connection table is usually very small,
but people still ask.
If SLUB is used 

$ cat /sys/kernel/slab/ip_vs_conn/object_size

If SLAB is used, take fourth column of :

$ grep ip_vs_conn /proc/slabinfo

BTW these take into account L1 cache size alignment
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help