Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2088598rwl; Thu, 13 Apr 2023 01:13:01 -0700 (PDT) X-Google-Smtp-Source: AKy350ZQJki6ZyyICkTGnjtOOylof3DbeQrNjZn7OW9ULcscNFAYoICJUc3wLIeVbeJcD7uv1i3w X-Received: by 2002:a17:906:f90:b0:8b1:7ae8:ba6f with SMTP id q16-20020a1709060f9000b008b17ae8ba6fmr1751459ejj.16.1681373581240; Thu, 13 Apr 2023 01:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681373581; cv=none; d=google.com; s=arc-20160816; b=cp4hiE62dZ/i6f7n+syOfXhkxB6BTR9VG1ERT1aKSrfqEnUJVqGLdMhSvWTNmDZPq+ tNcRg9vobbokSg93Yy3N24pBWLGcksG6IIiVSAGEIgbX5LlRE4KHmpcQ7jT1/O6HbUtU 5LUKGMiB652ijRulY6B7oVyQ2MvnZCJICqlC/0uQl1nYAPiWU9taXkk1/bKQ6p4rG7MX wt2lDVfmDdpD8Wx9284/dUP8cg4NpUuVDpiyvFbswGbp8BaFXoleabRisdljst/JDbMS tKckQjhZ1dzsnIey9AslDz9NM3sF62NA2GrroGRXw9vDffT9Jt868JQ/D5O8I0b7rAma ovqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rf/ZEAIM3idecH0hIvG+q/EizclCnG+J373a9jz0r+c=; b=PbLRfJ2Bpg1g5Yt/p7d39NIqvH9J3KH4R+B6n33s7r+WJKYvaq0SlMvVTKTtz3QeyP etD03TA/+W2rG0+0PJP9w/gElXq2iFvUU6TlpNPI/4rohQchBAyTzjxfp0f7HIPYywxN b3C+01/d2nRf6z+pnukPfPaFUEs7zKHEUuwROf6RCJvmY7V+96XHMf/Ah3BURsyKtWOC Zq+sxkH3Sg5dS0cwghB4kwJRf/zj/zrf3dM4CPDYgBxHd7dKTwXkDgJIv/sx2sxA5EbC pnsZUa8JVOjIges5Bis8NlJnquwYQGQ6BzCxdlZ7Khjzk+h2o7knxDtc+8TZgjkAXwBS 741Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NrVGILoJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h24-20020a50ed98000000b00504ab0c5b80si1102581edr.624.2023.04.13.01.12.35; Thu, 13 Apr 2023 01:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NrVGILoJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230309AbjDMIKI (ORCPT + 99 others); Thu, 13 Apr 2023 04:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbjDMIKG (ORCPT ); Thu, 13 Apr 2023 04:10:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 365421BE1; Thu, 13 Apr 2023 01:10:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C66B8614D6; Thu, 13 Apr 2023 08:10:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2230C433D2; Thu, 13 Apr 2023 08:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681373403; bh=lMClDkMrgqgkJYaMUUXc7/mL4pKlD3f/q5HMOfhzsoY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NrVGILoJGNuSkcJ8ebmZ3OaXsNtuRgD3ADdYmEXq1EBGMsJ8MgbgrrQT+xre30wWb sLxhmaVhLtSwCK34+4lPwOqkS+Q24SHaab5F75XpgDWl+B59vSlwa10JebA+mY3Znm 61p+mQ0wc9P+xmyBuJKVqPbWOJxxRNHL2mJ3avIG5TQApSy7ldImysGlgb7BJNgApn Czikowyvobhpnxr0ep/w8fyH8Mvyg7d6uN51pTRchBawYK/slaTNkAzgYC62bS8vX2 aG4s6z1K+YkNrZdtVay8HqRzIps2JMGrYCzeTxICQp5KdczeOAWt2r7TdKAFN84DsC KoxLFMjhj9M2w== Date: Thu, 13 Apr 2023 10:09:56 +0200 From: Simon Horman To: Abhijeet Rastogi Cc: Simon Horman , Julian Anastasov , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ipvs: change ip_vs_conn_tab_bits range to [8,31] Message-ID: References: <20230412-increase_ipvs_conn_tab_bits-v1-1-60a4f9f4c8f2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230412-increase_ipvs_conn_tab_bits-v1-1-60a4f9f4c8f2@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 12, 2023 at 01:49:08PM -0700, Abhijeet Rastogi via B4 Relay wrote: > From: Abhijeet Rastogi > > Current range [8, 20] is set purely due to historical reasons > because at the time, ~1M (2^20) was considered sufficient. > > Previous change regarding this limit is here. > > Link: https://lore.kernel.org/all/86eabeb9dd62aebf1e2533926fdd13fed48bab1f.1631289960.git.aclaudi@redhat.com/T/#u > > Signed-off-by: Abhijeet Rastogi > --- Hi Abhijeet, > The conversation for this started at: > > https://www.spinics.net/lists/netfilter/msg60995.html 'The 20 bit (1m entries) ceiling exists since the original merge of ipvs in 2003, so likely this was just considered "big enough" back then.' Yes, that matches my recollection. There were probably also concerns about the viability of making larger allocations at the time on the kinds of systems where IPVS would be deployed. On the allocation theme, I do note that 2^31 does lead to a substantial vmalloc allocation regardless of actual usage. Probably it would be best to move IPVS to use rhashtable(). But that is obviously a much more invasive change. In any case, I think this patch is an improvement on the current situation. Acked-by: Simon Horman > > The upper limit for algo is any bit size less than 32, so this > change will allow us to set bit size > 20. Today, it is common to have > RAM available to handle greater than 2^20 connections per-host. > > Distros like RHEL already have higher limits set. ...