Conversation
|
Workflow [PR], commit [2d01463] Summary: ❌
|
5bf4fbb to
9624673
Compare
|
It works, we can improve later on with flush timings (e.g. enable lg_prof_interval or with some step from MemoryTracker) |
azat
left a comment
There was a problem hiding this comment.
I am not sure that I like this two new server settings, but I guess it is OK for now, PTAL at the comments
Also do you have an example of profiles that has been gathered on CI?
What would be better if I want it only in CI. Also, I think it could be useful when debugging some instance instead of relying on lg_prof_interval because we can focus on peaks instead of collecting bunch of profiles for non interesting periods.
Pick any stateless check with release or debug build |
Co-authored-by: Azat Khuzhin <[email protected]>
After ClickHouse#85139 the deadlock became possible again memory allocations: 1 0x00007f4e4c997002 in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libc.so.6 2 0x000055b5a697daaf in pthread_mutex_lock (arg=0x7f4c30020590) at ./ci/tmp/build/./src/Common/ThreadFuzzer.cpp:447 3 0x000055b5ab409b93 in Poco::MutexImpl::lockImpl (this=0x80) at ./base/poco/Foundation/include/Poco/Mutex_POSIX.h:60 4 Poco::FastMutex::lock (this=0x80) at ./base/poco/Foundation/include/Poco/Mutex.h:229 5 Poco::ScopedLock<Poco::FastMutex>::ScopedLock (this=<optimized out>, mutex=...) at ./base/poco/Foundation/include/Poco/ScopedLock.h:37 6 0x000055b5b65e9b05 in Poco::Thread::name (this=0x7f4c300204e8) at ./base/poco/Foundation/include/Poco/Thread.h:267 7 Poco::Message::init (this=this@entry=0x7f4c2315c650) at ./ci/tmp/build/./base/poco/Foundation/src/Message.cpp:127 8 0x000055b5b65e9e66 in Poco::Message::Message (this=0x7f4c2315c650, source=..., text=..., prio=<optimized out>, file=..., line=71, fmt_str=..., fmt_str_args=...) at ./ci/tmp/build/./base/poco/Foundation/src/Message.cpp:61 9 0x000055b5a694d236 in DB::flushJemallocProfile (file_prefix=...) at ./ci/tmp/build/./src/Common/Jemalloc.cpp:71 10 0x000055b5a694680c in MemoryTracker::allocImpl (this=<optimized out>, size=32, throw_if_memory_exceeded=<optimized out>, query_tracker=<optimized out>, _sample_probability=<optimized out>) at ./ci/tmp/build/./src/Common/MemoryTracker.cpp:338 11 0x000055b5a6892064 in trackMemory<> (size=25, trace=...) at ./src/Common/memory.h:134 12 operator new (size=25) at ./ci/tmp/build/./src/Common/AllocationInterceptors.cpp:55 20 0x000055b5b65e9b36 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string (this=0x7f4c2315cbb0, __str=...) at ./contrib/llvm-project/libcxx/include/string:1005 21 Poco::Thread::name (this=0x7f4c300204e8) at ./base/poco/Foundation/include/Poco/Thread.h:269 22 Poco::Message::init (this=this@entry=0x7f4c2315ccc8) at ./ci/tmp/build/./base/poco/Foundation/src/Message.cpp:127 23 0x000055b5b65e9e66 in Poco::Message::Message (this=0x7f4c2315ccc8, source=..., text=..., prio=<optimized out>, file=..., line=49, fmt_str=..., fmt_str_args=...) at ./ci/tmp/build/./base/poco/Foundation/src/Message.cpp:61 24 0x000055b5a6a0cf93 in ServerErrorHandler::logMessageImpl (this=<optimized out>, priority=<optimized out>, msg=...) at ./src/Common/ErrorHandlers.h:49 25 0x000055b5b65b252c in Poco::ErrorHandler::logMessage (priority=Poco::Message::PRIO_TEST, msg=...) at ./ci/tmp/build/./base/poco/Foundation/src/ErrorHandler.cpp:97 26 0x000055b5b666eab4 in Poco::Net::TCPServerDispatcher::enqueue (this=0x7f4c31b3e000, socket=...) at ./ci/tmp/build/./base/poco/Net/src/TCPServerDispatcher.cpp:146 27 0x000055b5b666d94c in Poco::Net::TCPServer::run (this=0x7f4c300204c0) at ./ci/tmp/build/./base/poco/Net/src/TCPServer.cpp:148
Changelog category (leave one):
Not for changelog (changelog entry is not required)
try creating flamegraph with jeprof
Documentation entry for user-facing changes
Fixes: #82035