in reply to Re^2: Fork vs pThreads
in thread Fork vs pThreads
Why are you running as many children in parallel as you have rows? For 1000 rows, you will launch 1000 children in parallel.
The idea of Parallel::Forkmanager is to use the optimal number of parallel children, which is usually roughly the number of CPUs (or cores) of your machine, and not the number of tasks to be processed.
Other people have already recommended a smaller number of concurrent processes, like 4 or 8. Maybe you should try that suggestion.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Fork vs pThreads
by ThelmaJay (Novice) on Oct 21, 2013 at 14:15 UTC | |
by Corion (Patriarch) on Oct 21, 2013 at 15:02 UTC |