LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-14-2009, 11:49 AM   #1
mohitanchlia
Member
 
Registered: Aug 2008
Posts: 60

Rep: Reputation: 15
HIGH CPU on one core out of 8


While monitoring CPU I observed that CPU core 0 (/proc/cpuinfo) is most busy all the time. Our application is multithreaded running in Jboss app server. I would assume that the threads would be scheduled evenly on all the CPU cores (quad core) but it doesn't seem to be the case. There seems to be some problem with schceduling. One CORE (core 0) is always busy and all others are barely not doing anything. My question is what to look for to improve this behaviour. We don't have any affinity set so all threads should be scheduled evenly accross all the cores.
 
Old 02-14-2009, 01:35 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

My own experience is that JBoss does a pretty good job of scheduling workloads across multiple CPUs.

The first thing you need to do is figure out *which* process is hogging CPU 0. It's very likely a specific process (rather than a bunch of different programs), but it *isn't* necessarily a JBoss-related process.

NOTE:
Discussion continued under this thread:
http://www.linuxquestions.org/questi...-usage-704640/

Last edited by paulsm4; 02-16-2009 at 12:19 AM. Reason: OP posted duplicate thread
 
Old 02-15-2009, 09:23 AM   #3
mohitanchlia
Member
 
Registered: Aug 2008
Posts: 60

Original Poster
Rep: Reputation: 15
I already checked that it's Jboss that takes most of the CPU. I am not sure how to see or where to look to see how threads are being scheduled or how OS is scheduling threads and processes. I am not sure why Core 0 is always busy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU usage too high! rock.k Linux - Newbie 4 03-01-2008 04:48 AM
High CPU ariana Linux - Server 3 07-28-2007 02:09 AM
High CPU usage ?! Why? skate Linux - Software 1 04-11-2007 05:55 AM
High CPU john.s Linux - Hardware 2 06-10-2006 10:48 PM
crontab high CPU teeno Linux - Software 7 10-06-2003 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration