Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751150Ab2EZERz (ORCPT ); Sat, 26 May 2012 00:17:55 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:36974 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960Ab2EZERy (ORCPT ); Sat, 26 May 2012 00:17:54 -0400 Subject: Re: [PATCH] net: compute a more reasonable default ip6_rt_max_size From: Eric Dumazet To: Arun Sharma Cc: David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1338003580.10135.6.camel@edumazet-glaptop> References: <4FC0063E.8080209@fb.com> <20120525.185131.2017517041016424794.davem@davemloft.net> <4FC01F1B.1080009@fb.com> <20120525.201150.1782581593120395710.davem@davemloft.net> <4FC02777.5070003@fb.com> <1338003580.10135.6.camel@edumazet-glaptop> Content-Type: text/plain; charset="UTF-8" Date: Sat, 26 May 2012 06:17:47 +0200 Message-ID: <1338005867.10135.10.camel@edumazet-glaptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 759 Lines: 28 On Sat, 2012-05-26 at 05:39 +0200, Eric Dumazet wrote: > But your patch is not a "modest increase", so whats the deal ? > > A modest increase would be 8192 instead of 4096, regardless of RAM size. > > More over, a boot parameter to tweak it is absolutely not needed sysctl -w net.ipv6.route.max_size=16384 or echo 16384 >/proc/sys/net/ipv6/route/max_size IPv4 has to allocate a hash table at boot time, and this hash table is not resized. Thus some really special purpose machines need a boot param. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/