On Mon, Jul 27, 2009 at 11:25, Eric Dumazet<[email protected]> 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 _______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - [email protected] Send requests to [email protected] or go to http://lists.graemef.net/mailman/listinfo/lvs-users
