Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2010 17:17:44 +0300
From:      Andrey Kropachev <andrey.kropachev@gmail.com>
To:        freebsd-ipfw@FreeBSD.ORG
Subject:   Dummynet tuning
Message-ID:  <4B97AA08.6010102@gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B97AA08.6010102>