aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2020-05-06 16:52:18 +0300
committerPetri Savolainen <petri.savolainen@nokia.com>2020-05-15 15:46:07 +0300
commitb0cae1d35a2a78b194354ef93fa06e87bb8fba09 (patch)
treee4c8e5cb564c875fbda0187b8d09a3868ed1608d /config
parent16470588ca89f2f2d9c28a435a50c734fe62d0b0 (diff)
linux-gen: pool: implement cache size parameter
Implement new cache size parameters. Cache and burst sizes are now defined per pool. Cache size value from config file is used to initialize cache size parameters. Burst size value from config file is used, when cache size is larger than 2x burst size. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'config')
-rw-r--r--config/odp-linux-generic.conf6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf
index 6bc9753c3..ced837a29 100644
--- a/config/odp-linux-generic.conf
+++ b/config/odp-linux-generic.conf
@@ -58,14 +58,16 @@ shm: {
# Pool options
pool: {
- # Thread local cache size. Value must be a multiple of burst_size
+ # Default thread local cache size. Cache size in pool parameters is
+ # initialized to this value. Value must be a multiple of burst_size
# (min 2 x burst_size).
#
# The total maximum number of cached events is the number of threads
# using the pool multiplied with local_cache_size.
local_cache_size = 256
- # Transfer size between local cache and global pool.
+ # Transfer size between local cache and global pool. Must be larger
+ # than zero.
burst_size = 32
# Packet pool options