Skip to content

read_avail uses 100% CPU #2144

Description

@vmamidi

For a short duration, ATS gets busier in read_avail and starts using 100% CPU. I do not have much information as of now but as the thread gets busier the requests that are handled by that thread timeout.

#0 Ptr::get (this=0x2aad05deab78) at ../../lib/ts/Ptr.h:150
#1 IOBufferReader::read_avail (this=) at ../../iocore/eventsystem/P_IOBuffer.h:633
#2 IOBufferReader::consume (n=, this=) at ../../iocore/eventsystem/P_IOBuffer.h:682
#3 UnixNetVConnection::load_buffer_and_write (this=, towrite=370501208, buf=..., total_written=, needs=) at UnixNetVConnection.cc:970
#4 0x00002aaaaaec81e9 in write_to_net_io (nh=nh@entry=0x2aaab3a11c80, vc=0x2aaacdd6a900, thread=) at UnixNetVConnection.cc:510
#5 0x00002aaaaaec91f3 in write_to_net (nh=nh@entry=0x2aaab3a11c80, vc=vc@entry=0x2aaacdd6a900, thread=) at UnixNetVConnection.cc:419
#6 0x00002aaaaaeaf888 in NetHandler::mainNetEvent (this=0x2aaab3a11c80, event=, e=) at UnixNet.cc:543
#7 0x00002aaaaaf07b1e in Continuation::handleEvent (data=0x2aaab1788fe0, event=5, this=) at I_Continuation.h:153
#8 EThread::process_event (calling_code=5, e=0x2aaab1788fe0, this=0x2aaab3a0de80) at UnixEThread.cc:143
#9 EThread::execute (this=0x2aaab3a0de80) at UnixEThread.cc:270
#10 0x00002aaaaaf066c6 in spawn_thread_internal (a=0x2aaab09c0c00) at Thread.cc:84
#11 0x00002aaaad73caa1 in start_thread (arg=0x2aaab6b0c700) at pthread_create.c:301
#12 0x00002aaaae5f393d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions