LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] [PATCH v2] IPVS: logging sizeof(struct ip_vs_conn) on startu

To: netdev@xxxxxxxxxxxxxxx
Subject: [lvs-users] [PATCH v2] IPVS: logging sizeof(struct ip_vs_conn) on startup
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx, Simon Horman <horms@xxxxxxxxxxxx>, malcolm@xxxxxxxxxxxxxxxx, Eric Dumazet <eric.dumazet@xxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx
From: Hannes Eder <heder@xxxxxxxxxx>
Date: Mon, 27 Jul 2009 15:13:57 +0200
No more guessing, how much memory used by IPVS for a connection.

[ The number printed is a lower bound, as ip_vs_conn_cache uses
SLAB_HWCACHE_ALIGN. ]

Signed-off-by: Hannes Eder <heder@xxxxxxxxxx>
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>

 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..b6bb4a0 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 at least %Zd bytes/connection).\n",
+              sizeof(struct ip_vs_conn));
        return ret;
 
   cleanup_conn:


_______________________________________________
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>