mempool: use a better default for number of memory channels
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 15 Oct 2015 11:49:04 +0000 (14:49 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 26 Oct 2015 16:43:40 +0000 (17:43 +0100)
Optimize for quad-channel by default, this should work well for
all the cases, better than the previous value of one anyway.

Suggested-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_mempool/rte_mempool.c

index 8e185c5..e57cbbd 100644 (file)
@@ -113,7 +113,7 @@ static unsigned optimize_object_size(unsigned obj_size)
        /* get number of channels */
        nchan = rte_memory_get_nchannel();
        if (nchan == 0)
-               nchan = 1;
+               nchan = 4;
 
        nrank = rte_memory_get_nrank();
        if (nrank == 0)