cmsdaq / DAQExpert

New expert system processing data model produced by DAQAggregator
1 stars 2 forks source link

200% FED deadtime #152

Closed gladky closed 6 years ago

gladky commented 6 years ago

http://daq-expert.cms/DAQExpert/?start=2017-11-09T14:51:10.610Z&end=2017-11-09T14:59:17.923Z

andreh12 commented 6 years ago

DAQView (http://daq-expert.cms/daq2view-react/index.html?setup=cdaq&time=2017%2011%2009%2015:55:14) shows:

andreh12 commented 6 years ago

The real problem here is actually SyncLoss but the error message from the RU has a format slightly different from this one here: https://github.com/cmsdaq/DAQExpert/blob/863bddc0d942661ce72e66f17b7d02581282d608/src/main/java/rcms/utilities/daqexpert/reasoning/logic/failures/backpressure/BackpressureAnalyzer.java#L43-L44

andreh12 commented 6 years ago

ignore my previous comment, the SyncLoss was identified and the FED number was parsed correctly

gladky commented 6 years ago

The reason is wrong calculation of deadPercentage value. Unnecessary contribution of percentBackpressure.

float deadPercentage = 0;
deadPercentage += fed.getPercentBackpressure();
deadPercentage += fed.getPercentBusy();
deadPercentage += fed.getPercentWarning();

I will prepare the hotfix.

gladky commented 6 years ago

Fixed and tested. Pull request #153. Please review it now the calculation is correct.