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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |