I have just recently switched modelling the collective effects from an impedance element to a wake element. It was since then my problems have been beginning; chiefly, my simulations crashing out with out-of-memory errors. After turning on the
Code: Select all
monitor_memory_usage=1
Code: Select all
Memory usage increased by 3511 kB in ZTRANSVERSE TRANS_RW_IMPEDANCE#1, pass 23040
As you can see, it increases linearly with the number of turns. To confirm, I was able to budget twice the memory on the cluster and, sure enough, it failed about twice the number of turns later.
My colleague decided to have a look at it, so I'm going to quote some of his findings in case this helps. For clarity, we are running multi bunch simulations; I was running 2022.2 and my colleague additionally tried it on 2020.5 .
By commenting out various combinations of elements that represent collective effects, the longitudinal wake, and higher order modes modelled by FRFmode (but my simulation did not contain the latter), was found to show up on the log file. To be clear, this means he said that the memory leak effect was not observed when other collective elements were included except for the ones I just mentioned. If this observation is correct, this would indeed be quite strange; it would point to some cross talk between the different elements that results in some kind of memory leak.