parpool problems: fewer running processes than workers
1 次查看(过去 30 天)
显示 更早的评论
I'm currently trying to debug a problem with my parallel computing toolbox setup. I'm running MATLAB 2016a in a CentOS virtual machine, and have assigned the guest machine 22 cores. My host machine has 88 cores.
I have started a parpool with 22 workers, and if I terminate my job and look at the pool properties, it does, in fact, indicate that I am running 22 workers:
p = gcp('nocreate')
p =
Pool with properties:
Connected: true
NumWorkers: 22
Cluster: local
AttachedFiles: {}
IdleTimeout: 30 minute(s) (30 minutes remaining)
SpmdEnabled: true
Here is the problem: If I look at 'htop' in the guest, only 12 worker processes will be running at a time, as shown in this screenshot:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155070/image.png)
I can confirm that my guest vm IS utilizing 22 different cores on the host machine, but will only fully utilize 12 of those cores at a time.
Any suggestions?
1 个评论
Thomas Ibbotson
2016-7-27
I think we'd need to see what code you are running on the pool to have any chance of figuring this out. Can you provide that?
You clearly have plenty of workers, in fact I count 39 in your screenshot, so you should be able to use them all. The fact you're only getting 12 is a little suspicious because that's the default number of workers Parallel Computing Toolbox uses for pools.
回答(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!