Dummynet tuning
Andrey Kropachev
andrey.kropachev at gmail.com
Wed Mar 10 14:58:15 UTC 2010
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
More information about the freebsd-ipfw
mailing list