diff options
author | Matias Elo <matias.elo@nokia.com> | 2019-04-09 11:22:57 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2019-04-15 10:32:36 +0300 |
commit | 5fd772d236db2059935d12ab27fcbf1f50d10591 (patch) | |
tree | 08cb219f33c43298e8e8174316c84c382e9a6290 /config | |
parent | 0b9d1e85d1f4d9b98c88c4d34fb26bc801556210 (diff) |
linux-gen: pool: enable setting local cache and burst size using config
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/odp-linux-generic.conf | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf index e00e4a518..fcc5d75aa 100644 --- a/config/odp-linux-generic.conf +++ b/config/odp-linux-generic.conf @@ -16,7 +16,7 @@ # Mandatory fields odp_implementation = "linux-generic" -config_file_version = "0.1.6" +config_file_version = "0.1.7" # Shared memory options shm: { @@ -45,6 +45,16 @@ shm: { # Pool options pool: { + # Thread local cache size. 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. + burst_size = 32 + # Packet pool options pkt: { # Maximum number of packets per pool. Power of two minus one |