Alice Weekly Meeting: Software for Hardware Accelerators / PDP-SRC
-
-
11:00
→
11:20
Discussion 20mSpeakers: David Rohr (CERN), Ole Schmidt (CERN)
Color code: (critical, news during the meeting: green, news from this week: blue, news from last week: purple, no news: black)
High priority framework topics:
- Problem at end of run with lots of error messages and breaks many calibration runs https://alice.its.cern.ch/jira/browse/O2-3315
- Unfortunately, online there are still errors after fixing those that are seen in the FST (e.g. partition 2e5XVwXYwvX).
- Fix START-STOP-START for good
- https://github.com/AliceO2Group/AliceO2/pull/9895 still not merged due to a conflict.
- Multi-threaded pipeline still not working in FST / sync processing, but only in standalone benchmark.
- Discussed with Giulio that it might not converge until Pb-Pb, so I'll try to implement a standalone multi-threading solution in DPL.
- Problem with QC topologies with expendable tasks- For items to do see: https://alice.its.cern.ch/jira/browse/QC-953 - Status?
- Problem in QC where we collect messages in memory while the run is stopped: https://alice.its.cern.ch/jira/browse/O2-3691
- FMQ bumped - is this fixed now?
- Problem with dropping lifetime:timeframe messages affected ctf-writer, which got stuck due to its completion policy, if a full TF got missing.
- Now, the root cause are still the spurious data drops, but as mitigation, completion policy was updated to skip a lost timeslice.
- Telegraph issue understood, DPL was sending too many arrow and resource-rate-limiting (not used in online) metrics, overloading the telegraph client. FIxed on DPL side.
Other framework tickets:
- TOF problem with receiving condition in tof-compressor: https://alice.its.cern.ch/jira/browse/O2-3681
- Grafana metrics: Might want to introduce additional rate metrics that subtract the header overhead to have the pure payload: low priority.
- Backpressure reporting when there is only 1 input channel: no progress.
- Stop entire workflow if one process segfaults / exits unexpectedly. Tested again in January, still not working despite some fixes. https://alice.its.cern.ch/jira/browse/O2-2710
- https://alice.its.cern.ch/jira/browse/O2-1900 : FIX in PR, but has side effects which must also be fixed.
- https://alice.its.cern.ch/jira/browse/O2-2213 : Cannot override debug severity for tpc-tracker
- https://alice.its.cern.ch/jira/browse/O2-2209 : Improve DebugGUI information
- https://alice.its.cern.ch/jira/browse/O2-2140 : Better error message (or a message at all) when input missing
- https://alice.its.cern.ch/jira/browse/O2-2361 : Problem with 2 devices of the same name
- https://alice.its.cern.ch/jira/browse/O2-2300 : Usage of valgrind in external terminal: The testcase is currently causing a segfault, which is an unrelated problem and must be fixed first. Reproduced and investigated by Giulio.
- Found a reproducible crash (while fixing the memory leak) in the TOF compressed-decoder at workflow termination, if the wrong topology is running. Not critical, since it is only at the termination, and the fix of the topology avoids it in any case. But we should still understand and fix the crash itself. A reproducer is available.
- Support in DPL GUI to send individual START and STOP commands.
- Problem I mentioned last time with non-critical QC tasks and DPL CCDB fetcher is real. Will need some extra work to solve it. Otherwise non-critical QC tasks will stall the DPL chain when they fail.
Global calibration topics:
- TPC IDC workflow problem - no progress.
- Even with latest changes, difficult to ensure guaranteed calibration finalization at end of global run (as discussed with Ruben yesterday).
- After discussion with Peter, Giulio this morning: We should push for 2 additional states in the state machine at the end of run between RUNNING and READY:
- DRAIN: For all but O2, the transision RUNNING --> FINALIZE is identical to what we do in STOP: RUNNING --> READY at the moment. I.e. no more data will come in then.
- O2 could finalize the current TF processing with some time out, where it stops processing incoming data, and at EndOfStream trigger the calibration postprocessing.
- FINALIZE: No more data is guaranteed to come in, but the calibration could still be running. So we leave FMQ channels open, and have a time out to finalize the calibration. If input proxies have not yet received the EndOfStream, they will inject it to trigger the final calibration.
- DRAIN: For all but O2, the transision RUNNING --> FINALIZE is identical to what we do in STOP: RUNNING --> READY at the moment. I.e. no more data will come in then.
- This would require changes in O2, DD, ECS, FMQ, but all changes except for in O2 should be trivial, since all other components would not do anything in these states.
- No progress...
- After discussion with Peter, Giulio this morning: We should push for 2 additional states in the state machine at the end of run between RUNNING and READY:
- output-proxy cannot send the same data to 2 calib workflows.
- Tested Giulio's fix, but it is not working. Afterwards, TPC calib workflow was no longer receiving CTP data at all and was dropping all input.
- EMCAL bad channel calib too slow for high rate pb-pb.
Async reconstruction
- Remaining oscilation problem: GPUs get sometimes stalled for a long time up to 2 minutes. No progress
- Checking 2 things: does the situation get better without GPU monitoring? --> Inconclusive
- We can use increased GPU processes priority as a mitigation, but doesn't fully fix the issue.
- Async CPU workflow for 1 NUMA domain available for EPNs, tested by Chiara, works OK.
EPN major topics:
- Fast movement of nodes between async / online without EPN expert intervention.
- Interface to change SHM memory sizes when no run is ongoing. Otherwise we cannot tune the workflow for both Pb-Pb and pp: https://alice.its.cern.ch/jira/browse/EPN-250
- Improve DataDistribution file replay performance, currently cannot do faster than 0.8 Hz, cannot test MI100 EPN in Pb-Pb at nominal rate, and cannot test pp workflow for 100 EPNs in FST since DD injects TFs too slowly. https://alice.its.cern.ch/jira/browse/EPN-244 NO ETA
- Need DDS/ODC feature to deploy different topologies on EPNs with MI50 and with MI100. ETA 1 weeks?
- Go to error state if a critical task (e.g. calib task) fails (taking nmin into accound). But currently we do not see failing calibration tasks at all, except for a message in infologger. ODC should go to error, and then ECS should stop the run automatically. Also when n < nmin. Fixed?
- Lubos to provide interface to querry current EPN SHM settings - Status?
- ODC now also updated to new ODC server.
- Spamn from EPN2EOS monitoring e-mails.
- Discussed with EPN and EPN2EOS experts how to disable monitoring mails for inactive servers. Not fully clear yet how to proceed. 2 Proposed solutions:
- Have an "inactive" flag in the config file, that must be set before taking the node offline, then the service will unregister itself from the monitoring.
- Problem: Not so easy to automatize, since it cannot be done by the slurm partition ansible role. We can have the case that we just drain a node and take it down for maintenance e.g. also in that case the flag would need to be updated.
- Alternatively, but not endorsed by EPN2EOS, a service could regularly scan the slurm online paritition active nodes, and send the list to the monitoring via some e.g. REST interface, and then the monitoring would filter based on that.
- Requires an additional interface for the monitoring.
- Have an "inactive" flag in the config file, that must be set before taking the node offline, then the service will unregister itself from the monitoring.
- Discussed with EPN and EPN2EOS experts how to disable monitoring mails for inactive servers. Not fully clear yet how to proceed. 2 Proposed solutions:
Other EPN topics:
- Check NUMA balancing after SHM allocation, sometimes nodes are unbalanced and slow: https://alice.its.cern.ch/jira/browse/EPN-245
- Fix problem with SetProperties string > 1024/1536 bytes: https://alice.its.cern.ch/jira/browse/EPN-134 and https://github.com/FairRootGroup/DDS/issues/440
- After software installation, check whether it succeeded on all online nodes (https://alice.its.cern.ch/jira/browse/EPN-155) and consolidate software deployment scripts in general.
- Improve InfoLogger messages when environment creation fails due to too few EPNs / calib nodes available, ideally report a proper error directly in the ECS GUI: https://alice.its.cern.ch/jira/browse/EPN-65
- New DD release: compatible to FMQ >= 1.5, kill TfBuilder if connection to all / one FLP fails.
EPN farm upgrade:
- AMD has reported they have probably found a miscompilation in the FollowLooper kernel with ROCm 5.5, but they are still investigating.
- ROCm 5.6 available since last week, EPN set up a test node, but didn't have a chance yet to test it.
TPC Raw decoding checks:
- One more round of DLBZS tests with Stefan, recording raw data with beam.
- Now, decodes fully correctly with reference encoder, but still problems with GPU encoder.
- This is due to offset and timespan fields not always set correctly (which are used for fast search, and not used by reference encoder).
- I manually patched a raw time frame rewriting all these header fields, afterwards it was processed correctly in the GPU decoder.
- Stefan has implemented a fix, next step is to record raw data again, and test with more statistics (so far we checked one TF that decodes 100% correctly)
- Additional checks to be implemented:
- Adding additional check in TPC raw decoding for sane first Orbits.
- Will also add a check on DPL level, to make sure firstOrbit received from all detectors is identical, when creating the TimeFrame first orbit.
- Since we had repeatedly situations where we have corrupt TPC raw data online but cannot reproduce, and DataDistribution provides no possibility to dump TFs after processing (currently we dump 1 permille, so chance to dump the corrupt TF is pretty low), will implement TPC TF dump in the TPC reconstruction, so we get that data (similarly to what ITS does).
Full system test issues:
Topology generation:
- Should test to deploy topology with DPL driver, to have the remote GUI available. - Not working, need to follow up what Ole wrote in JIRA ticket?
Software deployment at P2.
- Next software deployment at 18th. Among mony other updates:
- All fixes needed for TPC DLBZS decoding.
- Must be deployed in parallel to new SYNTHETIC data set.
- Fix for DPL metrics / global calib workflow.
- Multi Handle CCDB API active by default, can be disabled with extra env variable.
- Reverted Ruben's PR that affects TPC vDrift in laser calib workflow.
- Pippo will announce update slots, and list of software to be installed on release coordination mailing list alice-o2-release-coordination@cern.ch
- If you are interested, please subscribe.
- EMCAL has another update they want in, to detect incomplete TFs with missing link.
- Last time, this update broke the FST, want to test before merging.
QC / Monitoring / InfoLogger updates:
- TPC has opened first PR for monitoring of cluster rejection in QC. Trending for TPC CTFs is work in progress. Ole will join from our side, and plan is to extend this to all detectors, and to include also trending for raw data sizes.
CCDB topics.
- Switched back to legacy CCDB implementation, which is now possible since EPNs have enabled TCP timestamps.
- Still want to deploy CCDBDownloader eventually.
- New single-threaded CCDB Downloader implementation available, since multi-threading not really needed. Should avoid the stuck problem.
- Tested in SYNTHETIC run at P2, and seemed to work correctly.
AliECS related topics:
- ECS should replace newlines in extra env field by spaces, but doesn't. Filed a bug report in JIRA: newline to space conversion implemented, but field is not yet multi-line by default.
- Newline treatment was fixed meanwhile, but default size of field is still 1-line, thus JIRA not yet closed.
GPU ROCm / compiler topics:
- Found new HIP internal compiler error when compiling without optimization: -O0 make the compilation fail with unsupported LLVM intrinsic. Reported to AMD.
- Found a new miscompilation with -ffast-math enabled in looper folllowing, for now disabled -ffast-math.
- Must create new minimal reproducer for compile error when we enable LOG(...) functionality in the HIP code. Check whether this is a bug in our code or in ROCm. Lubos will work on this.
- Found another compiler problem with template treatment found by Ruben. Have a workaround for now. Need to create a minimal reproducer and file a bug report.
- Debugging the calibration, debug output triggered another internal compiler error in HIP compiler. No problem for now since it happened only with temporary debug code. But should still report it to AMD to fix it.
TPC GPU Processing
- Random GPU crashes under investigation.
- Bug in TPC QC with MC embedding, TPC QC does not respect sourceID of MC labels, so confuses tracks of signal and of background events.
- Problem with TPC tracking with distortion corrections due to floating point issues from distortion maps returning bogus values when queried outside of defined volume.
- Checking more data, we still get floating point exceptions in corner cases. Doesn't make sense in my opinion to implement more protections in the tracking. The correction maps should be fixed to return the value on the edge if queried outside of the defined volume.
ANS Encoding
- No update this week.
Issues currently lacking manpower, waiting for a volunteer:
- For debugging, it would be convenient to have a proper tool that (using FairMQ debug mode) can list all messages currently in the SHM segments, similarly to what I had hacked together for https://alice.its.cern.ch/jira/browse/O2-2108
- Redo / Improve the parameter range scan for tuning GPU parameters. In particular, on the AMD GPUs, since they seem to be affected much more by memory sizes, we have to use test time frames of the correct size, and we have to separate training and test data sets.
- Problem at end of run with lots of error messages and breaks many calibration runs https://alice.its.cern.ch/jira/browse/O2-3315
-
11:20
→
11:25
TRD Tracking 5mSpeaker: Ole Schmidt (CERN)
-
11:25
→
11:30
TPC ML Clustering 5mSpeaker: Christian Sonnabend (Heidelberg University (DE))
- O2 QA task:
- Added several selections:
- Ideal Max > 3 && ideal CoG > 5
- if(dist(ideal max, assigned digit max) > 2) then reject assignment
- if(test_assignment(ideal CoG, digit Max)): Check if there is another digit Max for given ideal CoG that is closer. If so, don't assign and continue.
- Output looks mostly reasonable
- Histograms and idividual checks reveal some unexpected (but not necessarily wrong) behaviour
- Added several selections:





--> Residual things to understand: Why is there this excess in pad direction for all the integer values (This actually goes away if the cut on point number two from above is chosen more tightly, e.g. if(dist(ideal max, assigned digit max) > 1)
- Problems again with the GSI farm and the containers - in contact with the experts (same container worked last week!)
- Once problems are fixed, submit first neural network for classification (isCluster network) and regression (findCoG network)
- O2 QA task:
- 11:30 → 11:35
-
11:00
→
11:20