From owner-freebsd-ipfw@FreeBSD.ORG Wed Mar 10 14:58:15 2010 Return-Path: Delivered-To: freebsd-ipfw@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C41251065674 for ; Wed, 10 Mar 2010 14:58:15 +0000 (UTC) (envelope-from andrey.kropachev@gmail.com) Received: from mx.kirovnet.ru (taurus.kirovnet.ru [92.39.64.230]) by mx1.freebsd.org (Postfix) with ESMTP id 7DD238FC2D for ; Wed, 10 Mar 2010 14:58:15 +0000 (UTC) Received: from [192.168.2.68] by mx.kirovnet.ru with esmtp (Exim 4.69) (envelope-from ) id 1NpMjQ-0001JG-C2 for freebsd-ipfw@FreeBSD.ORG; Wed, 10 Mar 2010 17:17:53 +0300 Message-ID: <4B97AA08.6010102@gmail.com> Date: Wed, 10 Mar 2010 17:17:44 +0300 From: Andrey Kropachev User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: freebsd-ipfw@FreeBSD.ORG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Dummynet tuning X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrey.kropachev@gmail.com List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 14:58:15 -0000 Hi, I'm trying to tune dummynet to shape a lot of traffic. I saw some opinions that the following patch will improve dummynet performance: in /sys/netinet/ipfw/ip_dummynet.c -#define HASHSIZE 16 -#define HASH(num) ((((num) >> 8) ^ ((num) >> 4) ^ (num)) & 0x0f) +#define HASHSIZE 256 +#define HASH(num) ((((num) >> 8) ^ ((num) >> 4) ^ (num)) & 0xff) The question is: will it increase dummynet performance? What will it actually do internally (luigi, question for you :) ? Best regards, Andrey Kropachev