I ran some MATLAB clustering analyses in Yggdrasil. Parallel computing in MATLAB is highly recommended to improve the performance. I first compared my code between parallel computing (threads vs. process ( see ref here). The results yielded faster performance in parallel computing with threads. Apparently, because of some overhead of copying data to the workers (i.e., the cores).
Then I compared the same run in the following scenario: Parallel computing (threads) vs. no parallel computing. Again, the results yielded better performance of parallel computing threads in terms of time. A last comparison with two different parallel comp threads (5 cores vs. 18 cores) also indicated that more cores increase the efficiency of the code, specially in the elapsed time. The results of the mentined comparisons are described below.
Questions:
- Can I request 16 cores for the big-mem partition? I’ve tried to run my code with the final sample size (126 Gb) with 2 cores. Unfortunately, 4 days was not enough.
- is there any alternative to monitor CPU and RAM usage different than the “seff” command? “sstat” did not work, and “sacct” yield outputs difficult to interpret.
Thanks in advance for your comments.
Cores used in MATLAB: 1 (default)
Elapsed time is 60.777525 seconds.
Job ID: 39752917
Cluster: yggdrasil
User/Group: gavirial/unige
State: COMPLETED (exit code 0)
Nodes: 1
Cores per node: 20
CPU Utilized: 00:06:08
CPU Efficiency: 4.42% of 02:18:40 core-walltime
Job Wall-clock time: 00:06:56
Memory Utilized: 7.94 GB
Memory Efficiency: 13.23% of 60.00 GB (60.00 GB/node)
Cores used in MATLAB: 18
Job ID: 39750731
Elapsed time is 17.334834 seconds.
Cluster: yggdrasil
User/Group: gavirial/unige
State: COMPLETED (exit code 0)
Nodes: 1
Cores per node: 20
CPU Utilized: 00:05:30
CPU Efficiency: 6.60% of 01:23:20 core-walltime
Job Wall-clock time: 00:04:10
Memory Utilized: 13.71 GB
Memory Efficiency: 22.84% of 60.00 GB (60.00 GB/node)
Cores used in MATLAB: 5
Elapsed time is 23.345938 seconds.
Job ID: 39753389
Cluster: yggdrasil
User/Group: gavirial/unige
State: COMPLETED (exit code 0)
Nodes: 1
Cores per node: 30
CPU Utilized: 00:08:55
CPU Efficiency: 6.07% of 02:27:00 core-walltime
Job Wall-clock time: 00:04:54
Memory Utilized: 7.34 GB
Memory Efficiency: 12.23% of 60.00 GB (60.00 GB/node)