LinuxQuestions.org
Review your favorite Linux distribution.
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 09-24-2017, 10:59 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 546

Rep: Reputation: 37
runqueue: Skipping queue run -- load average too high


I'm running a centos 6 server (CentOS release 6.9 (Final)) with a really stubborn problem in sendmail (sendmail-8.14.4-9.el6_8.1.x86_64) which is that all mail is being queued and nothing sent. The entry in /var/log/maillog is:
Quote:
runqueue: Skipping queue run -- load average too high
and all mail sent ends in
Quote:
stat=queued
. I've been trawling google on this but can't work out what's wrong. The command mailq gives:
Quote:
/var/spool/mqueue is empty
Total requests: 0
thanks for any help.
 
Old 09-24-2017, 03:55 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Hi,

Quote:
runqueue: Skipping queue run -- load average too high
Before anything else, you must find out what process is causing the high load and try to resolve the problem.

In the meantime you can increase QueueLA and RefuseLA options in sendmail.cf and restart sendmail. You need to uncomment the following 2 lines and increase the 2 values a little:
Code:
# load average at which we just queue messages
O QueueLA=8

# load average at which we refuse connections
O RefuseLA=12
Regards
 
Old 09-24-2017, 09:30 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
A high loadavg is not necessarily a problem. At least not one that the sendmail devs should be mindlessly using to throttle their application. Especially if they think it equates to runq. That's a *nix mindset from the last millenium.
 
Old 09-25-2017, 02:46 AM   #4
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
thankyou bathory, I in sendmail cf I have O QueueLA=400 and O RefuseLA=400 but still the mail is queued. I've also run top and the process using the most cpu and mem is zoneminder and it's only around 10% cpu and 1% mem. Thanks for any further advice.
 
Old 09-25-2017, 03:16 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
cat /proc/loadavg
 
Old 09-25-2017, 03:32 AM   #6
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
thankyou syg00
Quote:
# cat /proc/loadavg
157.23 157.41 157.34 1/599 32589
what does that mean?
 
Old 09-25-2017, 03:58 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
See the manpage for proc.
Those first 3 numbers are the loadavg numbers you see in other tools. They are unusually high, and consistent - so you've had a high load for (quite) a while. Try this
Code:
top -b -n 1 | awk '{if (NR <=7) print; else if ($8 ~ /[RD]/) {print; count++} } END {print "Total: "count}'
Maybe just post the top 20 lines or so if they are all the same.
 
Old 09-25-2017, 04:17 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
Originally Posted by tonj View Post
thankyou bathory, I in sendmail cf I have O QueueLA=400 and O RefuseLA=400 but still the mail is queued. I've also run top and the process using the most cpu and mem is zoneminder and it's only around 10% cpu and 1% mem. Thanks for any further advice.
You should definitely look for what is eating your server resources. So follow syg00 instructions

Regards
 
Old 09-25-2017, 04:45 AM   #9
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
you were right syg00, this is the output from that command:
Quote:
# top -b -n 1 | awk '{if (NR <=7) print; else if ($8 ~ /[RD]/) {print; count++} } END {print "Total: "count}'
top - 12:38:20 up 123 days, 4:40, 1 user, load average: 157.08, 157.10, 157.10
Tasks: 479 total, 1 running, 478 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.8%us, 0.8%sy, 0.0%ni, 91.0%id, 1.3%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 5451868k total, 5271708k used, 180160k free, 884296k buffers
Swap: 5586940k total, 49848k used, 5537092k free, 3142388k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
694 root 20 0 15296 1388 800 R 5.7 0.0 0:00.03 top
676 root 20 0 77820 2964 2412 D 0.0 0.1 0:00.01 packagekitd
679 root 20 0 77820 2968 2412 D 0.0 0.1 0:00.00 packagekitd
682 root 20 0 77820 2968 2412 D 0.0 0.1 0:00.01 packagekitd
863 root 20 0 77820 2968 2412 D 0.0 0.1 0:00.01 packagekitd
866 root 20 0 77820 2964 2412 D 0.0 0.1 0:00.01 packagekitd
869 root 20 0 77820 2968 2412 D 0.0 0.1 0:00.01 packagekitd
1052 root 20 0 77820 2960 2412 D 0.0 0.1 0:00.01 packagekitd
1055 root 20 0 77820 2964 2412 D 0.0 0.1 0:00.02 packagekitd
1058 root 20 0 77820 2964 2412 D 0.0 0.1 0:00.01 packagekitd
1237 root 20 0 77820 2968 2412 D 0.0 0.1 0:00.01 packagekitd
1240 root 20 0 77820 2964 2412 D 0.0 0.1 0:00.01 packagekitd
1243 root 20 0 77820 2964 2412 D 0.0 0.1 0:00.01 packagekitd
1488 root 20 0 77820 2964 2412 D 0.0 0.1 0:00.01 packagekitd
1491 root 20 0 77820 2964 2412 D 0.0 0.1 0:00.01 packagekitd
1494 root 20 0 77820 2968 2412 D 0.0 0.1 0:00.01 packagekitd
1680 root 20 0 77820 2964 2412 D 0.0 0.1 0:00.01 packagekitd
1683 root 20 0 77820 2968 2412 D 0.0 0.1 0:00.00 packagekitd
1686 root 20 0 77820 2968 2412 D 0.0 0.1 0:00.01 packagekitd
 
Old 09-25-2017, 05:01 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Yet another reason to hate PackageKit. I regularly have to scrape disk space back from it.
In all likelihood those aren't affecting the rest of your system - except sendmail of course. Only a reboot will get rid of them.
 
Old 09-25-2017, 08:38 AM   #11
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
thanks and a big breakthrough...
I did the reboot but got a different error message in the maillog which was:
Quote:
stat=Deferred: Connection refused by [127.0.0.1]
after a bit of digging around on google I discovered I didn't have sendmail-cf in my system so I installed it, restarted sendmail and suddenly loads of emails starting flushing out.
What puzzles me is if there were loads of queued emails why did mailq show 0?
 
Old 09-25-2017, 11:17 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
after a bit of digging around on google I discovered I didn't have sendmail-cf in my system so I installed it, restarted sendmail and suddenly loads of emails starting flushing out.
And how did you get
Quote:
Originally Posted by tonj View Post
in sendmail cf I have O QueueLA=400 and O RefuseLA=400

Quote:
What puzzles me is if there were loads of queued emails why did mailq show 0?
Probably mail was still in clientmqueue. Use the following to see the mail in that queue
Code:
mailq -Ac
 
Old 09-26-2017, 02:57 AM   #13
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
ok thanks, that command will come in handy for future problems like this.
 
  


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
High average load at 60.01 smilemukul Linux - Server 7 04-19-2013 12:59 AM
load average high sang_froid Linux - Server 3 12-14-2009 10:18 AM
sendmail 8.13.1 queue mail when load average above 26 zisser Linux - Server 9 02-09-2008 02:44 PM
Load average, run queue, sleeping process confusion rimtrim Linux - Server 4 09-11-2007 09:43 PM
My load average is 7.00, but my cpu is idle. What's in the queue? BrianK Linux - General 3 03-27-2007 07:10 PM

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

All times are GMT -5. The time now is 12:03 PM.

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