LinuxQuestions.org
Help answer threads with 0 replies.
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-22-2014, 10:12 AM   #1
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
Tracking down high loadavg


Hi there,

I've got a bit of a strange situation here. I've got a server running about 30 virtual desktops. It has a loadavg of about 18 with spikes to 25 on a quad core machine and I don't know where it comes from.

What I've checked so far:
  • The swap partition (5GB) is nearly full but no swap in/swap out activity is taking place so I guess this is a left over from some process in the past but causing no harm.
  • free shows I've got 38GB of 94GB RAM free
  • top shows the CPU load as follows: Cpu(s): 9.9%us, 2.6%sy, 0.0%ni, 87.4%id, 0.1%wa, 0.0%hi, 0.1%si, 0.0%st
  • iostat shows virtually no read or write activity on any disk.
  • I've checked IRQ activity and by far the highest IRQ activity I can see is on the ethernet port

Anyone an idea what else can cause such a high loadavg on a seemingly unloaded machine?
 
Old 07-22-2014, 03:18 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Can you share the output of the following:

1. grep proc /proc/cpuinfo
2. lscpu
3. vmstat 1 10
4. uptime
5. free -m

Put the output of above commands in "code" so that it will be easy to read. Also, which linux you are using?
 
Old 07-22-2014, 07:37 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If it affecting your SLAs ?. If not why do you care.
Oftentimes it's some crappy software (Oracle, Apache come to mind) that drop threads into uninterruptible sleep and forgets about them. Try this and post the output as well
Code:
top -b -n 1 | awk '{if (NR <=7) print; else if ($8 ~ /[RD]/) {print; count++} } END {print "Total: "count}'
 
1 members found this post helpful.
Old 07-23-2014, 12:40 AM   #4
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
I guess I have found what's going on with the command above. There are some processes in uninterruptible sleep. NFSv4 mounts, authenticated with Kerberos. Somehow I guess the ticket has expired and the process is now trying to access the disk until, ... forever.
 
Old 07-23-2014, 07:05 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Nope - when in state "D" they are doing nothing - except contributing to loadavg. This is different to Unix loadavg calculation (which is what you read of most on the web).
 
Old 07-24-2014, 12:39 AM   #6
bucovaina78
Member
 
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Original Poster
Rep: Reputation: 33
Thanks for clarifying!
 
  


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
XenServer high IoWait (tracking down the source) tobylockyer Linux - Virtualization and Cloud 2 02-13-2012 02:45 PM
what is loadavg and how do i install it on server? modpriest Linux - Newbie 1 02-15-2008 06:19 PM
High loadavg, low CPU & iowait reichhartkg Linux - General 1 07-28-2006 03:44 PM
loadavg info sandeep2005 Programming 6 11-17-2005 05:27 PM
loadavg? tpark Linux - General 1 08-10-2004 03:03 AM

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

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