netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IPVS: logging sizeof(struct ip_vs_conn) on startup
@ 2009-07-27  9:08 Hannes Eder
  2009-07-27  9:22 ` Simon Horman
  2009-07-27  9:25 ` Eric Dumazet
  0 siblings, 2 replies; 8+ messages in thread
From: Hannes Eder @ 2009-07-27  9:08 UTC (permalink / raw)
  To: netdev; +Cc: lvs-users, malcolm, linux-kernel

No more guessing, how much memory is used by IPVS for a connection.

Signed-off-by: Hannes Eder <heder@google.com>
---
 net/netfilter/ipvs/ip_vs_core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
index b021464..5b0997c 100644
--- a/net/netfilter/ipvs/ip_vs_core.c
+++ b/net/netfilter/ipvs/ip_vs_core.c
@@ -1475,7 +1475,8 @@ static int __init ip_vs_init(void)
 		goto cleanup_conn;
 	}
 
-	IP_VS_INFO("ipvs loaded.\n");
+	IP_VS_INFO("ipvs loaded (using %Zd bytes/connection).\n",
+	       sizeof(struct ip_vs_conn));
 	return ret;
 
   cleanup_conn:


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-07-28  5:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-27  9:08 [PATCH] IPVS: logging sizeof(struct ip_vs_conn) on startup Hannes Eder
2009-07-27  9:22 ` Simon Horman
2009-07-27  9:25 ` Eric Dumazet
2009-07-27 10:34   ` Hannes Eder
2009-07-27 13:13     ` [PATCH v2] " Hannes Eder
2009-07-27 18:48       ` David Miller
2009-07-28  0:19         ` Simon Horman
2009-07-28  5:38           ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).