trafficserver-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Call (JIRA)" <j...@apache.org>
Subject [jira] Created: (TS-440) Traffic Server threads will spin under heavy load
Date Thu, 16 Sep 2010 18:17:33 GMT
Traffic Server threads will spin under heavy load
-------------------------------------------------

                 Key: TS-440
                 URL: https://issues.apache.org/jira/browse/TS-440
             Project: Traffic Server
          Issue Type: Bug
          Components: Network
            Reporter: Bryan Call


This has been a problem for a long time.  I created a fix for the problem yesterday and tested
it overnight.

The problem is when we remove from the enabled lists in close_UnixNetVConnection().  We lock
the lists when we add to them, but not when we remove the connection from them in close_UnixNetVConnection().
 This can corrupt the data structure.

Because the data structure is corrupted it can fail the empty() test in NetHandler::mainNetEvent()
and poll_timeout (really epoll timeout) will set to 0 and the thread will spin.

The read enabled list (Queue<>) will normally have a NULL head, but a non-NULL tail
and the empty() test on the Queue<> checks for NULL head and NULL tail to be considered
empty.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message