Madhu Reddy,
One thing you can't discount is disk drive I/O time. Do you know what the specs are for disks/controllers and their configurations between each machine? Could be that one disk setup is faster than another...... John :-) "Wiggins d'Anconia" <[EMAIL PROTECTED]> on 02/10/2003 04:22:44 PM To: Madhu Reddy <[EMAIL PROTECTED]> cc: [EMAIL PROTECTED] (bcc: John P Walls/EDS/FlipChip) Subject: Re: perl behaviour on Multi processor machine 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 ? > > Are the CPU's the same speed? On top of what Tanton already mentioned, there doesn't sound like anything you are doing is really compatible with a multi-processor environment. Are you using threads? fork/execs? etc. If you are running a single Perl process, no matter how many processors the machine has (assuming it doesn't do something like virtualize them into a single CPU) it won't speed up the single process. At least that is my understanding of an SMP environment (am I delusional anyone?). Theoretically you could do something like store the whole file to memory, divide the file in x number of parts, start x processes/threads to each parse 1/x (where x is the number of cpus) worth of the file, so that each thread processes part of the file itself. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Received: from pxfch003.flipchip.com ([65.36.85.140]) by usfctaz02.flipchip.com (Lotus SMTP MTA v4.6.3 (778.2 1-4-1999)) with SMTP id 07256CC9.00808089; Mon, 10 Feb 2003 16:23:35 -0700 Received: from onion.perl.org (onion.valueclick.com [64.70.54.95]) by pxfch003.flipchip.com (8.8.8/8.8.8) with SMTP id QAA29784 for <[EMAIL PROTECTED]>; Mon, 10 Feb 2003 16:23:59 -0700 (MST) Received: (qmail 48732 invoked by uid 1005); 10 Feb 2003 23:22:20 -0000 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Post: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 48714 invoked by uid 76); 10 Feb 2003 23:22:20 -0000 Received: from [EMAIL PROTECTED] (HELO ran-out.mx.develooper.com) (64.81.84.115) by onion.perl.org (qpsmtpd/0.20) with SMTP; 2003-02-10 23:22:20Z Received: (qmail 19464 invoked by uid 225); 10 Feb 2003 23:22:19 -0000 Delivered-To: [EMAIL PROTECTED] Received: (qmail 19459 invoked by uid 507); 10 Feb 2003 23:22:18 -0000 Received: from mailhost2-bcvloh.bcvloh.ameritech.net (HELO mailhost.bcv2.ameritech.net) (66.73.20.44) by one.develooper.com (qpsmtpd/0.21-dev) with SMTP; 2003-02-10 23:22:16Z Received: from danconia.org ([67.38.32.152]) by mailhost.bcv2.ameritech.net (InterMail vM.4.01.02.17 201-229-119) with ESMTP id <[EMAIL PROTECTED]>; Mon, 10 Feb 2003 18:21:49 -0500 Message-ID: <[EMAIL PROTECTED]> Date: Mon, 10 Feb 2003 18:22:44 -0500 From: "Wiggins d'Anconia" <[EMAIL PROTECTED]> Organization: http://danconia.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Madhu Reddy <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: perl behaviour on Multi processor machine References: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SMTPD: qpsmtpd/0.21-dev, http://develooper.com/code/qpsmtpd/ X-Spam-Check-By: one.develooper.com X-Spam-Status: No, hits=-1.7 required=7.0 tests=CARRIAGE_RETURNS,IN_REP_TO,NOSPAM_INC,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG version=2.43 X-SMTPD: qpsmtpd/0.20, http://develooper.com/code/qpsmtpd/ |---------------------------------------> |USFCTAZ02/FlipChip | |USFCTAZ01/FlipChip | |---------------------------------------> >---------------------------------------| |02/10/2003 04:23:52 PM - 02/10/2003 | |04:23:53 PM | |02/10/2003 04:26:59 PM - 02/10/2003 | |04:27:00 PM | >---------------------------------------| -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]