Mathematica Mathematica: ParallelMap getting slower

  • Thread starter Thread starter Polyrhythmic
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
The discussion centers around the performance degradation experienced when using ParallelMap with Mathematica on Linux to solve multiple eigenvalue problems. Users report that over time, the CPU usage of the master kernel increases while the slave kernels' CPU usage decreases significantly. This issue raises concerns about the efficiency of parallel processing in Mathematica. Suggestions include monitoring RAM usage and utilizing the ClearSystemCache[] function at the end of processing loops to potentially mitigate performance drops.
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.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
9K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
Replies
17
Views
5K
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 38 ·
2
Replies
38
Views
10K