<div dir="ltr"><div>This is a follow up of a feature request which recently appeared on psutil bug tracker:</div><div><a href="https://code.google.com/p/psutil/issues/detail?id=427">https://code.google.com/p/psutil/issues/detail?id=427</a></div>

<div><br></div><div>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 that it currently returns the number of virtual CPUs (physical + logical).</div>

<div><br></div><div>Given that multiple processes cannot take any advantage of hyper threading technology then maybe it makes sense for multiprocessing to expose a physical_cpu_count() function in order to preemptively figure out how many processes to spawn.</div>

<div><br>Same thing is discussed here:</div><div><a href="https://groups.google.com/forum/#!msg/nzpug/_5sFW9BEMQ4/Y4laXRNlXkMJ">https://groups.google.com/forum/#!msg/nzpug/_5sFW9BEMQ4/Y4laXRNlXkMJ</a><br></div><div><br></div>

<div>Thoughts?<br></div><div><br></div><div>--- Giampaolo</div><div><a href="https://code.google.com/p/pyftpdlib/">https://code.google.com/p/pyftpdlib/</a></div><div><a href="https://code.google.com/p/psutil/">https://code.google.com/p/psutil/</a></div>

<div><a href="https://code.google.com/p/pysendfile/">https://code.google.com/p/pysendfile/</a></div></div>