Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oversized allocation: 299008 bytes in container_internal::raw_hash_set #11677

Closed
vshtokman opened this issue Jun 24, 2023 · 1 comment · Fixed by #11740
Closed

Oversized allocation: 299008 bytes in container_internal::raw_hash_set #11677

vshtokman opened this issue Jun 24, 2023 · 1 comment · Fixed by #11740
Assignees
Labels
area/oversized-allocation kind/bug Something isn't working sev/medium Bugs that do not meet criteria for high or critical, but are more severe than low.

Comments

@vshtokman
Copy link
Contributor

Note that the location needs to be clarified.

Found via Brandon Allard's script.

Artifact URL: https://ci-artifacts.dev.vectorized.cloud:443/vtools/8213/0188e80f-cb8a-413f-a7a2-8741ea51e304/vbuild/output/ducktape-release-clang-amd64.tgz

Test details: tmp/ducktape/results/2023-06-23--001/LargeControllerSnapshotTest/test_join_restart/169/RedpandaService-0-140553123898432/ip-172-31-1-186/redpanda.log

[shard 0] seastar_memory - oversized allocation: 299008 bytes. This is non-fatal, but could lead to latency and/or fragmentation issues. Please report: at
[Backtrace #20]
{tmp/libexec/redpanda} 0x6f2da33: 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:60
 (inlined by) seastar::current_backtrace_tasklocal() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/util/backtrace.cc:86
 (inlined by) seastar::current_tasktrace() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/util/backtrace.cc:137
 (inlined by) seastar::current_backtrace() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/util/backtrace.cc:170
{tmp/libexec/redpanda} 0x6bac42b: seastar::memory::cpu_pages::warn_large_allocation(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:809
 (inlined by) seastar::memory::cpu_pages::check_large_allocation(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:859
 (inlined by) seastar::memory::cpu_pages::allocate_large(unsigned int, bool) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:866
 (inlined by) seastar::memory::allocate_large(unsigned long, bool) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1429
 (inlined by) seastar::memory::allocate_slowpath(unsigned long, bool) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1547
{tmp/libexec/redpanda} 0x6bbe01d: seastar::memory::allocate(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:1565
 (inlined by) operator new(unsigned long) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/memory.cc:2265
{tmp/libexec/redpanda} 0x52d41a9: 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<absl::lts_20220623::container_internal::AlignedType<8ul> >::allocate[abi:v160004](unsigned long) at /vectorized/llvm/bin/../include/c++/v1/__memory/allocator.h:115
 (inlined by) std::__1::allocator_traits<std::__1::allocator<absl::lts_20220623::container_internal::AlignedType<8ul> > >::allocate[abi:v160004](std::__1::allocator<absl::lts_20220623::container_internal::AlignedType<8ul> >&, unsigned long) at /vectorized/llvm/bin/../include/c++/v1/__memory/allocator_traits.h:268
 (inlined by) void* absl::lts_20220623::container_internal::Allocate<8ul, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >(std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> >*, unsigned long) at /vectorized/include/absl/container/internal/container_memory.h:64
 (inlined by) absl::lts_20220623::container_internal::raw_hash_set<absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>, absl::lts_20220623::hash_internal::Hash<model::ntp>, std::__1::equal_to<model::ntp>, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >::initialize_slots() at /vectorized/include/absl/container/internal/raw_hash_set.h:1937
 (inlined by) absl::lts_20220623::container_internal::raw_hash_set<absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>, absl::lts_20220623::hash_internal::Hash<model::ntp>, std::__1::equal_to<model::ntp>, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >::resize(unsigned long) at /vectorized/include/absl/container/internal/raw_hash_set.h:1978
 (inlined by) absl::lts_20220623::container_internal::raw_hash_set<absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>, absl::lts_20220623::hash_internal::Hash<model::ntp>, std::__1::equal_to<model::ntp>, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >::rehash_and_grow_if_necessary() at /vectorized/include/absl/container/internal/raw_hash_set.h:2126
{tmp/libexec/redpanda} 0x52d4104: absl::lts_20220623::container_internal::raw_hash_set<absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>, absl::lts_20220623::hash_internal::Hash<model::ntp>, std::__1::equal_to<model::ntp>, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >::prepare_insert(unsigned long) at /vectorized/include/absl/container/internal/raw_hash_set.h:2191
{tmp/libexec/redpanda} 0x52c1ab7: std::__1::pair<unsigned long, bool> absl::lts_20220623::container_internal::raw_hash_set<absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>, absl::lts_20220623::hash_internal::Hash<model::ntp>, std::__1::equal_to<model::ntp>, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >::find_or_prepare_insert<model::ntp>(model::ntp const&) at /vectorized/include/absl/container/internal/raw_hash_set.h:2180
 (inlined by) std::__1::pair<absl::lts_20220623::container_internal::raw_hash_set<absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>, absl::lts_20220623::hash_internal::Hash<model::ntp>, std::__1::equal_to<model::ntp>, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >::iterator, bool> absl::lts_20220623::container_internal::raw_hash_map<absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>, absl::lts_20220623::hash_internal::Hash<model::ntp>, std::__1::equal_to<model::ntp>, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >::try_emplace_impl<model::ntp const&>(model::ntp const&) at /vectorized/include/absl/container/internal/raw_hash_map.h:185
 (inlined by) std::__1::pair<absl::lts_20220623::container_internal::raw_hash_set<absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>, absl::lts_20220623::hash_internal::Hash<model::ntp>, std::__1::equal_to<model::ntp>, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >::iterator, bool> absl::lts_20220623::container_internal::raw_hash_map<absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>, absl::lts_20220623::hash_internal::Hash<model::ntp>, std::__1::equal_to<model::ntp>, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >::try_emplace<model::ntp, 0>(model::ntp const&) at /vectorized/include/absl/container/internal/raw_hash_map.h:129
 (inlined by) decltype(absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>::value(std::__1::pair<model::ntp const, unsigned long>* std::__1::addressof[abi:v160004]<std::__1::pair<model::ntp const, unsigned long> >(std::__1::pair<model::ntp const, unsigned long>&)(decltype(std::__declval<std::__1::pair<model::ntp const, unsigned long> >(0)) std::__1::declval<std::__1::pair<model::ntp const, unsigned long>&>()()))) absl::lts_20220623::container_internal::raw_hash_map<absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long>, absl::lts_20220623::hash_internal::Hash<model::ntp>, std::__1::equal_to<model::ntp>, std::__1::allocator<std::__1::pair<model::ntp const, unsigned long> > >::operator[]<model::ntp, absl::lts_20220623::container_internal::NodeHashMapPolicy<model::ntp, unsigned long> >(model::ntp const&) at /vectorized/include/absl/container/internal/raw_hash_map.h:169
 (inlined by) cluster::partition_balancer_planner::init_ntp_sizes_from_health_report(cluster::cluster_health_report const&, cluster::partition_balancer_planner::request_context&) (.resume) at /var/lib/buildkite-agent/builds/buildkite-amd64-builders-i-0afdc89a34fd4b5a0-1/redpanda/redpanda/src/v/cluster/partition_balancer_planner.cc:254
{tmp/libexec/redpanda} 0x2256fca: std::__1::coroutine_handle<seastar::internal::coroutine_traits_base<void>::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<void>::promise_type::run_and_dispose() at /vectorized/include/seastar/core/coroutine.hh:120
{tmp/libexec/redpanda} 0x6c7700f: seastar::reactor::run_tasks(seastar::reactor::task_queue&) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:2557
 (inlined by) seastar::reactor::run_some_tasks() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3020
{tmp/libexec/redpanda} 0x6c7a527: seastar::reactor::do_run() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3189
{tmp/libexec/redpanda} 0x6c77876: seastar::reactor::run() at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/reactor.cc:3072
{tmp/libexec/redpanda} 0x6b7b520: seastar::app_template::run_deprecated(int, char**, std::__1::function<void ()>&&) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/app-template.cc:265
{tmp/libexec/redpanda} 0x6b79918: seastar::app_template::run(int, char**, std::__1::function<seastar::future<int> ()>&&) at /v/build/v_deps_build/seastar-prefix/src/seastar/src/core/app-template.cc:156
{tmp/libexec/redpanda} 0x2145035: application::run(int, char**) at /var/lib/buildkite-agent/builds/buildkite-amd64-builders-i-0afdc89a34fd4b5a0-1/redpanda/redpanda/src/v/redpanda/application.cc:346
{tmp/libexec/redpanda} 0x6f7370b: main at /var/lib/buildkite-agent/builds/buildkite-amd64-builders-i-0afdc89a34fd4b5a0-1/redpanda/redpanda/src/v/redpanda/main.cc:22
{/opt/redpanda/lib/libc.so.6} 0x2d58f: ?? at ??:0
{/opt/redpanda/lib/libc.so.6} 0x2d648: ?? at ??:0
{tmp/libexec/redpanda} 0x213ee64: _start at ??:0
@piyushredpanda piyushredpanda added the sev/medium Bugs that do not meet criteria for high or critical, but are more severe than low. label Jun 24, 2023
@bharathv bharathv self-assigned this Jun 26, 2023
@bharathv
Copy link
Contributor

 (inlined by) cluster::partition_balancer_planner::init_ntp_sizes_from_health_report(cluster::cluster_health_report const&, cluster::partition_balancer_planner::request_context&) (.resume) at /var/lib/buildkite-agent/builds/buildkite-amd64-builders-i-0afdc89a34fd4b5a0-1/redpanda/redpanda/src/v/cluster/partition_balancer_planner.cc:254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/oversized-allocation kind/bug Something isn't working sev/medium Bugs that do not meet criteria for high or critical, but are more severe than low.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants