http://qs321.pair.com?node_id=463890


in reply to Forking and running all child processes at the same time

As an aside -- why do you think processing the log files in parallel will increase throughput? If the log parsing is I/O bound, you'll only generate more I/O contention and possibly even increase overall execution times. If the process is CPU bound, you will need to run this on a multi processor machine (of whatever flavour is available) to benefit. If it's a single processor machine, you'll only benefit if the parsing is just the right combination of I/O vs CPU bound, and then only if you keep the number of concurrent processes quite low.

So, in short, if you're not running on a multiprocessor machine, make sure that this is not a case of premature optimisation.

CU
Robartes-