FreeBSD 7.0: dummynet 99% cpu
Sergey Matveyhcuk
sem at FreeBSD.org
Fri Mar 20 02:15:48 PDT 2009
Could you test an included patch?
Eugene L Kovalenja wrote:
>
> Time in three days traffic via ipfw doesn't go. In top:
> 21 root 1 -44 - 0K 8K WAIT 7 2:15 99.02% dummynet
> (this is example, not copy\paste)
>
> Also sw1: net increases from 5-10% to 30-35%...
>
> I am helped only by reboot.
>
> In what can consist the problem?
>
-------------- next part --------------
--- sys/netinet/ip_dummynet.c.orig 2009-03-20 12:08:47.000000000 +0300
+++ sys/netinet/ip_dummynet.c 2009-03-20 12:09:31.000000000 +0300
@@ -145,8 +145,8 @@
static void ready_event_wfq(struct dn_pipe *p, struct mbuf **head,
struct mbuf **tail);
-#define HASHSIZE 16
-#define HASH(num) ((((num) >> 8) ^ ((num) >> 4) ^ (num)) & 0x0f)
+#define HASHSIZE 255
+#define HASH(num) ((((num) >> 8) ^ ((num) >> 4) ^ (num)) & 0xff)
static struct dn_pipe_head pipehash[HASHSIZE]; /* all pipes */
static struct dn_flow_set_head flowsethash[HASHSIZE]; /* all flowsets */
More information about the freebsd-ipfw
mailing list