[Python-ideas] multiprocessing and physical CPU cores count
solipsis at pitrou.net
Thu Sep 12 23:15:57 CEST 2013
On Thu, 12 Sep 2013 22:19:45 +0200
Christian Heimes <christian at python.org>
> Am 12.09.2013 21:51, schrieb Giampaolo Rodola':
> > I'd be +0.5 for multiprocessing because:
> > - cpu_count() is already there
> > - physical_cpu_count() will likely be used by multiprocessing users only
> > ...but my main concern was first figuring out whether it might actually
> > make sense to distinguish between virtual and physical CPUs in a real
> > world app.
> I would go one step further and expose the topology of the CPUs. It's
> much, much more complicated than just physical and logical CPUs.
I'm not sure what the point would be. From the point of the view of an
application programmer, the CPU topology is an almost esoteric detail.
This would be appropriate for a third-party "system information"
package, IMO (with memory speed, number of PCIe channels, cache
More information about the Python-ideas