[Python-ideas] multiprocessing and physical CPU cores count
ckaynor at zindagigames.com
Thu Sep 12 21:20:08 CEST 2013
On Thu, Sep 12, 2013 at 12:10 PM, Antoine Pitrou <solipsis at pitrou.net>wrote:
> On Thu, 12 Sep 2013 20:59:46 +0200
> "Giampaolo Rodola'" <g.rodola at gmail.com>
> > This is a follow up of a feature request which recently appeared on
> > bug tracker:
> > https://code.google.com/p/psutil/issues/detail?id=427
> > I don't know whether the proposal makes sense for psutil per-se but it
> > certainly made me think about multiprocessing.cpu_count() and the fact
> > it currently returns the number of virtual CPUs (physical + logical).
> > Given that multiple processes cannot take any advantage of hyper
> > technology
> Of course they can. The CPU doesn't distinguish between different
> kinds of "threads", they can either belong to the same process or to
> different ones.
Antoine's claim is backed by a document written by Intel:
in the section "Software Use of Intel HT Technology".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas