You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
valgrind results for 100k memory chaos tests(passed)
valgrind --tool=memcheck --leak-check=full --track-origins=yes /home/ubuntu/datafuse/target/debug/deps/databend_common_base-8212ca84429fbc04 'mem_allocator::tracker::tests::test_mixed_failure_scenarios'
==148789== Memcheck, a memory error detector
==148789== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==148789== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
==148789== Command: /home/ubuntu/datafuse/target/debug/deps/databend_common_base-8212ca84429fbc04 mem_allocator::tracker::tests::test_mixed_failure_scenarios
==148789==
running 1 test
test mem_allocator::tracker::tests::test_mixed_failure_scenarios has been running for over 60 seconds
test mem_allocator::tracker::tests::test_mixed_failure_scenarios ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 44 filtered out; finished in 322.73s
==148789==
==148789== HEAP SUMMARY:
==148789== in use at exit: 608 bytes in 2 blocks
==148789== total heap usage: 675 allocs, 673 frees, 8,475,219 bytes allocated
==148789==
==148789== 304 bytes in 1 blocks are possibly lost in loss record 1 of 2
==148789== at 0x488C0AC: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-arm64-linux.so)
==148789== by 0x400F553: calloc (rtld-malloc.h:44)
==148789== by 0x400F553: allocate_dtv (dl-tls.c:370)
==148789== by 0x400FF5F: _dl_allocate_tls (dl-tls.c:629)
==148789== by 0x4A76387: allocate_stack (allocatestack.c:429)
==148789== by 0x4A76387: pthread_create@@GLIBC_2.34 (pthread_create.c:655)
==148789== by 0x312ECB: _rjem_je_pthread_create_wrapper (background_thread.c:47)
==148789== by 0x313E43: background_thread_create_signals_masked (background_thread.c:287)
==148789== by 0x31574F: background_thread_create_locked (background_thread.c:495)
==148789== by 0x31589F: _rjem_je_background_thread_create (background_thread.c:520)
==148789== by 0x27DC6B: malloc_init_hard (jemalloc.c:2176)
==148789== by 0x2ED59B: malloc_init (jemalloc.c:298)
==148789== by 0x2ED59B: jemalloc_constructor (jemalloc.c:4322)
==148789== by 0x4A18613: call_init (libc-start.c:145)
==148789== by 0x4A18613: __libc_start_main@@GLIBC_2.34 (libc-start.c:347)
==148789== by 0x13B52F: imalloc (tsd.h:344)
==148789== by 0x13B52F: imalloc (jemalloc.c:3653)
==148789== by 0x13B52F: (below main) (jemalloc.c:3242)
==148789==
==148789== 304 bytes in 1 blocks are possibly lost in loss record 2 of 2
==148789== at 0x488C0AC: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-arm64-linux.so)
==148789== by 0x400F553: calloc (rtld-malloc.h:44)
==148789== by 0x400F553: allocate_dtv (dl-tls.c:370)
==148789== by 0x400FF5F: _dl_allocate_tls (dl-tls.c:629)
==148789== by 0x4A76387: allocate_stack (allocatestack.c:429)
==148789== by 0x4A76387: pthread_create@@GLIBC_2.34 (pthread_create.c:655)
==148789== by 0x312ECB: _rjem_je_pthread_create_wrapper (background_thread.c:47)
==148789== by 0x313E43: background_thread_create_signals_masked (background_thread.c:287)
==148789== by 0x314027: check_background_thread_creation (background_thread.c:332)
==148789== by 0x314253: background_thread0_work (background_thread.c:370)
==148789== by 0x3147DB: background_work (background_thread.c:412)
==148789== by 0x3152DF: background_thread_entry (background_thread.c:444)
==148789== by 0x4A7595B: start_thread (pthread_create.c:447)
==148789== by 0x4ADB7DB: thread_start (clone.S:79)
==148789==
==148789== LEAK SUMMARY:
==148789== definitely lost: 0 bytes in 0 blocks
==148789== indirectly lost: 0 bytes in 0 blocks
==148789== possibly lost: 608 bytes in 2 blocks
==148789== still reachable: 0 bytes in 0 blocks
==148789== suppressed: 0 bytes in 0 blocks
==148789==
==148789== For lists of detected and suppressed errors, rerun with: -s
==148789== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
ci-benchmarkBenchmark: run all testpr-chorethis PR only has small changes that no need to record, like coding styles.pr-featurethis PR introduces a new feature to the codebase
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
feat(base): enhanced query-level memory management
introduced query-level memory tracking
added max_query_memory_usage setting to set per-query memory limits
Tests
Type of change
This change is