Disadvantages of leaving parpool open?

5 vues (au cours des 30 derniers jours)
Matt J
Matt J le 7 Avr 2018
Commenté : Matt J le 11 Avr 2018
Given the lengthy time required to launch a parpool, I have considered just launching one at the start of every MATLAB session and setting the IdleTimeout parameter to Inf to force the pool to remain open for the entire session. What would be the downside of doing this while the pool isn't being actively used? Is there a performance penalty on serial code when a pool is left open in the background?

Réponse acceptée

Jason Ross
Jason Ross le 10 Avr 2018
You would have that number of MATLAB processes running and waiting for work, consuming computing resources from your machine. You can see this from whatever task list application exists on your platform.
Assuming your machine has the capacity to run those processes plus whatever you are doing serially there's not a downside. It would be the same as if you have some other number of arbitrary programs open while you are using MATLAB -- as long as everything stays in RAM and you have adequate processors to support it, you'll likely not notice.
  1 commentaire
Matt J
Matt J le 11 Avr 2018
Great! Thanks a lot.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Parallel Computing Fundamentals dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by