I noticed that ParallelTable of Mathematica doesn't work well on my linux computer. WolframKernel uses just one cpu core.

then I find enter image description here

That's weird..

I want to use more cores to speed up my codes, What can I do?

| improve this question | | | | |
  • 1
    $\begingroup$ Have you checked LaunchKernels[...]? $\endgroup$ – anderstood Apr 13 '17 at 14:20
  • $\begingroup$ "every time WolframKernel uses just one cpu core" <- Actually, each WolframKernel uses at least one CPU core. You should have as many WolframKernels running as you have CPU cores. Most operations within a single kernel use only one CPU core. Some operations, such as matrix product (and on occasion: NIntegrate) will use many. $\endgroup$ – Szabolcs Apr 13 '17 at 14:37
  • 1
    $\begingroup$ Can you show evidence that only one subkernel is running? People will not be able to help unless they can reproduce the problem. $\endgroup$ – Szabolcs Apr 13 '17 at 16:12
  • $\begingroup$ What does wolframscript -code '$ConfiguredKernels' output? $\endgroup$ – Szabolcs Apr 14 '17 at 8:14
  • $\begingroup$ Also, can you show a reproducible example? The example you show runs so fast that parallelization is pointless, and you couldn't possibly check the task monitor before it finishes. Show something that runs for at least 10 seconds. Make the example complete, so we can try it without having to edit it in any way. $\endgroup$ – Szabolcs Apr 14 '17 at 8:16