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 02-04-2008, 04:38 AM   #1
zisser
LQ Newbie
 
Registered: Feb 2008
Posts: 5

Rep: Reputation: 0
sendmail 8.13.1 queue mail when load average above 26


Hello,

My Customer has a RH4 with sendmail box. Load Average is around 4 to 8 usually with some peaks.
We installed our client software which open about 20 threads in uninterruptible sleep state (we don't want to go too deep here now and this is not the direction we want to go).
In Linux each thread is counted into the Load Average value.
We then Adjusted the confQUEUE_LA and confREFUSE_LA in /etc/mail/sendmail.mc. This works fine up to Load Average of 25.
Above that value mail is just queuing in /var/spool/clientmqueue.

I spent a lot of time on this case and I have two possible ways to look at this:
1. A bug in sendmail
2. Some other params or components that effect or effected by high Load Average.

I would appreciate any idea....

Regards
udi
 
Old 02-04-2008, 09:00 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
On a box that is basically a dedicated mail server, the recommendation here is to set QueueLA higher than RefuseLA:
Code:
...the other way around will cause your queue to explode when the 
load is high (assuming you reach QueueLA of course), you accept lots 
of new messages but can't get rid of them as the load average hovers 
around RefuseLA - the many messages in the queue drive up disk I/O and 
thereby the load average.
It sounds like you have it the other way around and your queue is just getting larger. It doesn't sound like a sendmail bug, but since your client software is generating a very large load can you test it with the settings the other way around?
 
Old 02-05-2008, 02:30 AM   #3
zisser
LQ Newbie
 
Registered: Feb 2008
Posts: 5

Original Poster
Rep: Reputation: 0
sendmail 8.13.1 queue mail when load average above 26

Thanks for answering.

my queue is not exploding... it is empty.
The mail is hanging in the clientqueue. And we are talking about one or two emails not more. (this is a test box. in the production the clientqueue can explode... but if I run mailq the results are zero!!!)

Now, I know all about the params and how to set them. The issue here is that while the Load Average is above 26 (!) sendmail queue the mail in clientqueue. Less then 26 mail is processed OK and the params do their job.

The high load avg is not the issue as I read other posts on the web that show higher LA and by adjusting these params the problems go away.

In my case even if I set the params to 100 as long as the current LA is above 26 mail will hang in client queue.

Thanks again,
Udi Zisser.
 
Old 02-05-2008, 04:56 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The only info I've seen that might help is here in the sendmail book. They say the values can be set separately for the MTA and MSA - have you tried that yet?

Apart from that, the info here recommends using the following command to flush all the mail off the system:
Code:
sendmail -OQueueLA=100 -q 0 -v
 
Old 02-06-2008, 06:37 AM   #5
zisser
LQ Newbie
 
Registered: Feb 2008
Posts: 5

Original Poster
Rep: Reputation: 0
values can be set separately for the MTA and MSA

Never tried this.
Sound very interesting!!!

But... I really don't know how to do that.
How can I set QueueLA separately for the MTA and MSA???

Thank you,
Udi
 
Old 02-06-2008, 02:11 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
When you compile sendmail from source, there's a step where you change to the cf/cf directory, create a sendmail.mc file and then build the sendmail.cf file. That step also builds submit.cf from a default submit.mc file. If you also modify the submit.mc file and then build the .cf file, it will do both.
 
Old 02-07-2008, 03:07 AM   #7
zisser
LQ Newbie
 
Registered: Feb 2008
Posts: 5

Original Poster
Rep: Reputation: 0
submit.cf

Thanks for the answer!

Building sendmail is not an option for me on this case. We are talking about a customer server that will accespt only official RH4 builds.

Can I add the same params as in /etc/mail/sendmail.mc to /etc/mail/submit.mc and use m4 to compile the params to .cf ?
define(`confQUEUE_LA', `40')dnl
define(`confREFUSE_LA', `50')dnl

Thanks,
Udi Zisser
 
Old 02-07-2008, 04:28 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Yes you can - that's what I meant, but didn't explain well.
 
Old 02-09-2008, 02:40 PM   #9
zisser
LQ Newbie
 
Registered: Feb 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up submit.cf

Thanks alot !!!!
I do think it worked!

I also found this link that explains the data flow:
http://sial.org/howto/sendmail/#s2

Reading this page connected all the dots...

Regards,
Udi Zisser
 
Old 02-09-2008, 02:44 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm glad you got it working - thanks for posting the link, it's good info
 
  


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
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
RH 9.0, sendmail 8.13.1, mail queue stalls... taylodge Linux - Software 6 12-16-2004 05:07 AM
sendmail mail queue setup gdelaney Linux - Networking 2 06-18-2004 10:35 AM
Maillog: sendmail rejecting connections on daemon IPv4: load average: 22 J_Szucs Linux - Security 2 01-28-2004 07:17 AM

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

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