Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2008 16:13:23 -0500 (CDT)
From:      Michael Stowe <mstowe@chicago.us.mensa.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/121843: [Patch] mail/sendmail turn off Load Averaging
Message-ID:  <200803182113.m2ILDNFu022863@baddomain.com>
Resent-Message-ID: <200803182120.m2ILK29Y015763@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121843
>Category:       ports
>Synopsis:       [Patch] mail/sendmail turn off Load Averaging
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 18 21:20:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Michael Stowe
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD baddomain.com 7.0-STABLE FreeBSD 7.0-STABLE #19: Fri Mar 14 15:15:13 CDT 2008 root@baddomain.com:/usr/obj/usr/src/sys/STOWE i386


	
>Description:
Sendmail, by default, enables options to queue or stop accepting email based on CPU load.  In practice, this can be problematic, as it is possible to have mail queued but never dequeued with a reasonably low (but non-zero) CPU load due to assignment of a large priority number.  Under other circumstances, e.g., on some CPU's, it simply does not work well.

This patch enables it to be turned off in make.conf.
>How-To-Repeat:
Have trouble with sendmail's load average system behaving itself.
>Fix:


--- sendmail.diff begins here ---
diff -ruN sendmail/Makefile sendmail.new/Makefile
--- sendmail/Makefile	2007-12-11 14:12:27.000000000 -0600
+++ sendmail.new/Makefile	2008-03-18 16:03:27.000000000 -0500
@@ -49,6 +49,7 @@
 # SENDMAIL_WITHOUT_NIS=yes
 # SENDMAIL_WITHOUT_SHMEM=yes
 # SENDMAIL_WITHOUT_SEM=yes
+# SENDMAIL_WITHOUT_LA=yes
 # SENDMAIL_WITH_TLS=yes
 # SENDMAIL_WITH_SMTPS=yes
 # SENDMAIL_WITH_SASL=yes
@@ -236,6 +237,11 @@
 	'APPENDDEF(`confENVDEF'\'', `-DSM_CONF_SEM=0'\'')' \
 		>> ${WCONF}/site.config.m4
 .endif
+.if defined(SENDMAIL_WITHOUT_LA)
+	${ECHO_CMD} \
+	'APPENDDEF(`confENVDEF'\'', `-DLA_TYPE=LA_ZERO'\'')' \
+		>> ${WCONF}/site.config.m4
+.endif
 
 post-build:
 	( cd ${WRKSRC}/doc/op && ${MAKE} op.txt )
--- sendmail.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803182113.m2ILDNFu022863>