How do I run 512 processes in batches of 64
Asked by
tomdean
I have a task that can be divided into chunks. The current one is 512 distinct processes.
I can run each one in a loop. That takes lots of time.
I have an AMD 3970X CPU so I can run 64 processes at a time.
I now have a script that cycles through all the processes, stopping to wait after 64 processes have been started. This is a significant improvement.
I think this can be improved:
- start 64 processes
- as each one completes, start another one.
I am looking into using sockets.
- start 63 processes - each one waiting on a socket
- send a job to each socket
- as each socket becomes available send another job
How do I do this?
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.