MATLAB: Just Curious, when I run parallel computing with k cores, why there are k matlab background processes in the task manager on the machine

clustercpu consumptionparallel computingparpoolprofile

I'm recently running some simulations using matlab parallel computing with 100 cores(distributed across 10 nodes) on a computing cluster of my university. However, I received warnings about consuming too much CPUs on the node where I ran my file(after logging in). I checked the task manager and found that there are 100 matlabs launched as background processes, each one consuming an equal amount of CPU on this node(that's why total CPU consumption quickly blow up). Once I shut down 'parpool', those background processes disappeared. Just curious about what is going on there, why does matlab start a background process for each parallel on my machine? What are these background processes for?

Best Answer

That's how parallel labs in the Parallel Computing Toolbox work. Essentially, they each run their own separate MATLAB session.