From: Hannes Eder <heder@google.com>
To: netdev@vger.kernel.org
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: lvs-users@linuxvirtualserver.org
Cc: malcolm@loadbalancer.org
Cc: linux-kernel@vger.kernel.org
Cc: Simon Horman <horms@verge.net.au>
Subject: [PATCH v2] IPVS: logging sizeof(struct ip_vs_conn) on startup
Date: Mon, 27 Jul 2009 15:13:57 +0200 [thread overview]
Message-ID: <20090727131357.9561.39720.stgit@jazzy.zrh.corp.google.com> (raw)
In-Reply-To: <b5ddba180907270334m4bc4e968m85c16ea4756c3f5d@mail.gmail.com>
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@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
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:
next prev parent reply other threads:[~2009-07-27 13:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-27 9:08 [PATCH] " 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 ` Hannes Eder [this message]
2009-07-27 18:48 ` [PATCH v2] " David Miller
2009-07-28 0:19 ` Simon Horman
2009-07-28 5:38 ` Eric Dumazet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090727131357.9561.39720.stgit@jazzy.zrh.corp.google.com \
--to=heder@google.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®