Thanks a lot for your efforts I will apply these changes and let you know the outcomes. meanwhile I ran the same script on my sunSO server and surprising there it was taking only 4 to 5% of cpu..on the other hand on my Linux server it was taking 99 to 100%.. why there is such a large difference... and it also shows that there is not much wrong with our script.. also please fiind my server details.

Linux server where I am supposed to run the script and its causing issues...

YZP4M2:~ # uname -a Linux YZP4M2 2.6.5-7.308-smp #1 SMP Mon Dec 10 11:36:40 UTC 2007 x86_6 +4 x86_64 x86_64 GNU/Linux YZP4M2:~ # less /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 13 model name : Intel(R) Xeon(R) CPU E7420 @ 2.13GHz stepping : 1 cpu MHz : 2133.414 cache size : 3072 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge + mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm sysca +ll lm pni monitor ds_cp l est cmpxchg16b dca lahf_lm bogomips : 4227.07 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: YZP4M2:~ # cat /proc/cpuinfo | grep processor | wc -l 16 YZP4M2:~ # free total used free shared buffers cac +hed Mem: 8158176 8132864 25312 0 4468 1314 +884 -/+ buffers/cache: 6813512 1344664 Swap: 2104472 2104132 340

details of solaris server where script is running fine

# psrinfo -v Status of virtual processor 0 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:50. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 1 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 2 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 3 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 8 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 9 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 10 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 11 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 16 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1200 MHz, and has a sparcv9 floating point processor. Status of virtual processor 18 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1200 MHz, and has a sparcv9 floating point processor. Status of virtual processor 19 as of: 11/26/2014 10:48:52 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1200 MHz, and has a sparcv9 floating point processor. Status of virtual processor 512 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 513 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 514 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 515 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 520 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 521 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 522 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 523 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1800 MHz, and has a sparcv9 floating point processor. Status of virtual processor 528 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1200 MHz, and has a sparcv9 floating point processor. Status of virtual processor 530 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1200 MHz, and has a sparcv9 floating point processor. Status of virtual processor 531 as of: 11/26/2014 10:48:53 on-line since 12/16/2013 19:50:51. The sparcv9 processor operates at 1200 MHz, and has a sparcv9 floating point processor. # prtconf | grep Memory Memory size: 45056 Megabytes

In reply to Re^4: Is 100% CPU utilisation during a procees is aproblem? by Ankur_kuls
in thread Is 100% CPU utilisation during a procees is aproblem? by Ankur_kuls

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.