lvs-users
|
To: | Eric Dumazet <eric.dumazet@xxxxxxxxx> |
---|---|
Subject: | Re: [lvs-users] [PATCH] IPVS: logging sizeof(struct ip_vs_conn) on startup |
Cc: | malcolm@xxxxxxxxxxxxxxxx, lvs-users@xxxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Simon Horman <horms@xxxxxxxxxxxx>, David Miller <davem@xxxxxxxxxxxxx> |
From: | Hannes Eder <heder@xxxxxxxxxx> |
Date: | Mon, 27 Jul 2009 12:34:42 +0200 |
On Mon, Jul 27, 2009 at 11:25, Eric Dumazet<eric.dumazet@xxxxxxxxx> 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 - lvs-users@xxxxxxxxxxxxxxxxxxxxxx Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx or go to http://lists.graemef.net/mailman/listinfo/lvs-users |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [lvs-users] [PATCH] IPVS: logging sizeof(struct ip_vs_conn) on startup, Eric Dumazet |
---|---|
Next by Date: | [lvs-users] [PATCH v2] IPVS: logging sizeof(struct ip_vs_conn) on startup, Hannes Eder |
Previous by Thread: | Re: [lvs-users] [PATCH] IPVS: logging sizeof(struct ip_vs_conn) on startup, Eric Dumazet |
Next by Thread: | [lvs-users] [PATCH v2] IPVS: logging sizeof(struct ip_vs_conn) on startup, Hannes Eder |
Indexes: | [Date] [Thread] [Top] [All Lists] |