[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
Change by yanir hainick : -- components: Windows nosy: paul.moore, steve.dower, tim.golden, yanirh, zach.ware priority: normal severity: normal status: open type: behavior ___ Python tracker <https://bugs.python.org/issue33

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
yanir hainick added the comment: wrong number of cpu's is reported on some specific platforms. *** first platform: server with X4 Intel Xeon E5-4620 (8 physical, 16 logical), running a 64bit Windows Server 2012 R2 Standard. results: os.cpu_count() reports 64 units psutil.cpu_count(lo

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
yanir hainick added the comment: Yup. Attaching a screenshot. -- Added file: https://bugs.python.org/file47504/Screenshot.png ___ Python tracker <https://bugs.python.org/issue33

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
yanir hainick added the comment: Maybe i'm missing something, and would appreciate clarification. Perhaps psutil is wrong, but it gives an answer that has something to do with the actual situation. On platform 2, i have 2 Intel Xeon Gold 6138, each with 20 physical processors, 40 log

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
yanir hainick added the comment: Yes. Both are wrong, and os.cpu_count() is completely off. Regarding how to determine the number of physical/logical cores in my machine - well, not sure what you mean by that. I've attached a screenshot of Windows' system information. Also used &#

[issue33166] os.cpu_count() returns wrong number of processors on specific systems

2018-03-28 Thread yanir hainick
yanir hainick added the comment: Ok, no problem. Just to be sure i'm doing the right thing - this thread will be dedicated to the os.cpu_count() issue, and i'll open a new issue on the parallelization problem. makes sense? -- ___ Pyth

[issue33171] multiprocessing won't utilize all of platform resources

2018-03-28 Thread yanir hainick
New submission from yanir hainick : I'm using either multiprocessing package or concurrent.futures for some embarrassingly parallel application. I performed a simple test: basically making n_jobs calls for a simple function - 'sum(list(range(n)))', with n large enough so that t