- startup
min: 0
max: 32
+- name: crimson_memory
+ type: size
+ level: advanced
+ default: 0
+ desc: Total memory to use for the seastar allocator per OSD.
+ long_desc: Total memory to use for the seastar allocator per OSD.
+ Maps to seastar's --memory flag. 0 means use seastar's default
+ (all available memory minus a reserve).
+ flags:
+ - startup
# Reactor options:
{"--io-latency-goal-ms", "crimson_reactor_io_latency_goal_ms", Option::TYPE_FLOAT},
{"--idle-poll-time-us", "crimson_reactor_idle_poll_time_us", Option::TYPE_UINT},
{"--poll-mode", "crimson_poll_mode", Option::TYPE_BOOL},
- {"--reactor-backend", "crimson_reactor_backend", Option::TYPE_STR}
+ {"--reactor-backend", "crimson_reactor_backend", Option::TYPE_STR},
+ {"--memory", "crimson_memory", Option::TYPE_SIZE}
};
std::optional<std::string> get_option_value(const SeastarOption& option) {
}
break;
}
+ case Option::TYPE_SIZE: {
+ if (auto value = crimson::common::get_conf<Option::size_t>(option.config_key)) {
+ return std::to_string(value);
+ }
+ break;
+ }
case Option::TYPE_BOOL: {
if (crimson::common::get_conf<bool>(option.config_key)) {
return "true";