Alright so I found the answer myself. In the parpool documentation no less! The problem was the startup.m file I used. Removing it from the search path lead to much lower memory usage and quicker pool creation.
Memory usage of parpool balloons in dual CPU system, then decreases after 20 minutes
5 次查看(过去 30 天)
显示 更早的评论
Hi,
I just installed a second CPU on my motherboard in the hopes of leveraging its extra processing power using parallel computing in Matlab. However I noticed that memory usage is much higher when creating a parallel pool.
When creating a pool of any size, memory usage is approximately double in the dual CPU setting compared to the single CPU setting. Just to be clear, I'm comparing single and dual CPU memory usage with the same number of workers (4 workers in both cases, 8 workers in both cases etc).
I was wondering if this is something that is inherent to parallel computing in Matlab on dual CPU systems or whether there is a settings tweak that might help with this.
[edit] I just noticed that the memory usage declines to 'normal' levels after running for about 47 minutes. During this time Matlab is running the same script, running mainly permutation tests on one dataset; no new data is being loaded or saved. The decrease in memory load happens gradually, over the course of about one minute, which makes me wonder what's going on exactly. If certain data is simply being disregarded, I would expect it to happen more quickly.
Thanks, best, Paul
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!