Bug 204752

Summary: [patch] sendmail wakes up every 5 seconds even when not busy
Product: [Fedora] Fedora Reporter: Arjan van de Ven <arjan>
Component: sendmailAssignee: Thomas Woerner <twoerner>
Status: CLOSED INSUFFICIENT_DATA QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: bnocera, redhat-bugzilla, triage
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: bzcl34nup
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-07 00:47:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 204948, 418441    
Attachments:
Description Flags
patch to sendmail to increase the timeout on idle none

Description Arjan van de Ven 2006-08-31 13:07:58 UTC
Description of problem:

sendmail in FC wakes up every 5 seconds, even when it's totally unused/idle. (It
wakes up quicker if a signal comes in about actual mail).

The attached patch changes this so that it'll sleep for 30 seconds at a time if
it has been idle for 50 seconds continously.

This came up during the idle-tick work on the kernel, where we're trying to
remove any and all unneeded wakups of the system (first of all the timer
interrupt, but that is not enough; all of userland also has a wakeup rate of
about 30 per second so we're killing those off one at a time).

Comment 1 Arjan van de Ven 2006-08-31 13:07:58 UTC
Created attachment 135282 [details]
patch to sendmail to increase the timeout on idle

Comment 2 Thomas Woerner 2007-04-10 09:45:31 UTC
Sendmail upstream has rejected this patch:

"Then a signal will take up to 30s to have an effect. That doesn't
seem like a good idea."

Comment 3 Matthias Clasen 2007-04-10 10:09:09 UTC
If that is a concern, the usual pipe approach can be used to work around it, no ?

Comment 4 Arjan van de Ven 2007-04-10 16:31:27 UTC
also if they care they can use other mechanisms like sending a sighup etc etc.


Comment 5 Dave Jones 2007-05-14 20:29:59 UTC
One thing that sendmail seems to be doing over and over is re-reading /proc/loadavg
It does this to throttle itself if the system gets too busy.
There's no point in doing this however if the mail queue is empty.

The box I just tested this on recieves no mail, and sends just one per day
(logwatch), so this is just pointless work done billions of times a day, for
nothing.

Comment 6 Bug Zapper 2008-04-03 18:05:41 UTC
Based on the date this bug was created, it appears to have been reported
against rawhide during the development of a Fedora release that is no
longer maintained. In order to refocus our efforts as a project we are
flagging all of the open bugs for releases which are no longer
maintained. If this bug remains in NEEDINFO thirty (30) days from now,
we will automatically close it.

If you can reproduce this bug in a maintained Fedora version (7, 8, or
rawhide), please change this bug to the respective version and change
the status to ASSIGNED. (If you're unable to change the bug's version
or status, add a comment to the bug and someone will change it for you.)

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

Comment 7 Bug Zapper 2008-05-07 00:47:47 UTC
This bug has been in NEEDINFO for more than 30 days since feedback was
first requested. As a result we are closing it.

If you can reproduce this bug in the future against a maintained Fedora
version please feel free to reopen it against that version.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp