Hi, Thanx all for u r input... I ran only once on two systems for comparision....
What i observed is, when i ran on small machine ( 1cpu and 512 MB ram), CPU utilisations going to above 95 %...memory utilisation is 50% and when i ran on 4 cpu machines, cpu utilisation is not more than 50%...memory utilisations is 10% on 4 CPU machine, so many other applications are running... I think their my script not scheduled continuously... is theards on perl are good ? I never used threads in perl..i used in unix... is it good idea to use threads to validate such a huge records (22 millions) ? Thanx -Madhu --- david <[EMAIL PROTECTED]> wrote: > Madhu Reddy wrote: > > > Hi, > > 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.... > > > > Any body have idea why it is taking more time on > > multi processor system ? > > > > there are a lot of reason why your script runs > slower in a more powerful > machine but i am a bit suprise by your finding, how > many test have you done > to compare the result in these 2 machines? one? or > have you test at least > say, 10 times, and average the process time between > the 2? > > a machine with 4 cpu and 3gb of memory is definitely > hard wired to crunch > number and boost i/o performance. not accounting for > machine load, there is > very little reason your Perl script will run slower > on a powerful machine. > i don't believe i/o is the bottleneck in your 4cpu > machine. again, if the > machine has heavy load then it could be the reason > but hardware wise, it > shouldn't. > > david > > -- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]