in reply to Perl and mutli processors

Hi,

if you have a long-run type of script, the script itself will not run any (significantly) faster on a SMP system, than on a single CPU machine.

Linux OS SMP supports' granularity is per-process, so you gain a speedup if you let run two of your scripts in parallel (on a Dual-Machine) etc. etc.

However - If you user the magic of Threads (since 5.8.0 practicable), you may gain a speedup of a single process on a SMP system.

Bye
 PetaMem

Replies are listed 'Best First'.
Re: Re: Perl and mutli processors
by Sihal (Pilgrim) on Oct 14, 2002 at 10:50 UTC
    but everyone seems to agree that the load will be distributed evenly between the 2 proc wich means probably more ressources for my script, since all load generated by apache and mysql can be distributed between the proc...