Open DrorBuhnik opened 5 months ago
Hi @DrorBuhnik thanks for the bug report. Can you please confirm which version of Redpanda the above stack trace was generated from? I tried decoding it for v23.3.10 and v23.2.7 but it didn't appear to be valid.
yes, this is a stack trace from v23.3.10
this is the output of rpk version
:
Version: v23.3.10
Git ref: https://github.com/redpanda-data/redpanda/commit/255020e51d9ed9b7f90a67872bfc81d62923e3e9
Build date: 2024-03-28T07:53:07Z
OS/Arch: linux/arm64
Go version: go1.21.3
Redpanda Cluster
node-0 v23.3.10 - https://github.com/redpanda-data/redpanda/commit/255020e51d9ed9b7f90a67872bfc81d62923e3e9
node-1 v23.3.10 - https://github.com/redpanda-data/redpanda/commit/255020e51d9ed9b7f90a67872bfc81d62923e3e9
node-2 v23.3.10 - https://github.com/redpanda-data/redpanda/commit/255020e51d9ed9b7f90a67872bfc81d62923e3e9
I'm using docker image redpandadata/redpanda:v23.3.10
Also, I would like to know why seastar thinks he has only 2G memory while each Redpanda instance has 24G
@DrorBuhnik the 2G number is per-core. So I'm guessing that you have 12 cores in this machine?
2024-04-17 13:57:35.089 size: 516006364 count: 172 at:
[Backtrace #0]
void seastar::backtrace<seastar::current_backtrace_tasklocal()::$_0>(seastar::current_backtrace_tasklocal()::$_0&&) at /v/build/v_deps_build/seastar-prefix/src/seastar/include/seastar/util/backtrace.hh:64
(inlined by) seastar::current_backtrace_tasklocal() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/util/backtrace.cc:98
seastar::memory::get_backtrace() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:929
(inlined by) seastar::memory::get_allocation_site() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:939
(inlined by) seastar::memory::cpu_pages::add_alloc_site(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:845
(inlined by) void* seastar::memory::allocate_from_sampled_small_pool<(seastar::memory::alignment_t)1>(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1580
(inlined by) seastar::memory::allocate_slowpath(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1638
seastar::memory::allocate(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1658
(inlined by) operator new(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:2355
void* std::__1::__libcpp_operator_new[abi:v160004]<unsigned long>(unsigned long) at /vectorized/llvm/bin/../include/c++/v1/new:266
(inlined by) std::__1::__libcpp_allocate[abi:v160004](unsigned long, unsigned long) at /vectorized/llvm/bin/../include/c++/v1/new:292
(inlined by) std::__1::allocator<unsigned int>::allocate[abi:v160004](unsigned long) at /vectorized/llvm/bin/../include/c++/v1/__memory/allocator.h:115
(inlined by) std::__1::__allocation_result<std::__1::allocator_traits<std::__1::allocator<unsigned int>>::pointer> std::__1::__allocate_at_least[abi:v160004]<std::__1::allocator<unsigned int>>(std::__1::allocator<unsigned int>&, unsigned long) at /vectorized/llvm/bin/../include/c++/v1/__memory/allocate_at_least.h:55
(inlined by) std::__1::__split_buffer<unsigned int, std::__1::allocator<unsigned int>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<unsigned int>&) at /vectorized/llvm/bin/../include/c++/v1/__split_buffer:323
(inlined by) std::__1::vector<unsigned int, std::__1::allocator<unsigned int>>::reserve(unsigned long) at /vectorized/llvm/bin/../include/c++/v1/vector:1503
(inlined by) fragmented_vector<unsigned int, 8192ul>::add_capacity() at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/utils/fragmented_vector.h:508
(inlined by) fragmented_vector<unsigned int, 8192ul>::maybe_add_capacity() at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/utils/fragmented_vector.h:486
(inlined by) void fragmented_vector<unsigned int, 8192ul>::push_back<unsigned int&>(unsigned int&) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/utils/fragmented_vector.h:159
(inlined by) storage::index_state::add_entry(unsigned int, storage::offset_time_index, unsigned long) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/index_state.h:157
storage::index_state::maybe_index(unsigned long, unsigned long, unsigned long, detail::base_named_type<long, model::model_offset_type, std::__1::integral_constant<bool, true>>, detail::base_named_type<long, model::model_offset_type, std::__1::integral_constant<bool, true>>, model::timestamp, model::timestamp, std::__1::optional<model::timestamp>, bool, unsigned long) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/index_state.cc:109
storage::internal::copy_data_segment_reducer::filter_and_append(model::compression, model::record_batch) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/compaction_reducers.cc:317
storage::internal::copy_data_segment_reducer::operator()(model::record_batch) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/compaction_reducers.cc:348
auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)::operator()(storage::internal::copy_data_segment_reducer&) const at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/model/record_batch_reader.h:142
(inlined by) auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()::operator()() const at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/model/record_batch_reader.h:155
(inlined by) seastar::future<seastar::bool_class<seastar::stop_iteration_tag>> seastar::futurize<seastar::future<seastar::bool_class<seastar::stop_iteration_tag>>>::invoke<auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()&>(storage::internal::copy_data_segment_reducer&&) at /vectorized/include/seastar/core/future.hh:2006
(inlined by) auto seastar::futurize_invoke<auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()&>(storage::internal::copy_data_segment_reducer&&) at /vectorized/include/seastar/core/future.hh:2037
(inlined by) seastar::internal::repeater<auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()>::run_and_dispose() at /vectorized/include/seastar/core/loop.hh:79
seastar::reactor::run_tasks(seastar::reactor::task_queue&) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:2750
(inlined by) seastar::reactor::run_some_tasks() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3213
seastar::reactor::do_run() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3397
seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2::operator()() const at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:4624
(inlined by) decltype(std::declval<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>()()) std::__1::__invoke[abi:v160004]<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>(seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&) at /vectorized/llvm/bin/../include/c++/v1/__functional/invoke.h:394
(inlined by) void std::__1::__invoke_void_return_wrapper<void, true>::__call<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>(seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&) at /vectorized/llvm/bin/../include/c++/v1/__functional/invoke.h:487
(inlined by) std::__1::__function::__alloc_func<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2, std::__1::allocator<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2>, void ()>::operator()[abi:v160004]() at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:185
(inlined by) std::__1::__function::__func<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2, std::__1::allocator<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2>, void ()>::operator()() at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:356
std::__1::__function::__value_func<void ()>::operator()[abi:v160004]() const at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:510
(inlined by) std::__1::function<void ()>::operator()() const at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:1156
(inlined by) seastar::posix_thread::start_routine(void*) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/posix.cc:90
LLVMSymbolizer: error reading file: No such file or directory
?? at ??:0
?? at ??:0
2024-04-17 13:57:35.089 size: 441005439 count: 147 at:
[Backtrace #1]
void seastar::backtrace<seastar::current_backtrace_tasklocal()::$_0>(seastar::current_backtrace_tasklocal()::$_0&&) at /v/build/v_deps_build/seastar-prefix/src/seastar/include/seastar/util/backtrace.hh:64
(inlined by) seastar::current_backtrace_tasklocal() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/util/backtrace.cc:98
seastar::memory::get_backtrace() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:929
(inlined by) seastar::memory::get_allocation_site() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:939
(inlined by) seastar::memory::cpu_pages::add_alloc_site(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:845
(inlined by) void* seastar::memory::allocate_from_sampled_small_pool<(seastar::memory::alignment_t)1>(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1580
(inlined by) seastar::memory::allocate_slowpath(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1638
seastar::memory::allocate(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1658
(inlined by) operator new(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:2355
void* std::__1::__libcpp_operator_new[abi:v160004]<unsigned long>(unsigned long) at /vectorized/llvm/bin/../include/c++/v1/new:266
(inlined by) std::__1::__libcpp_allocate[abi:v160004](unsigned long, unsigned long) at /vectorized/llvm/bin/../include/c++/v1/new:292
(inlined by) std::__1::allocator<unsigned int>::allocate[abi:v160004](unsigned long) at /vectorized/llvm/bin/../include/c++/v1/__memory/allocator.h:115
(inlined by) std::__1::__allocation_result<std::__1::allocator_traits<std::__1::allocator<unsigned int>>::pointer> std::__1::__allocate_at_least[abi:v160004]<std::__1::allocator<unsigned int>>(std::__1::allocator<unsigned int>&, unsigned long) at /vectorized/llvm/bin/../include/c++/v1/__memory/allocate_at_least.h:55
(inlined by) std::__1::__split_buffer<unsigned int, std::__1::allocator<unsigned int>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<unsigned int>&) at /vectorized/llvm/bin/../include/c++/v1/__split_buffer:323
(inlined by) std::__1::vector<unsigned int, std::__1::allocator<unsigned int>>::reserve(unsigned long) at /vectorized/llvm/bin/../include/c++/v1/vector:1503
(inlined by) fragmented_vector<unsigned int, 8192ul>::add_capacity() at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/utils/fragmented_vector.h:508
(inlined by) fragmented_vector<unsigned int, 8192ul>::maybe_add_capacity() at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/utils/fragmented_vector.h:486
(inlined by) void fragmented_vector<unsigned int, 8192ul>::push_back<unsigned int>(unsigned int&&) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/utils/fragmented_vector.h:159
(inlined by) storage::index_state::add_entry(unsigned int, storage::offset_time_index, unsigned long) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/index_state.h:158
storage::index_state::maybe_index(unsigned long, unsigned long, unsigned long, detail::base_named_type<long, model::model_offset_type, std::__1::integral_constant<bool, true>>, detail::base_named_type<long, model::model_offset_type, std::__1::integral_constant<bool, true>>, model::timestamp, model::timestamp, std::__1::optional<model::timestamp>, bool, unsigned long) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/index_state.cc:109
storage::internal::copy_data_segment_reducer::filter_and_append(model::compression, model::record_batch) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/compaction_reducers.cc:317
storage::internal::copy_data_segment_reducer::operator()(model::record_batch) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/compaction_reducers.cc:348
auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)::operator()(storage::internal::copy_data_segment_reducer&) const at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/model/record_batch_reader.h:142
(inlined by) auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()::operator()() const at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/model/record_batch_reader.h:155
(inlined by) seastar::future<seastar::bool_class<seastar::stop_iteration_tag>> seastar::futurize<seastar::future<seastar::bool_class<seastar::stop_iteration_tag>>>::invoke<auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()&>(storage::internal::copy_data_segment_reducer&&) at /vectorized/include/seastar/core/future.hh:2006
(inlined by) auto seastar::futurize_invoke<auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()&>(storage::internal::copy_data_segment_reducer&&) at /vectorized/include/seastar/core/future.hh:2037
(inlined by) seastar::internal::repeater<auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()>::run_and_dispose() at /vectorized/include/seastar/core/loop.hh:79
seastar::reactor::run_tasks(seastar::reactor::task_queue&) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:2750
(inlined by) seastar::reactor::run_some_tasks() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3213
seastar::reactor::do_run() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3397
seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2::operator()() const at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:4624
(inlined by) decltype(std::declval<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>()()) std::__1::__invoke[abi:v160004]<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>(seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&) at /vectorized/llvm/bin/../include/c++/v1/__functional/invoke.h:394
(inlined by) void std::__1::__invoke_void_return_wrapper<void, true>::__call<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>(seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&) at /vectorized/llvm/bin/../include/c++/v1/__functional/invoke.h:487
(inlined by) std::__1::__function::__alloc_func<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2, std::__1::allocator<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2>, void ()>::operator()[abi:v160004]() at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:185
(inlined by) std::__1::__function::__func<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2, std::__1::allocator<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2>, void ()>::operator()() at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:356
std::__1::__function::__value_func<void ()>::operator()[abi:v160004]() const at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:510
(inlined by) std::__1::function<void ()>::operator()() const at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:1156
(inlined by) seastar::posix_thread::start_routine(void*) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/posix.cc:90
?? at ??:0
?? at ??:0
2024-04-17 13:57:35.089 size: 432005328 count: 144 at:
[Backtrace #2]
void seastar::backtrace<seastar::current_backtrace_tasklocal()::$_0>(seastar::current_backtrace_tasklocal()::$_0&&) at /v/build/v_deps_build/seastar-prefix/src/seastar/include/seastar/util/backtrace.hh:64
(inlined by) seastar::current_backtrace_tasklocal() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/util/backtrace.cc:98
seastar::memory::get_backtrace() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:929
(inlined by) seastar::memory::get_allocation_site() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:939
(inlined by) seastar::memory::cpu_pages::add_alloc_site(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:845
(inlined by) void* seastar::memory::allocate_from_sampled_small_pool<(seastar::memory::alignment_t)1>(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1580
(inlined by) seastar::memory::allocate_slowpath(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1638
seastar::memory::allocate(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1658
(inlined by) operator new(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:2355
void* std::__1::__libcpp_operator_new[abi:v160004]<unsigned long>(unsigned long) at /vectorized/llvm/bin/../include/c++/v1/new:266
(inlined by) std::__1::__libcpp_allocate[abi:v160004](unsigned long, unsigned long) at /vectorized/llvm/bin/../include/c++/v1/new:292
(inlined by) std::__1::allocator<unsigned long>::allocate[abi:v160004](unsigned long) at /vectorized/llvm/bin/../include/c++/v1/__memory/allocator.h:115
(inlined by) std::__1::__allocation_result<std::__1::allocator_traits<std::__1::allocator<unsigned long>>::pointer> std::__1::__allocate_at_least[abi:v160004]<std::__1::allocator<unsigned long>>(std::__1::allocator<unsigned long>&, unsigned long) at /vectorized/llvm/bin/../include/c++/v1/__memory/allocate_at_least.h:55
(inlined by) std::__1::__split_buffer<unsigned long, std::__1::allocator<unsigned long>&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator<unsigned long>&) at /vectorized/llvm/bin/../include/c++/v1/__split_buffer:323
(inlined by) std::__1::vector<unsigned long, std::__1::allocator<unsigned long>>::reserve(unsigned long) at /vectorized/llvm/bin/../include/c++/v1/vector:1503
(inlined by) fragmented_vector<unsigned long, 8192ul>::add_capacity() at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/utils/fragmented_vector.h:508
(inlined by) fragmented_vector<unsigned long, 8192ul>::maybe_add_capacity() at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/utils/fragmented_vector.h:486
(inlined by) void fragmented_vector<unsigned long, 8192ul>::push_back<unsigned long&>(unsigned long&) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/utils/fragmented_vector.h:159
(inlined by) storage::index_state::add_entry(unsigned int, storage::offset_time_index, unsigned long) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/index_state.h:159
storage::index_state::maybe_index(unsigned long, unsigned long, unsigned long, detail::base_named_type<long, model::model_offset_type, std::__1::integral_constant<bool, true>>, detail::base_named_type<long, model::model_offset_type, std::__1::integral_constant<bool, true>>, model::timestamp, model::timestamp, std::__1::optional<model::timestamp>, bool, unsigned long) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/index_state.cc:109
storage::internal::copy_data_segment_reducer::filter_and_append(model::compression, model::record_batch) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/compaction_reducers.cc:317
storage::internal::copy_data_segment_reducer::operator()(model::record_batch) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/compaction_reducers.cc:348
auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)::operator()(storage::internal::copy_data_segment_reducer&) const at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/model/record_batch_reader.h:142
(inlined by) auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()::operator()() const at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/model/record_batch_reader.h:155
(inlined by) seastar::future<seastar::bool_class<seastar::stop_iteration_tag>> seastar::futurize<seastar::future<seastar::bool_class<seastar::stop_iteration_tag>>>::invoke<auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()&>(storage::internal::copy_data_segment_reducer&&) at /vectorized/include/seastar/core/future.hh:2006
(inlined by) auto seastar::futurize_invoke<auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()&>(storage::internal::copy_data_segment_reducer&&) at /vectorized/include/seastar/core/future.hh:2037
(inlined by) seastar::internal::repeater<auto model::record_batch_reader::impl::do_action<storage::internal::copy_data_segment_reducer, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, auto model::record_batch_reader::impl::do_consume<storage::internal::copy_data_segment_reducer>(storage::internal::copy_data_segment_reducer&, std::__1::chrono::time_point<seastar::lowres_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'(storage::internal::copy_data_segment_reducer&)&&)::'lambda'()>::run_and_dispose() at /vectorized/include/seastar/core/loop.hh:79
seastar::reactor::run_tasks(seastar::reactor::task_queue&) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:2750
(inlined by) seastar::reactor::run_some_tasks() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3213
seastar::reactor::do_run() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3397
seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2::operator()() const at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:4624
(inlined by) decltype(std::declval<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>()()) std::__1::__invoke[abi:v160004]<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>(seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&) at /vectorized/llvm/bin/../include/c++/v1/__functional/invoke.h:394
(inlined by) void std::__1::__invoke_void_return_wrapper<void, true>::__call<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>(seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&) at /vectorized/llvm/bin/../include/c++/v1/__functional/invoke.h:487
(inlined by) std::__1::__function::__alloc_func<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2, std::__1::allocator<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2>, void ()>::operator()[abi:v160004]() at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:185
(inlined by) std::__1::__function::__func<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2, std::__1::allocator<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2>, void ()>::operator()() at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:356
std::__1::__function::__value_func<void ()>::operator()[abi:v160004]() const at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:510
(inlined by) std::__1::function<void ()>::operator()() const at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:1156
(inlined by) seastar::posix_thread::start_routine(void*) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/posix.cc:90
?? at ??:0
?? at ??:0
Also, I would like to know why seastar thinks he has only 2G memory while each Redpanda instance has 24G
@DrorBuhnik the 2G number is per-core. So I'm guessing that you have 12 cores in this machine?
ha! you are correct! that explains it
until we can pin point and fix the issue - do you think that adding more memory/reducing the number of cpu core would help mitigate/"fix" the issue?
Crash backtrace:
Backtrace:
[Backtrace #0]
void seastar::backtrace<seastar::backtrace_buffer::append_backtrace()::'lambda'(seastar::frame)>(seastar::backtrace_buffer::append_backtrace()::'lambda'(seastar::frame)&&) at /v/build/v_deps_build/seastar-prefix/src/seastar/include/seastar/util/backtrace.hh:64
(inlined by) seastar::backtrace_buffer::append_backtrace() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:824
(inlined by) seastar::print_with_backtrace(seastar::backtrace_buffer&, bool) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:854
(inlined by) seastar::print_with_backtrace(char const*, bool) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:866
seastar::sigabrt_action() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:4155
(inlined by) void seastar::install_oneshot_signal_handler<6, (void (*)())(&seastar::sigabrt_action())>()::'lambda'(int, siginfo_t*, void*)::operator()(int, siginfo_t*, void*) const at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:4131
(inlined by) void seastar::install_oneshot_signal_handler<6, (void (*)())(&seastar::sigabrt_action())>()::'lambda'(int, siginfo_t*, void*)::__invoke(int, siginfo_t*, void*) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:4127
LLVMSymbolizer: error reading file: No such file or directory
?? at ??:0
LLVMSymbolizer: error reading file: No such file or directory
?? at ??:0
?? at ??:0
?? at ??:0
seastar::memory::on_allocation_failure(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:2090
seastar::memory::finish_allocation(void*, unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1608
(inlined by) seastar::memory::allocate_slowpath(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1647
seastar::memory::allocate(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1658
(inlined by) operator new(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:2355
seastar::chunked_fifo<seastar::internal::abortable_fifo<seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::entry, seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::expiry_handler>::entry, 128ul>::back_chunk_new() at /vectorized/include/seastar/core/chunked_fifo.hh:414
(inlined by) seastar::chunked_fifo<seastar::internal::abortable_fifo<seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::entry, seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::expiry_handler>::entry, 128ul>::ensure_room_back() at /vectorized/include/seastar/core/chunked_fifo.hh:435
(inlined by) void seastar::chunked_fifo<seastar::internal::abortable_fifo<seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::entry, seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::expiry_handler>::entry, 128ul>::emplace_back<>() at /vectorized/include/seastar/core/chunked_fifo.hh:471
(inlined by) seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::entry& seastar::internal::abortable_fifo<seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::entry, seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::expiry_handler>::emplace_back<seastar::promise<void>, unsigned long&>(seastar::promise<void>&&, unsigned long&) at /vectorized/include/seastar/core/abortable_fifo.hh:214
(inlined by) seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::wait(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>, unsigned long) at /vectorized/include/seastar/core/semaphore.hh:288
(inlined by) seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>::wait(unsigned long) at /vectorized/include/seastar/core/semaphore.hh:263
(inlined by) seastar::future<seastar::semaphore_units<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>> seastar::get_units<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>(seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>&, unsigned long) at /vectorized/include/seastar/core/semaphore.hh:580
seastar::futurize<std::__1::invoke_result<storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5::operator()(seastar::lw_shared_ptr<storage::segment> const&) const::'lambda'()>::type>::type seastar::with_semaphore<seastar::semaphore_default_exception_factory, storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5::operator()(seastar::lw_shared_ptr<storage::segment> const&) const::'lambda'(), std::__1::chrono::steady_clock>(seastar::basic_semaphore<seastar::semaphore_default_exception_factory, std::__1::chrono::steady_clock>&, unsigned long, storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5::operator()(seastar::lw_shared_ptr<storage::segment> const&) const::'lambda'()&&) at /vectorized/include/seastar/core/semaphore.hh:726
(inlined by) storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5::operator()(seastar::lw_shared_ptr<storage::segment> const&) const at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/disk_log_impl.cc:2540
(inlined by) seastar::future<storage::usage> seastar::futurize<seastar::future<storage::usage>>::invoke<storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5&, seastar::lw_shared_ptr<storage::segment>&>(storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5&, seastar::lw_shared_ptr<storage::segment>&) at /vectorized/include/seastar/core/future.hh:2006
(inlined by) auto seastar::futurize_invoke<storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5&, seastar::lw_shared_ptr<storage::segment>&>(storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5&, seastar::lw_shared_ptr<storage::segment>&) at /vectorized/include/seastar/core/future.hh:2037
(inlined by) seastar::future<storage::usage> seastar::map_reduce<fragmented_vector<seastar::lw_shared_ptr<storage::segment>, 8192ul>::iter<false>, storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5, storage::usage, storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_6>(fragmented_vector<seastar::lw_shared_ptr<storage::segment>, 8192ul>::iter<false>, fragmented_vector<seastar::lw_shared_ptr<storage::segment>, 8192ul>::iter<false>, storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5&&, storage::usage, storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_6) at /vectorized/include/seastar/core/map_reduce.hh:192
(inlined by) seastar::future<storage::usage> seastar::map_reduce<fragmented_vector<seastar::lw_shared_ptr<storage::segment>, 8192ul>&, storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5, storage::usage, storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_6>(fragmented_vector<seastar::lw_shared_ptr<storage::segment>, 8192ul>&, storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_5&&, storage::usage, storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config)::$_6) at /vectorized/include/seastar/core/map_reduce.hh:262
(inlined by) storage::disk_log_impl::disk_usage_and_reclaimable_space(storage::gc_config) (.resume) at /var/lib/buildkite-agent/builds/buildkite-arm64-builders-i-0ee3cd99e5b23244c-1/redpanda/redpanda/src/v/storage/disk_log_impl.cc:2537
std::__1::coroutine_handle<seastar::internal::coroutine_traits_base<std::__1::pair<storage::usage, storage::reclaim_size_limits>>::promise_type>::resume[abi:v160004]() const at /vectorized/llvm/bin/../include/c++/v1/__coroutine/coroutine_handle.h:169
(inlined by) seastar::internal::coroutine_traits_base<std::__1::pair<storage::usage, storage::reclaim_size_limits>>::promise_type::run_and_dispose() at /vectorized/include/seastar/core/coroutine.hh:83
seastar::reactor::run_tasks(seastar::reactor::task_queue&) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:2750
(inlined by) seastar::reactor::run_some_tasks() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3213
seastar::reactor::do_run() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3397
seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2::operator()() const at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:4624
(inlined by) decltype(std::declval<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>()()) std::__1::__invoke[abi:v160004]<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>(seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&) at /vectorized/llvm/bin/../include/c++/v1/__functional/invoke.h:394
(inlined by) void std::__1::__invoke_void_return_wrapper<void, true>::__call<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&>(seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2&) at /vectorized/llvm/bin/../include/c++/v1/__functional/invoke.h:487
(inlined by) std::__1::__function::__alloc_func<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2, std::__1::allocator<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2>, void ()>::operator()[abi:v160004]() at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:185
(inlined by) std::__1::__function::__func<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2, std::__1::allocator<seastar::smp::configure(seastar::smp_options const&, seastar::reactor_options const&)::$_2>, void ()>::operator()() at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:356
std::__1::__function::__value_func<void ()>::operator()[abi:v160004]() const at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:510
(inlined by) std::__1::function<void ()>::operator()() const at /vectorized/llvm/bin/../include/c++/v1/__functional/function.h:1156
(inlined by) seastar::posix_thread::start_routine(void*) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/posix.cc:90
?? at ??:0
?? at ??:0
until we can pin point and fix the issue - do you think that adding more memory/reducing the number of cpu core would help mitigate/"fix" the issue?
Yes, probably. 2GB/core is the minimum recommended amount. I think in practice it is usually quite a bit more. The lower it is, the more likely we hit these allocation issues which are hard to predict/discover.
Great! I will adjust my cluster resources to bump the cpu-memory ratio Thank you!
This issue hasn't seen activity in 3 months. If you want to keep it open, post a comment or remove the stale
label – otherwise this will be closed in two weeks.
A small update - bumping the memory/cpu-core ration (I reached 84GB/6cpu => 14GB per core) helped a bit, the rate of the crashes but didn't solved it We are still running it but seems like that the "root cause" was cpu starvation. now we are running with 48GB/12cpu and it seems much better, so far zero crash in 5 days :crossed_fingers:
Version & Environment
Version: v23.3.10 Git ref: 255020e51d Build date: 2024-03-28T07:53:07Z OS/Arch: linux/arm64 Go version: go1.21.3
Redpanda Cluster node-0 v23.3.10 - 255020e51d9ed9b7f90a67872bfc81d62923e3e9 node-1 v23.3.10 - 255020e51d9ed9b7f90a67872bfc81d62923e3e9 node-2 v23.3.10 - 255020e51d9ed9b7f90a67872bfc81d62923e3e9
Kubernetes: v1.24.17-eks-508b6b3 (AWS EKS)
Kafka Client: kafakaJS (https://kafka.js.org/)
What went wrong?
Once in a while, might be a few days or might be a few weeks, one of the Redpanda instances (out of 3) crash with this log:
It is during regular work on the cluster, nothing special happens in the producers/consumers at the time, no management changes, no infrastructure changes Once the instance got this first "failed to allocate" crash I will get it on that instance again and again during the automatic k8s restarts. my only "fix" right now is to delete the cluster (including the disks) and start fresh until the next crash
Also, I updated Redpanda from v23.2.7 in hope that it will miraculously fix it but sadly it didn't
What should have happened instead?
I would like to understand why my cluster crash Also, I would like to know why seastar thinks he has only 2G memory while each Redpanda instance has 24G
How to reproduce the issue?
I don't have a reliable way to reproduce it, it seems to happen at a random times (until I could figure out what is the issue here)
Additional information
This is the redpanda.yml:
The command line to start redpanda:
The init container command:
JIRA Link: CORE-2403