From patchwork Mon Jul 27 13:13:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hannes Eder X-Patchwork-Id: 30261 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id CCB14B6F20 for ; Mon, 27 Jul 2009 23:16:09 +1000 (EST) Received: by ozlabs.org (Postfix) id BC4F2DDD04; Mon, 27 Jul 2009 23:16:09 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 46C8EDDD01 for ; Mon, 27 Jul 2009 23:16:09 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753963AbZG0NPx (ORCPT ); Mon, 27 Jul 2009 09:15:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753749AbZG0NPw (ORCPT ); Mon, 27 Jul 2009 09:15:52 -0400 Received: from smtp-out.google.com ([216.239.33.17]:31877 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752847AbZG0NPv (ORCPT ); Mon, 27 Jul 2009 09:15:51 -0400 Received: from spaceape14.eur.corp.google.com (spaceape14.eur.corp.google.com [172.28.16.148]) by smtp-out.google.com with ESMTP id n6RDFUaR000587; Mon, 27 Jul 2009 14:15:30 +0100 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1248700532; bh=i40cZ3Kb1H5HzDANtdBRQAsCyzY=; h=DomainKey-Signature:Subject:From:Date:Message-ID:User-Agent: MIME-Version:Content-Type:Content-Transfer-Encoding:To:Cc:Cc:Cc:Cc: Cc:References:In-Reply-To; b=AXUeJUQlAdduJDfTd+cHJ8CoTQtPQzk3xIVOY A7Fq1GbIKVCLJ7eG6CXt2cxLoN9myFcNcx5ifqNBQiffPhWCA== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=subject:from:date:message-id:user-agent:mime-version: content-type:content-transfer-encoding:to:cc:cc:cc:cc:cc:references:in-reply-to; b=iAiLrNnGxtG+0+ph3HhpGtwhw6qUzyiy0fnrdNdq2Za3fpnsbrBMQXPy47rF6y67R d8sZjekGXd57SJ4JVW7Fw== Received: from localhost (jazzy.zrh.corp.google.com [172.16.74.150]) by spaceape14.eur.corp.google.com with ESMTP id n6RDFNi5016186; Mon, 27 Jul 2009 06:15:23 -0700 Received: by localhost (Postfix, from userid 95149) id 166F3EA6B5; Mon, 27 Jul 2009 15:15:23 +0200 (CEST) Subject: [PATCH v2] IPVS: logging sizeof(struct ip_vs_conn) on startup From: Hannes Eder Date: Mon, 27 Jul 2009 15:13:57 +0200 Message-ID: <20090727131357.9561.39720.stgit@jazzy.zrh.corp.google.com> User-Agent: StGit/0.14.3.366.gf979 MIME-Version: 1.0 To: netdev@vger.kernel.org Cc: Eric Dumazet Cc: lvs-users@linuxvirtualserver.org Cc: malcolm@loadbalancer.org Cc: linux-kernel@vger.kernel.org Cc: Simon Horman References: <20090727090741.16509.35291.stgit@jazzy.zrh.corp.google.com> <4A6D7285.9080909@gmail.com> In-Reply-To: Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 Signed-off-by: Simon Horman net/netfilter/ipvs/ip_vs_core.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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: