diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-06-01 08:33:46 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-06-03 08:02:23 +0200 |
| commit | 89426f0e796f1ad0141d81987dfa3bf98a4a7ede (patch) | |
| tree | ed6b052c9104b87f980261552439c0ec345d3566 /cmake | |
| parent | 9056ba37925b7ecb4b5724633b1b288ed58951bd (diff) | |
| download | ouroboros-89426f0e796f1ad0141d81987dfa3bf98a4a7ede.tar.gz ouroboros-89426f0e796f1ad0141d81987dfa3bf98a4a7ede.zip | |
lib: Decouple rbuff size from RQ size
The rbuff size was at one point coupled to RQ size for debugging,
reverting.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/config/ssm.cmake | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/cmake/config/ssm.cmake b/cmake/config/ssm.cmake index 913396ec..26604f70 100644 --- a/cmake/config/ssm.cmake +++ b/cmake/config/ssm.cmake @@ -19,18 +19,8 @@ set(SSM_PK_BUFF_HEADSPACE 256 CACHE STRING "Bytes of headspace to reserve for future headers") set(SSM_PK_BUFF_TAILSPACE 32 CACHE STRING "Bytes of tailspace to reserve for future tails") -# Sized to absorb burst arrivals from fragmented SDUs without -# overflowing at the eth->FRCT boundary. Must hold at least one -# full FRCT reorder window plus margin for transient app-thread -# unavailability; 4x FRCT_REORDER_QUEUE_SIZE leaves comfortable -# burst headroom. Floor at 1024 for small RQ configs. -math(EXPR _SSM_RBUFF_DEFAULT "${FRCT_REORDER_QUEUE_SIZE} * 4") -if(_SSM_RBUFF_DEFAULT LESS 1024) - set(_SSM_RBUFF_DEFAULT 1024) -endif() -set(SSM_RBUFF_SIZE ${_SSM_RBUFF_DEFAULT} CACHE STRING - "Number of blocks in rbuff buffer, must be a power of 2") -unset(_SSM_RBUFF_DEFAULT) +set(SSM_RBUFF_SIZE 1024 CACHE STRING + "Number of slots in a flow's rbuff ring; must be a power of 2") set(SSM_RBUFF_PREFIX "/${SHM_PREFIX}.rbuff." CACHE INTERNAL "Prefix for rbuff POSIX shared memory filenames") set(SSM_FLOW_SET_PREFIX "/${SHM_PREFIX}.set." CACHE INTERNAL |
