From owner-freebsd-net Mon Jul 22 16:38:50 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03F3137B401; Mon, 22 Jul 2002 16:38:43 -0700 (PDT) Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF65943E6E; Mon, 22 Jul 2002 16:37:14 -0700 (PDT) (envelope-from rizzo@iguana.icir.org) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g6MNaUO70719; Mon, 22 Jul 2002 16:36:30 -0700 (PDT) (envelope-from rizzo) Date: Mon, 22 Jul 2002 16:36:30 -0700 From: Luigi Rizzo To: Sean Chittenden Cc: ipfw@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: Increasing the hash table size for dummynet... Message-ID: <20020722163630.A70574@iguana.icir.org> References: <20020722224221.GJ88755@ninja1.internal> <20020722224653.GL88755@ninja1.internal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020722224653.GL88755@ninja1.internal>; from sean@chittenden.org on Mon, Jul 22, 2002 at 03:46:53PM -0700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Jul 22, 2002 at 03:46:53PM -0700, Sean Chittenden wrote: > > [Sorry for the cross post: I don't know where the dummynet guru's live] > > > > I have a situation where I'm rate shaping a LARGE number of > > concurrent TCP connections, however I've run into a slight > > problem/limitation: dummynet has a max hash table size of 1024 and I'm > > currently handling about 8-17K in TCP connections in a single queue. > > :-/ I quickly looked over the hash algorithm and couldn't see any > > reason why the max size couldn't be increased beyond 1024. Could > > someone comment on the attached? -sc the only thing to verify is that the hash function distributes the sessions well among the available slots. I have not looked too carefully at it, actually if you can provide (privately) the output of "ipfw pipe show" that would be an interesting data set. We are using hash tables with IP addresses in 4 places: dummynet pipes, ipfw dynamic rules, ip_flow.c and libalias. cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message