| Summary: | CPU occupancy strangely decreases over time for long MT run (and memory leaks) | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | perl |
| Component: | processes/hadronic/models/de_excitation | Assignee: | Vladimir.Ivantchenko |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | asai, Gunter.Folger, John.Allison, Vladimir.Ivantchenko |
| Priority: | P4 | ||
| Version: | 10.5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
OSX Activity Monitor Sampling Call Tree
TOPAS Parameter Control File demonstrating the issue |
||
|
Description
perl
2020-01-15 19:39:34 CET
Created attachment 599 [details]
OSX Activity Monitor Sampling Call Tree
This sample was taking after the job had run for a long time and the CPU slowdown had become very severe. It appears to me to show the workers spending most of their time in a mutex lock in G4IonTable, however I do not claim to be an expert at interpreting these call trees.
Created attachment 600 [details]
TOPAS Parameter Control File demonstrating the issue
From the call chain I read that the problem is eitehr in de-excitation or in the IonTable, so I update the component to de-excitation. Good news. The problem seems to be fixed in Geant4.10.6. Comparing Geant4.10.5.p1 versus 10.6, a job with 7 worker threads, after running 100M events: Geant4.10.5.p1, CPU use is down to 300% and memory use is 1.10GB. Geant4.10.6, CPU use remains solid at 697% and memory use is 145.MB. So probably no need to address this issue unless there is a future need to create a further Geant4.10.5 patch. Joseph, in releasing 10.6 we introduced several fixes for memory leaks here and there (more or less serious) which were either originated from new development or present also in previous releases, particularly in the physics. Most of these fixes are not straightforward to back port to older releases, as rather entangled with the new developments. I suggest you try to verify with your tests if the situation improves in 10.6, let us know and eventually switch TOPAS to the new release! (In reply to Gabriele Cosmo from comment #5) > Joseph, in releasing 10.6 we introduced several fixes for memory leaks here > and there (more or less serious) which were either originated from new > development or present also in previous releases, particularly in the > physics. Most of these fixes are not straightforward to back port to older > releases, as rather entangled with the new developments. > I suggest you try to verify with your tests if the situation improves in > 10.6, let us know and eventually switch TOPAS to the new release! Hi Gabriele, I think you missed my comment before yours. The problem is indeed gone in 10.6. And yes, as usual, we will be moving to the latest release. The port has gone easily and we are just now starting our detailed tests. Hi all, I close this bug report. The difficulty for 10.5 patch is that we do not know what exact fix resolve this problem. Probably, the best recommendation for users who run high statistics is to migrade to 10.6. By the way, physics of 10.5 and 10.6 are compatible. Vladimir |