JavaはDebianで最大8個のコアを使用しますが、16個も使用できます。

JavaはDebianで最大8個のコアを使用しますが、16個も使用できます。

私は2つのサーバーを持っており、どちらも16コアです。最初はDebianを実行し、2番目はUbuntuを実行します。

私は16個のスレッドを生成する小さなマルチスレッドJavaアプリケーションを作成しました。 Debianシステムでは、プログラムは最大8つのコアを使用し、Ubuntuシステムではプログラムは16のコアをすべて使用します。

私のプログラムとハードウェアが同じであるため、使用されるカーネルはLinux自体によって制限されるべきです。この制限の理由は何ですか?この制限をどのように増やすことができますか?

/proc/cpuinfo(i = 0〜15):

processor   : i
vendor_id   : GenuineIntel
cpu family  : 6
model       : 44
model name  : Intel(R) Xeon(R) CPU           E5630  @ 2.53GHz
stepping    : 2
cpu MHz     : 2533.390
cache size  : 12288 KB
physical id : 1
siblings    : 8
core id     : 10
cpu cores   : 4
apicid      : 53
initial apicid  : 53
fpu     : yes
fpu_exception   : yes
cpuid level : 11
wp      : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt aes lahf_lm ida arat epb dts tpr_shadow vnmi flexpriority ept vpid
bogomips    : 5066.86
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

Javaバージョン:

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

名前-a:

Linux servername 2.6.38-2-amd64 #1 SMP Thu Apr 7 04:28:07 UTC 2011 x86_64 GNU/Linux

ベストアンサー1

おすすめ記事