git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e76d7a7
)
mempool: use a better default for number of memory channels
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 15 Oct 2015 11:49:04 +0000
(14:49 +0300)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/lib/librte_mempool/rte_mempool.c
b/lib/librte_mempool/rte_mempool.c
index
8e185c5
..
e57cbbd
100644
(file)
--- a/
lib/librte_mempool/rte_mempool.c
+++ b/
lib/librte_mempool/rte_mempool.c
@@
-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)