This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hadim
Recipients hadim
Date 2013-01-26.09:39:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359193163.5.0.985528068255.issue17038@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

This is the first time I report a bug so if I did something wrong please let me know. I also tried to ask on #python and #python-fr before posting here to know if it was a bug or a possible multiprocessing limitation on Linux. So I'm sorry if it's not a bug... 

The problem appears when a module with .c compiled file is imported (sush as numpy, scipy, pandas, tables, skimage, I did not tested with a custom .c module). Multiprocessing and more specifically imap and map method of Pool class did not distribute processes along all the core but only on one core. This problem does not appears when I don't import a module with .c compiled.

I know distributing processes along cores is specific to the OS implementation and not related to Python but I said that to illustrate the behaviour.

I should notice that I did not see the bug with a Windows 7, 32 bits (Virtualbox).

My laptop run with the latest ubuntu 64bits (tested with both kernel 3.5 and 3.8 last rc). It's a classic Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz with 4 cores.

You can try to reproduce the bug with the attached file. You can also find the same file here : http://pastebin.com/jqq9G5Ph

Thank you for your time !
History
Date User Action Args
2013-01-26 09:39:23hadimsetrecipients: + hadim
2013-01-26 09:39:23hadimsetmessageid: <1359193163.5.0.985528068255.issue17038@psf.upfronthosting.co.za>
2013-01-26 09:39:23hadimlinkissue17038 messages
2013-01-26 09:39:22hadimcreate