LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-11-2009, 01:35 PM   #1
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Rep: Reputation: 27
system performance


Hi All,

Need help to trouble shoot system performance

2 servers with the same configurations, One server performs very well cpu usage is below 20% but the second server it goes above 100%

Hardware:
IBM x3550, 10GB RAM, 2 Quad Core 2.66, 146 15k SAS HDD.
RAID 0

OS Centos 5.3
APPS JBOSS 4.2.3


iostat
###################
Linux 2.6.18-128.1.10.el5.centos.plus (web3) 07/11/2009

avg-cpu: %user %nice %system %iowait %steal %idle
0.24 0.00 0.01 0.01 0.00 99.73

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 0.37 0.36 9.25 742524 19080318
sda1 0.00 0.00 0.00 2082 46
sda2 0.00 0.00 0.00 1728 0
sda3 0.37 0.36 9.25 738378 19080272

iostat -xd
###########################
Linux 2.6.18-128.1.10.el5.centos.plus (web3) 07/11/2009

Dev: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 0.80 0.01 0.35 0.36 9.25 26.18 0.01 26.12 4.77 0.18
sda1 0.00 0.00 0.00 0.00 0.00 0.00 17.02 0.00 13.12 8.40 0.00
sda2 0.00 0.00 0.00 0.00 0.00 0.00 36.77 0.00 10.68 9.55 0.00
sda3 0.00 0.80 0.01 0.35 0.36 9.25 26.18 0.01 26.12 4.77 0.18

hdparm -tT /dev/sda
##############################
/dev/sda:
Timing cached reads: 18572 MB in 1.99 seconds = 9310.58 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
Timing buffered disk reads: 314 MB in 3.02 seconds = 103.86 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device

Mount Points
==============
/dev/sda1 /boot
/dev/sda2 swap
/dev/sda3 /

Can someone explain me how should I consider avgrq-sz, avgqu-sz, await, svctm, %util to calculate the system performance

meaning
await min should be this figure for 15k HDD
svctm should be this much and so on..

I am really confused reading the documentations


Please help

//Remy
 
Old 07-11-2009, 02:01 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
That says 0.26% CPU usage. get a snapshot of "w" and "ps -ef" when the system is under load.
 
Old 07-12-2009, 12:28 AM   #3
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by AlucardZero View Post
That says 0.26% CPU usage. get a snapshot of "w" and "ps -ef" when the system is under load.
Sure I will capture the output of w and ps -ef and post it.

Mean while

I captured the output of top for the user running JBOSS Apps with a sleep of 5 sec in a while loop

top -b -n 1 <PID_OF_USER_RUNNING_JBOSS> >> /tmp/log.txt &

kept monitoring the file as well as the top command output

tail -f /tmp/log.txt and in another window monitor the output of top

the output of both differ
eg:

Output1
In the log file it shows 102% CPU
top will show 85% CPU

Output2
In the log file it shows 45% CPU
top will show 72% CPU

and so on..

Is it because of the time interval?

Can some one explain me?

//Remy
 
Old 07-12-2009, 01:34 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
yess in default top updating result every 3 seconds so it will result average of 3 seconds values however you can change this time interval
 
Old 07-12-2009, 03:44 AM   #5
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by kirukan View Post
yess in default top updating result every 3 seconds so it will result average of 3 seconds values however you can change this time interval
output of w

08:42:01 up 24 days, 11:21, 4 users, load average: 0.84, 1.00, 1.15
"USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT"
"root pts/1 <MY IP> 04:29 11:07 1.39s 0.05s -bash"
"aares00 pts/2 <MY IP> 07:10 1:29m 10.91s 10.90s top"
"root pts/3 <MY IP> 05:29 0.00s 0.03s 0.03s -bash"


output of ps is attached
Attached Files
File Type: txt ps.txt (10.8 KB, 12 views)

Last edited by mario.almeida; 07-12-2009 at 02:47 PM.
 
Old 07-12-2009, 05:57 AM   #6
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
wrap CODE or QUOTE, please use these formatting tools to format your outputs
 
Old 07-12-2009, 08:45 AM   #7
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by kirukan View Post
wrap CODE or QUOTE, please use these formatting tools to format your outputs
Should I repost?
 
Old 07-12-2009, 08:47 AM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
No, you can edit your post.

Sorry, can you get "ps aux" instead? I'm too used to Unixes where "aux" doesn't work, but that's what we want here.

You have two quad cores, so eight cores. Your load average is only around 1; it's not Bad until you get above 8 (1/core), then you're overloaded.

Last edited by AlucardZero; 07-12-2009 at 08:49 AM.
 
Old 07-13-2009, 01:44 AM   #9
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by AlucardZero View Post
No, you can edit your post.

Sorry, can you get "ps aux" instead? I'm too used to Unixes where "aux" doesn't work, but that's what we want here.

You have two quad cores, so eight cores. Your load average is only around 1; it's not Bad until you get above 8 (1/core), then you're overloaded.
Out put of ps aux attached
Attached Files
File Type: txt ps.txt (12.1 KB, 12 views)
 
Old 07-13-2009, 08:14 AM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Well, there's nothing using the CPU in that snapshot, and there are not processess in uninterruptible sleep (state 'D'). I don't see a problem in that snapshot.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System Performance Alerting zeeple Linux - Server 2 08-08-2007 10:59 AM
performance on an OLD system Trazzt Linux - General 7 08-31-2004 09:30 AM
System Performance monitor? BrianPM Linux - Newbie 1 11-06-2003 01:04 PM
System Performance kojiroh General 0 10-09-2003 03:01 AM
System Performance? WeNdeL Linux - General 1 10-07-2003 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:56 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