Changing my OS reduced maximum number of threads for parallel processing

24 visualizaciones (últimos 30 días)
Liam
Liam el 25 de Sept. de 2024
Movida: Edric Ellis el 11 de Ag. de 2025
I recently changed my OS system from Fedora to Ubuntu 24.04. On Fedora I could setup a thread-based parallel pool with 10 threads no problem (parpool('threads', 10). When I try doing the same thing in Ubuntu, I get the following error:
'A minimum pool size of 10 was requested. The maximum thread-based pool size is currently 2.'
I've tried a couple of things with no luck
  • maxNumCompThreads(10)
  • I checked nproc to make sure that Ubuntu recognizes all the CPU's - it does
  • reinstalled the parallel computing toolbox
  • Varying the settings in cluster profile manager
Is there anything else I could try?
  4 comentarios
Damian Pietrus
Damian Pietrus el 26 de Sept. de 2024
Interesting. What model of CPU are you using -- does it have a mix of "performance" and "efficiency" cores? Do you have the same issue when using the Processes profile?
Liam
Liam el 30 de Sept. de 2024
Intel® Core™ i7-1250U Processor : 2 Performance Cores and 10 Efficiency Cores
Which I'm guessing is the issue, but it seems weird that it works fine in Fedora
I get the same issue with Processes:
>> parpool("processes", 10)
Starting parallel pool (parpool) using the 'processes' profile ... Error using parpool (line 133)
Too many workers requested. The cluster "processes" has the NumWorkers property set to a maximum of 2 workers but 10 workers were requested. Either request a number of workers less than NumWorkers, or increase the value of the NumWorkers property for the cluster (up to a maximum of 512 for the Local cluster).

Iniciar sesión para comentar.

Respuestas (1)

Damian Pietrus
Damian Pietrus el 8 de Oct. de 2024
Movida: Edric Ellis el 11 de Ag. de 2025
Hey Liam,
That difference between performance and efficiency cores is exactly the reason you're getting this message. MATLAB processes should only be run on the performance cores to avoid resource issues, so Ubuntu in this case is doing the right thing. Do you happen to remember the specific version of Fedora you were using? It looks like it did not distinguish any difference between the core types. I'd like to pass this behavior along to development just so they're aware.

Categorías

Más información sobre Parallel Computing Fundamentals en Help Center y File Exchange.

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by