I just realized that estimate_shift_configuration() tries to use almost all CPU resources no matter what nCores is. I guess this is not expected behavior. For example, when this code (nCores=1) is executed...
probably way too later ... potentially some other algorithm uses multi-threading that I cannot control. Eg. a simple matrix multiply is multi-threading.
I just realized that
estimate_shift_configuration()
tries to use almost all CPU resources no matter whatnCores
is. I guess this is not expected behavior. For example, when this code (nCores=1
) is executed...top
says the R session is using almost all CPU resources (6236/6400%).Here is the result from
nCores=8
. It initiated with the single process with ~6400/6400 %CPU...Each of 8 processes started using more than one core without limit.
My session info:
I would appreciate it if you could fix this problem.