diff options
author | Matias Elo <matias.elo@nokia.com> | 2023-01-13 16:23:30 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2023-01-24 16:51:25 +0200 |
commit | 8aee6094ef983d1f537d738b8a87186fb61e7cdd (patch) | |
tree | fe16db988255a5dcb8717605107f2c8891091019 /config | |
parent | 02496026906cb05b5955e7bf1ab5bb82849bcd2f (diff) |
linux-gen: stash: reserve all memory from a single shm block
Use one common SHM block for all stash memory. This enables creating a
large number of stashes without hitting the SHM block count limit, for the
cost of having to pre-reserve the memory during global init.
The amount of required memory can be adjusted with new configuration file
options:
- stash:max_num: maximum number of stashes
- stash:max_num_obj: maximum number of objects in a stash
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/odp-linux-generic.conf | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf index 814035d61..3cb862ee4 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.23" +config_file_version = "0.1.24" # System options system: { @@ -245,6 +245,17 @@ sched_basic: { order_stash_size = 512 } +stash: { + # Maximum number of stashes + max_num = 512 + + # Maximum number of objects in a stash + # + # The value may be rounded up by the implementation. For optimal memory + # usage set value to a power of two - 1. + max_num_obj = 4095 +} + timer: { # Use inline timer implementation # |