debian - Python multiprocessing behaves differently on several linux distributions -


i wrote scientific simulation environment using python 2.7.

i start several instances of simulation @ same time directly using process interface:

for in range(nr_cores):     p = process(target=worker, args=(i, nr_cores, scheduler, job, nr_iter, return_values, extremes, parameters,))     processes.append(p)     p.start()  process in processes:     process.join() 

this works flawlessly on

  • my fedora 21 machine running python 2.7.8 (kernel 3.19.3)
  • my osx machine running python 2.7.6

now tried install on debian 7.8 (kernel 3.2.63) machine python 2.7.3 , odd things started happen:

  • the number of processes listed in top greater spawn (14 instead of 2)
  • of these fourteen 2 running, rest sleeping
  • the 2 running processes share 1 core. other cores idle

i downloaded , compiled python 2.7.9 behavior same.

i remember seeing similar issue on debian machine, unfortunately can't remember version was.

has encountered before?

thanks

ok, found it. after poking around found this: why multiprocessing use single core after import numpy?

was issue. suggestion solved issue well


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -