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

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

From: Hannes Eder <hidden>
Date: 2009-07-27 10:34:49
Also in: lkml

On Mon, Jul 27, 2009 at 11:25, Eric Dumazet[off-list ref] wrote:
Well, ip_vs_conn_cache uses SLAB_HWCACHE_ALIGN, so this should be rounded up
to L1 cache size. Or add "at least" like in line 1080
of net/netfilter/ipvs/ip_vs_conn.c :

IP_VS_DBG(0, "Each connection entry needs %Zd bytes at least\n",
          sizeof(struct ip_vs_conn));
Good point.  Is there an easy way to figure out how much memory is
wasted for alignment by the slab allocator?  Otherwise I vote for the
"at least" approach.

-Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help