trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Call (JIRA)" <j...@apache.org>
Subject [jira] Updated: (TS-162) inconsistencies in the stats system - there are incorrect assumtions on sychronization between threads
Date Thu, 11 Feb 2010 00:46:28 GMT

     [ https://issues.apache.org/jira/browse/TS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bryan Call updated TS-162:
--------------------------

    Affects Version/s:     (was: 2.0.0a)
        Fix Version/s: 2.0.0a
             Assignee: Bryan Call

> inconsistencies in the stats system - there are incorrect assumtions on sychronization
between threads
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TS-162
>                 URL: https://issues.apache.org/jira/browse/TS-162
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Stats
>            Reporter: Bryan Call
>            Assignee: Bryan Call
>             Fix For: 2.0.0a
>
>
> There is a problem with the current stats being inconsistent.  The problem is that the
net threads each have their own stats which they modify and the aggregation thread also modifies
the same stat value.  There is no proper synchronization for this to work correctly.  The
aggregation thread does an atomic swap to zero the net threads stat value, but the local thread
doesn't use atomics and only increments the value.  This will lead to inconsistencies...
> A better design is to *only* have the net threads modify their local stats and have the
aggregation thread handle totalling the values in a separate stat structure.

-- 
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