in reply to Re^3: unix loops in perl
in thread unix loops in perl
If each process takes up very little resources, then the overhead of creating them will cause it all to go slower.
If the bottleneck is network or memory, then extra processes won't help.
If the bottleneck is CPU, then the processes will let you use more cores, so that will help to a point. You probably don't have 30 cores, so a smaller number of them doing more work each would be better.
If you've got a healthy mix of resources, then a second process could help, allowing one to crunch numbers while the other waits for the disk and then vice versa.
Like so many things in life, one is good, a few more are convenient, but too much will kill you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: unix loops in perl
by i5513 (Pilgrim) on Oct 26, 2011 at 22:21 UTC | |
by SuicideJunkie (Vicar) on Oct 27, 2011 at 14:22 UTC | |
by i5513 (Pilgrim) on Oct 27, 2011 at 22:32 UTC |