Don't zero new blocks.
authorAndrew Gallatin <gallatin@google.com>
Fri, 6 Jun 2014 18:43:57 +0000 (11:43 -0700)
committerAndrew Gallatin <gallatin@google.com>
Mon, 9 Jun 2014 14:37:12 +0000 (07:37 -0700)
Avoid zeroing new blocks.  This has a real cost at 10GbE speeds

Signed-off-by: Andrew Gallatin <gallatin@google.com>
kern/src/ns/allocb.c

index cf4da6d..f179b28 100644 (file)
@@ -34,7 +34,7 @@ struct block *_allocb(int size)
        int n;
 
        /* TODO: verify we end up with properly aligned blocks */
-       b = kzmalloc(sizeof(struct block) + size + Hdrspc + (BLOCKALIGN - 1),
+       b = kmalloc(sizeof(struct block) + size + Hdrspc + (BLOCKALIGN - 1),
                                 KMALLOC_WAIT);
        if (b == NULL)
                return NULL;