From owner-freebsd-net@FreeBSD.ORG Tue Jan 8 12:47:10 2013 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8548F2B7; Tue, 8 Jan 2013 12:47:10 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from mail.tdx.com (mail.tdx.com [62.13.128.18]) by mx1.freebsd.org (Postfix) with ESMTP id 1296EEA5; Tue, 8 Jan 2013 12:47:09 +0000 (UTC) Received: from MightyAtom.tdx.co.uk (storm.tdx.co.uk [62.13.130.251]) (authenticated bits=0) by mail.tdx.com (8.14.3/8.14.3/) with ESMTP id r08ChBT2054352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Jan 2013 12:43:12 GMT Date: Tue, 08 Jan 2013 12:42:30 +0000 From: Karl Pielorz To: Gleb Smirnoff Subject: Re: Arp table size - any adjustments? Message-ID: <1AAC1452A561ABA2C6309047@MightyAtom.tdx.co.uk> In-Reply-To: <20121213113333.GT97487@FreeBSD.org> References: <523DE5571B5BE81B8BA1846F@MightyAtom.tdx.co.uk> <20121213113333.GT97487@FreeBSD.org> X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-net@FreeBSD.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2013 12:47:10 -0000 --On 13 December 2012 15:33 +0400 Gleb Smirnoff wrote: > Nope, there is no autotuning here yet. > > The hash table size is hardcoded in sys/net/if_llatbl.h. The name of > constant is LLTBL_HASHTBL_SIZE. Default is 32, which is even commented with "/* default 32 ? */" - I found another thread via Google which discussed upping this to 512 for a 'Generic Box' For a router that has 4k+ ARP entries, any recommendations? - e.g. 1024? / 2048? 2048 seems sensible considering the other thread recommended it should be 1/4 the table size (so, 4k entries in arp table = 2k hash?) or even 4k to cover expansion. -Karl