Mathematica: ParallelMap getting slower

  • Context: Mathematica 
  • Thread starter Thread starter Polyrhythmic
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
Polyrhythmic
Messages
343
Reaction score
0
Hi,

I use ParallelMap with Mathematica on Linux to solve 100 eigenvalue problems on 4 kernels. This operation ist repeated very often, and over the course of time the performance drops significantly. Using top, you can see that the CPU used by the master kernel increases, and the CPU used by the slave kernels decreases from 70 to appr. 20 percent. Has anyone else experienced this phenomenon?
 
Physics news on Phys.org
Whats the associated ram usage? Try use ClearSystemCache[] at the end of your loops.