AWS ec2实例上的Pool进程数

时间:2019-05-08 18:26:51

标签: python-2.7 amazon-ec2 python-multiprocessing

我在Ubuntu ec2实例中有一个python脚本,该实例使用多进程池进行并行化。该实例的类型为t2.xlarge。并具有以下CPU体系结构。安全值需要多少流程?

这就是我现在拥有的: 池=池(进程= 2)

lscpu -- 
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 79
Model name:            Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz
Stepping:              1
CPU MHz:               2300.042
BogoMIPS:              4600.08
Hypervisor vendor:     Xen
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              46080K
NUMA node0 CPU(s):     0-3

0 个答案:

没有答案