From: Madhu Reddy <[EMAIL PROTECTED]>
>    When i ran perl script on multi processor
> machine...
> it is taking more time as than on single processor
> machine....
> 
> Let me explain clearly....
> 
> I have big file (.5Gb) it has 8 million records...
> my perl script will read each record and validates..
> Validation includes..checking each record lenghth
> etc....
> 
> When i ran this script on single processor machine
> With 256MB RAM, It took 3 min to process 8 million
> records...
> 
> If ran the same script on Multi processor machine
> (4 CPU's and 3GB RAM), it took 6min....

Unless the processing contains some SQL server or something similar 
(basicaly some other process doing part of the work) you can't get 
any improvement from the several processors. You script can run only 
on one CPU at a time. The only way to peruse the several processors 
would be to split the task in four.

The slowdown could have been caused by
        1) slower filesystem
        2) slower processors (as I said you are using just one of the four)
        3) overhead of multiprocessing (I would not expect this to pay a big 
role)
        4) something I forgot to mention or do not know about

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to