multiprocessing as batch system

N

Neal Becker

I'm using multiprocessing as a poor man's batch system. It is working OK,
except that it doesn't seem to do load balancing quite right.

I have a 8-cpu machine. If I start, using multiprocessing pool, calling map
with more than 8 elements, it will start 8 processes. It seems, though,
that when some of them finish, it does not start others right away. The
load average may be a lot less than 8 but still additional processes are not
active.

Is there a way to use multiprocessing to achieve the effect I want? (I
really want a simple batch system, but without complex setup)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top