Results 1 to 2 of 2
Hi I am facing an high CPU Usage 800% in a(Quad CPU, RHEL 64 bit kernel) with my C++ application . THe details are below:
1) The C++ Application has ...
- 02-10-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 1
C++ Application CPU Usage goes to 800% in a(Quad CPU) in RHEL 64 bit kernel
Hi I am facing an high CPU Usage 800% in a(Quad CPU, RHEL 64 bit kernel) with my C++ application . THe details are below:
1) The C++ Application has been compiled in RHEL (2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux)32 bit server(Quad CPU – 8 cpu) in Dev lab. When this application has been tested for 12 hrs in the Dev lab, the CPU usage is varying between 20% to 50% .
However, when the above C++ application deployed in production which is RHEL (2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64 x86_64 x86_64 GNU/Linux)64 bit server the CPU usage is found to be increasing constantly to 800%.
2) When the CPU reached to 800% in Production Server, we have taken the pstack of the C++ Application process by using the command “pstack –p [captured thread id ]” and we found that the pstack is showing the high CPU usage (800%) in below libraries:
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00798cf6 in pthread_cond_wait@@GLIBC_2.3.2 ()
#2 0x08051233 in CxOsEvent::WaitForEvent ()
#3 0x0818deae in workerThread::ThreadProc ()
#4 0x007963cc in start_thread () from /lib/tls/libpthread.so.0
#5 0x006281ae in clone () from /lib/tls/libc.so.6
Please let us know if there is any GLIB /pthread library/any other differences between 32 bit and 64 bit kernel. Since the application has been compiled in a 32 bit kernel and deployed in 64 bit kernel. Please provide your support on the same.
- 02-10-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
What happens if you compile it on the 64bit system? If you do that and its CPU utliization drops to reasonable levels, then you know it is probably the 32-bit libraries on the 64-bit system that are the problem, else some subtle interaction with the 64-bit kernel.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote