bryancall opened a new issue, #10091: URL: https://github.com/apache/trafficserver/issues/10091
Configure options: `--enable-malloc-allocator --with-jemalloc=/opt/jemalloc --with-quiche=/opt/quiche --with-openssl=/opt/boringssl ` Commands: ``` export MALLOC_CONF="prof:true,prof_prefix:/tmp/jeprof.out" /opt/ats/bin/traffic_server traffic_ctl plugin msg memory_profile activate traffic_ctl plugin msg memory_profile dump /opt/jemalloc/bin/jeprof --text /opt/ats/bin/traffic_server jeprof.out.* /opt/jemalloc/bin/jeprof --pdf /opt/ats/bin/traffic_server jeprof.out.* > ~/ats.pdf ``` Using jemalloc to profile: ``` 11:45:56 zeus:/tmp$ /opt/jemalloc/bin/jeprof --text /opt/ats/bin/traffic_server jeprof.out.1830193.0.m0.heap Using local file /opt/ats/bin/traffic_server. Using local file jeprof.out.1830193.0.m0.heap. Total: 372.8 MB 236.5 63.4% 63.4% 236.5 63.4% ats_memalign 128.3 34.4% 97.8% 128.3 34.4% prof_backtrace_impl 8.0 2.2% 100.0% 8.0 2.2% MallocAllocator::alloc_void (inline) 0.0 0.0% 100.0% 99.2 26.6% 0x00007f6e3cf1c7c0 0.0 0.0% 100.0% 31.1 8.3% ::ThreadInitByFunc::invoke 0.0 0.0% 100.0% 4.0 1.1% AIOCallbackInternal::io_complete 0.0 0.0% 100.0% 99.2 26.6% APIHook::invoke 0.0 0.0% 100.0% 0.5 0.1% ASN1_STRING_type_new 0.0 0.0% 100.0% 2.5 0.7% ASN1_item_d2i 0.0 0.0% 100.0% 0.5 0.1% ASN1_primitive_new 0.0 0.0% 100.0% 0.5 0.1% ASN1_template_new (inline) 0.0 0.0% 100.0% 0.5 0.1% BUF_MEM_grow 0.0 0.0% 100.0% 0.5 0.1% BUF_MEM_reserve 0.0 0.0% 100.0% 4.0 1.1% Cache::open 0.0 0.0% 100.0% 90.3 24.2% Cache::open_read 0.0 0.0% 100.0% 10.8 2.9% CacheDisk::open 0.0 0.0% 100.0% 4.0 1.1% CacheDisk::openDone (inline) 0.0 0.0% 100.0% 4.0 1.1% CacheDisk::openStart 0.0 0.0% 100.0% 90.3 24.2% CacheProcessor::open_read 0.0 0.0% 100.0% 10.8 2.9% CacheProcessor::start_internal 0.0 0.0% 100.0% 99.2 26.6% CacheVC::callcont (inline) 0.0 0.0% 100.0% 99.2 26.6% CacheVC::openReadStartHead 0.0 0.0% 100.0% 5.0 1.4% ClassAllocator::Value_type* thread_alloc (inline) 0.0 0.0% 100.0% 5.0 1.4% ClassAllocator::alloc (inline) 0.0 0.0% 100.0% 240.8 64.6% Continuation::handleEvent (inline) 0.0 0.0% 100.0% 275.7 73.9% EThread::execute 0.0 0.0% 100.0% 244.6 65.6% EThread::execute (inline) 0.0 0.0% 100.0% 244.6 65.6% EThread::execute_regular 0.0 0.0% 100.0% 200.4 53.8% EThread::process_event 0.0 0.0% 100.0% 182.2 48.9% EThread::process_queue 0.0 0.0% 100.0% 31.1 8.3% EventProcessor::ThreadInit::init 0.0 0.0% 100.0% 31.1 8.3% EventProcessor::initThreadState 0.0 0.0% 100.0% 40.6 10.9% EventProcessor::spawn_event_threads 0.0 0.0% 100.0% 16.2 4.4% EventProcessor::spawn_thread 0.0 0.0% 100.0% 17.6 4.7% EventProcessor::start 0.0 0.0% 100.0% 232.5 62.4% FreelistAllocator::alloc_void (inline) 0.0 0.0% 100.0% 90.3 24.2% HQTransaction::_signal_read_event 0.0 0.0% 100.0% 78.7 21.1% HQTransaction::do_io_read 0.0 0.0% 100.0% 97.2 26.1% HQTransaction::do_io_write 0.0 0.0% 100.0% 2.5 0.7% HTTPHdr::create (inline) 0.0 0.0% 100.0% 0.5 0.1% HpackDynamicTable::HpackDynamicTable 0.0 0.0% 100.0% 0.5 0.1% HpackIndexingTable::HpackIndexingTable (inline) 0.0 0.0% 100.0% 8.8 2.4% Http2ClientSession::new_connection 0.0 0.0% 100.0% 0.5 0.1% Http2ClientSession::start 0.0 0.0% 100.0% 0.5 0.1% Http2ConnectionState::init 0.0 0.0% 100.0% 9.3 2.5% Http2SessionAccept::accept 0.0 0.0% 100.0% 9.3 2.5% Http2SessionAccept::mainEvent 0.0 0.0% 100.0% 9.3 2.5% Http2SessionAccept::mainEvent (inline) 0.0 0.0% 100.0% 86.3 23.2% Http3App::_handle_bidi_stream_on_read_ready 0.0 0.0% 100.0% 86.3 23.2% Http3App::main_event_handler 0.0 0.0% 100.0% 8.3 2.2% Http3App::on_new_stream 0.0 0.0% 100.0% 97.2 26.1% Http3FrameCollector::on_write_ready 0.0 0.0% 100.0% 78.7 21.1% Http3FrameDispatcher::on_read_ready 0.0 0.0% 100.0% 97.2 26.1% Http3HeaderFramer::_generate_header_block 0.0 0.0% 100.0% 97.2 26.1% Http3HeaderFramer::generate_frame 0.0 0.0% 100.0% 2.0 0.5% Http3HeaderVIOAdaptor::Http3HeaderVIOAdaptor 0.0 0.0% 100.0% 1.6 0.4% Http3HeaderVIOAdaptor::_on_qpack_decode_complete 0.0 0.0% 100.0% 1.6 0.4% Http3HeaderVIOAdaptor::event_handler 0.0 0.0% 100.0% 78.7 21.1% Http3HeaderVIOAdaptor::handle_frame 0.0 0.0% 100.0% 1.6 0.4% Http3StreamDataVIOAdaptor::Http3StreamDataVIOAdaptor 0.0 0.0% 100.0% 3.6 1.0% Http3Transaction::Http3Transaction 0.0 0.0% 100.0% 78.7 21.1% Http3Transaction::_process_read_vio 0.0 0.0% 100.0% 97.2 26.1% Http3Transaction::_process_write_vio 0.0 0.0% 100.0% 90.3 24.2% Http3Transaction::state_stream_open 0.0 0.0% 100.0% 90.3 24.2% HttpCacheSM::do_cache_open_read (inline) 0.0 0.0% 100.0% 90.3 24.2% HttpCacheSM::open_read 0.0 0.0% 100.0% 99.2 26.6% HttpCacheSM::state_cache_open_read 0.0 0.0% 100.0% 78.7 21.1% HttpSM::attach_client_session 0.0 0.0% 100.0% 90.3 24.2% HttpSM::do_api_callout 0.0 0.0% 100.0% 90.3 24.2% HttpSM::do_cache_lookup_and_read 0.0 0.0% 100.0% 1.6 0.4% HttpSM::handle_api_return 0.0 0.0% 100.0% 99.2 26.6% HttpSM::main_handler 0.0 0.0% 100.0% 0.5 0.1% HttpSM::set_next_state ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@trafficserver.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org