"
Java线程池吗?你cpu是单线程的,所以IO密集型时线程配置cpu*2个就好,cpu密集型的配置CPU个数+1就好
######回复 <a href=""https://my.oschina.net/itlong"" class=""referer"" target=""_blank"">@qycms_cn :现在 懂了。一直以为6核6线程是每核6线程呢。######回复 <a href=""https://my.oschina.net/fly2xiang"" class=""referer"" target=""_blank"">@fly2xiang : 正确,这个CPU不算什么高端的CPU, 总共6个核心,每个核心只有一个线程,总共有6个线程序。lscpu命令,可以看到更加详细的参数。######回复 <a href=""https://my.oschina.net/fir01"" class=""referer"" target=""_blank"">@fir01 : 应该不是每个核6个线程,而是一共6个线程######因该是6个核,每核六线程,怎么配置ignite线程。######你要做什么?配置6个线程就行了吧?######
root@ZRPGS:~# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
stepping : 1
cpu MHz : 1200.027
cache size : 15360 KB
physical id : 0
siblings : 6
core id : 0
cpu cores : 6
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
bugs :
bogomips : 3392.10
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
...................................................................................................
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
stepping : 1
cpu MHz : 1199.960
cache size : 15360 KB
physical id : 0
siblings : 6
core id : 1
cpu cores : 6
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
bugs :
bogomips : 3392.10
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
................................................................................................
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
stepping : 1
cpu MHz : 1200.160
cache size : 15360 KB
physical id : 0
siblings : 6
core id : 2
cpu cores : 6
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
bugs :
bogomips : 3392.10
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
..............................................................................................
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
stepping : 1
cpu MHz : 1200.160
cache size : 15360 KB
physical id : 0
siblings : 6
core id : 3
cpu cores : 6
apicid : 6
initial apicid : 6
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
bugs :
bogomips : 3392.10
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
............................................................................................
processor : 4
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
stepping : 1
cpu MHz : 1200.027
cache size : 15360 KB
physical id : 0
siblings : 6
core id : 4
cpu cores : 6
apicid : 8
initial apicid : 8
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
bugs :
bogomips : 3392.10
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
...............................................................................................
processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
stepping : 1
cpu MHz : 1200.027
cache size : 15360 KB
physical id : 0
siblings : 6
core id : 5
cpu cores : 6
apicid : 10
initial apicid : 10
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
..................................................................................................
######<div class=""ref"">
引用来自“HeartArea”的评论
Java线程池吗?你cpu是单线程的,所以IO密集型时线程配置cpu*2个就好,cpu密集型的配置CPU个数+1就好
回复
@qycms_cn :
root
@ubuntu :~# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 6
On-line CPU(s) list: 0-5
Thread(s) per core: 1
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 79
Stepping: 1
CPU MHz: 1200.027
BogoMIPS: 3392.22
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 15360K
NUMA node0 CPU(s): 0-5"