Skip to content

Randomize prefetch settings in ci - #48973

Merged
kssenii merged 10 commits into
ClickHouse:masterfrom
kssenii:randomize-fs-read-settings
Apr 23, 2023
Merged

kssenii merged 10 commits into
ClickHouse:masterfrom
kssenii:randomize-fs-read-settings

Conversation

@kssenii

@kssenii kssenii commented Apr 20, 2023 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Improve memory accounting for prefetches. Randomise prefetch settings In CI.

@kssenii
kssenii requested a review from nickitat April 20, 2023 12:09
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Apr 20, 2023
@kssenii
kssenii force-pushed the randomize-fs-read-settings branch from a0b7e25 to 59211c4 Compare April 20, 2023 13:43
@nickitat

Copy link
Copy Markdown
Member

also would be good to mention fixes for memory accounting in the name / split the pr into two.

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added pr-improvement Pull request with some product improvements and removed pr-not-for-changelog This PR should not be mentioned in the changelog labels Apr 21, 2023
@kssenii

kssenii commented Apr 23, 2023

Copy link
Copy Markdown
Member Author

Stress test (tsan) — Found signal in gdb.log

Looks unrelated to changes, cc @Avogar

2023-04-22 20:38:58 Thread 381 "TCPHandler" received signal SIGSEGV, Segmentation fault.
2023-04-22 20:38:58 [Switching to Thread 0x7f549f6ec700 (LWP 2121)]
2023-04-22 20:38:58 0x000000000cf0ea7d in __tsan::ThreadContext::OnFinished() ()
2023-04-22 20:38:58 #0  0x000000000cf0ea7d in __tsan::ThreadContext::OnFinished() ()
2023-04-22 20:38:58 No symbol table info available.
2023-04-22 20:38:58 #1  0x000000000ce79d9c in __sanitizer::ThreadRegistry::FinishThread(unsigned int) ()
2023-04-22 20:38:58 No symbol table info available.
2023-04-22 20:38:58 #2  0x000000000cf0e7fb in __tsan::ThreadFinish(__tsan::ThreadState*) ()
2023-04-22 20:38:58 No symbol table info available.
2023-04-22 20:38:58 #3  0x000000000cf0f020 in __tsan::FiberDestroy(__tsan::ThreadState*, unsigned long, __tsan::ThreadState*) ()
2023-04-22 20:38:58 No symbol table info available.
2023-04-22 20:38:58 #4  0x000000001d4f3714 in boost::context::detail::fiber_activation_record::~fiber_activation_record (this=0x7f546b92fb00) at ./contrib/boost/boost/context/fiber_ucontext.hpp:121
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #5  0x000000001d4f3680 in boost::context::detail::fiber_capture_record<boost::context::fiber, FiberStack&, DB::AsyncTaskExecutor::Routine>::destroy (p=0x7f546b92fb00) at ./contrib/boost/boost/context/fiber_ucontext.hpp:255
2023-04-22 20:38:58         salloc = {stack_size = <optimized out>, page_size = 4096, static default_stack_size = 327680}
2023-04-22 20:38:58         sctx = {size = 331776, sp = 0x7f546b930000}
2023-04-22 20:38:58 #6  boost::context::detail::fiber_capture_record<boost::context::fiber, FiberStack&, DB::AsyncTaskExecutor::Routine>::deallocate (this=0x7f546b92fb00) at ./contrib/boost/boost/context/fiber_ucontext.hpp:269
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #7  0x000000001d4f3058 in boost::context::fiber::~fiber (this=0x7b4802a3f788) at ./contrib/boost/boost/context/fiber_ucontext.hpp:450
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #8  DB::AsyncTaskExecutor::~AsyncTaskExecutor (this=<optimized out>) at ./src/Common/AsyncTaskExecutor.h:59
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #9  0x000000002002b848 in DB::ConnectionEstablisherAsync::~ConnectionEstablisherAsync (this=0x7b4802a3f780) at ./src/Client/ConnectionEstablisher.h:57
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #10 0x00000000200361fa in DB::ConnectionEstablisherAsync::~ConnectionEstablisherAsync (this=0x7b4802a3f780) at ./src/Client/ConnectionEstablisher.h:57
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #11 0x000000002004219d in std::__1::default_delete<DB::ConnectionEstablisherAsync>::operator()[abi:v15000](DB::ConnectionEstablisherAsync*) const (this=0x7b2000b0c680, __ptr=0x7b4802a3f780) at ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #12 std::__1::unique_ptr<DB::ConnectionEstablisherAsync, std::__1::default_delete<DB::ConnectionEstablisherAsync> >::reset[abi:v15000](DB::ConnectionEstablisherAsync*) (this=0x7b2000b0c680, __p=0x0) at ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305
2023-04-22 20:38:58         __tmp = 0x7b4802a3f780
2023-04-22 20:38:58 #13 std::__1::unique_ptr<DB::ConnectionEstablisherAsync, std::__1::default_delete<DB::ConnectionEstablisherAsync> >::~unique_ptr[abi:v15000]() (this=0x7b2000b0c680) at ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #14 DB::HedgedConnectionsFactory::ReplicaStatus::~ReplicaStatus (this=0x7b2000b0c680) at ./src/Client/HedgedConnectionsFactory.h:37
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #15 std::__1::__destroy_at[abi:v15000]<DB::HedgedConnectionsFactory::ReplicaStatus, 0>(DB::HedgedConnectionsFactory::ReplicaStatus*) (__loc=0x7b2000b0c680) at ./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #16 std::__1::destroy_at[abi:v15000]<DB::HedgedConnectionsFactory::ReplicaStatus, 0>(DB::HedgedConnectionsFactory::ReplicaStatus*) (__loc=0x7b2000b0c680) at ./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #17 std::__1::allocator_traits<std::__1::allocator<DB::HedgedConnectionsFactory::ReplicaStatus> >::destroy[abi:v15000]<DB::HedgedConnectionsFactory::ReplicaStatus, void, void>(std::__1::allocator<DB::HedgedConnectionsFactory::ReplicaStatus>&, DB::HedgedConnectionsFactory::ReplicaStatus*) (__p=0x7b2000b0c680) at ./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #18 std::__1::vector<DB::HedgedConnectionsFactory::ReplicaStatus, std::__1::allocator<DB::HedgedConnectionsFactory::ReplicaStatus> >::__base_destruct_at_end[abi:v15000](DB::HedgedConnectionsFactory::ReplicaStatus*) (this=0x7b6401e28580, __new_last=0x7b2000b0c680) at ./contrib/llvm-project/libcxx/include/vector:833
2023-04-22 20:38:58         __soon_to_be_end = 0x7b2000b0c680
2023-04-22 20:38:58 #19 std::__1::vector<DB::HedgedConnectionsFactory::ReplicaStatus, std::__1::allocator<DB::HedgedConnectionsFactory::ReplicaStatus> >::__clear[abi:v15000]() (this=0x7b6401e28580) at ./contrib/llvm-project/libcxx/include/vector:827
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #20 std::__1::vector<DB::HedgedConnectionsFactory::ReplicaStatus, std::__1::allocator<DB::HedgedConnectionsFactory::ReplicaStatus> >::~vector[abi:v15000]() (this=0x7b6401e28580) at ./contrib/llvm-project/libcxx/include/vector:436
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #21 DB::HedgedConnectionsFactory::~HedgedConnectionsFactory (this=0x7b6401e28508) at ./src/Client/HedgedConnectionsFactory.cpp:54
2023-04-22 20:38:58 No locals.
2023-04-22 20:38:58 #22 0x000000002003dfe6 in DB::HedgedConnections::~HedgedConnections (this=this@entry=0x7b6401e28500) at ./src/Client/HedgedConnections.h:29
2023-04-22 20:38:59 No locals.
2023-04-22 20:38:59 #23 0x000000002003e03a in DB::HedgedConnections::~HedgedConnections (this=0x7b6401e28500) at ./src/Client/HedgedConnections.h:29

@kssenii
kssenii merged commit be0cb80 into ClickHouse:master Apr 23, 2023
tavplubix added a commit that referenced this pull request Apr 25, 2023
…ings"

This reverts commit be0cb80, reversing
changes made to 5ca15fc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants