Skip to content

Commit

Permalink
change default message size threshold fro SHM
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowhatter committed Feb 4, 2025
1 parent 6165770 commit 30a00fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/zenoh_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static const bool zenoh_shm_enabled_default = true;
static const char * zenoh_shm_alloc_size_envar = "ZENOH_SHM_ALLOC_SIZE";
static const size_t zenoh_shm_alloc_size_default = 16 * 1024 * 1024;
static const char * zenoh_shm_message_size_threshold_envar = "ZENOH_SHM_MESSAGE_SIZE_THRESHOLD";
static const size_t zenoh_shm_message_size_threshold_default = 2 * 1024;
static const size_t zenoh_shm_message_size_threshold_default = 512;

std::optional<zenoh::Config> _get_z_config(
const char * envar_name,
Expand Down
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/zenoh_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ size_t zenoh_shm_alloc_size();
/// variable ZENOH_SHM_MESSAGE_SIZE_THRESHOLD.
/// Messages smaller than this threshold will not be forwarded through Zenoh SHM
/// @details The behavior is as follows:
/// - If not set or <= 0, the default value of 2KB is returned.
/// - If not set or <= 0, the default value of 512B is returned.
/// - Else value of environemnt variable is returned.
/// @return The amount of shared memory to be pre-allocated for Zenoh SHM operation
size_t zenoh_shm_message_size_threshold();
Expand Down

0 comments on commit 30a00fa

Please sign in to comment.