4

2 つの vCPU を持つ GCE インスタンスで Microsoft R Open を使用しています。そのスペックはこちら。

$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    2
Core(s) per socket:    1
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 63
Model name:            Intel(R) Xeon(R) CPU @ 2.30GHz
Stepping:              0
CPU MHz:               2300.000
BogoMIPS:              4600.00
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              46080K
NUMA node0 CPU(s):     0,1
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush
 mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc
 eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hyp
ervisor lahf_lm abm fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms xsaveopt

私は 2 つのコアを持っていますが、Microsoft R Open はそのうちの 1 つしか認識しないようです。そのため、コンピューティング能力を十分に活用できていません。スレッド数を手動で設定することもできません。

Microsoft R Open 3.3.2
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2016 Microsoft Corporation
Using the Intel MKL for parallel mathematical computing(using 1 cores).
Default CRAN mirror snapshot taken on 2016-11-01.
See: https://mran.microsoft.com/.
> getMKLthreads()
[1] 1
> setMKLthreads(2)
Number of threads at maximum: no change has been made.

CPU使用率をグラフにしたものがこちら。CPU パワーの 50% 以上を使用することはありません。

ここに画像の説明を入力

では、すべてのコアを MRO で使用できるようにするにはどうすればよいですか?

4

2 に答える 2

3

ハイパースレッド化された Xeon を実行しています。ハイパースレッディングを備えた 1 つの CPU があり、OS はそれを 2 つの CPU として扱いますが、物理 CPU は 1 つしかありません。MRO は物理コアのみを使用します (ハイパー スレッディングなし)。

于 2017-01-09T08:32:37.510 に答える