How can I arrange the number of workers and number of computational threads?

조회 수: 16(최근 30일)
Jinsoo 2020년 2월 4일
댓글: Jason Ross 2021년 5월 4일
I'm using workstation of 44 cpu and 88 threads.
In this case, how can I arrange the number of workers and number of computational threads in Cluster Profile Manager?
Actually, I've arranged Number of workers (86) and Number of compuational threads (2).
However, I wonder whether it's the optimal setting or not.
Could you please let me know how to arrange it optimally?
I'm looking forward to hearing from you.^^

채택된 답변

Jason Ross
Jason Ross 2020년 2월 4일
편집: Jason Ross 2020년 2월 4일
In my experience, the best performance comes from setting the number of workers to the number of real CPUs that you have, which should be the default. The workers end up waiting on the compute resources and there's no appreciable performance improvement, just more processes taking up more system resources.
The other things to watch for are
  • exceeding system RAM limits -- using virtual memory is many times slower than RAM, so you may go faster with fewer workers.
  • Getting blocked on storage I/O -- CPUs sit idle waiting on files to be read or write, meaning that the problem is not CPU-bound.
To optimize this you need to watch the system as it's running (there are plenty of graphical monitoring tools built into a modern OS), or save perfomance logs and then analyze them (these utilities have existed for a while on all platforms)
Other optimizations exist from analyzing your code with profiling tools and looking for ways to make slow sections of code faster.
  댓글 수: 3

댓글을 달려면 로그인하십시오.

추가 답변(0개)




Community Treasure Hunt

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

Start Hunting!

Translated by