From owner-freebsd-current@FreeBSD.ORG Sat Dec 14 22:11:29 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 57B36638 for ; Sat, 14 Dec 2013 22:11:29 +0000 (UTC) Received: from nm21-vm3.bullet.mail.ird.yahoo.com (nm21-vm3.bullet.mail.ird.yahoo.com [212.82.108.207]) by mx1.freebsd.org (Postfix) with SMTP id A36081258 for ; Sat, 14 Dec 2013 22:11:28 +0000 (UTC) Received: from [77.238.189.237] by nm21.bullet.mail.ird.yahoo.com with NNFMP; 14 Dec 2013 22:11:21 -0000 Received: from [46.228.39.84] by tm18.bullet.mail.ird.yahoo.com with NNFMP; 14 Dec 2013 22:11:21 -0000 Received: from [127.0.0.1] by smtp121.mail.ir2.yahoo.com with NNFMP; 14 Dec 2013 22:11:21 -0000 X-Yahoo-Newman-Id: 382159.62673.bm@smtp121.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 1xZRHZ4VM1kSCOMYMWmTPXYybZ7aviCcJa8_hPoNeBigjtj 78UpLfdHHS_qRpHr6Can1zkVnwC5eFJoZDLfE6O8FNG21JPpAW1_cpp9p1U1 tZW7xmL0_sTyTmxwpyrAsfXbxGdU4ecM13okUbbvWlz6_Kq4iPOQE_xE2Hoz ouAtYNFwYOq9HOLSgb09le8UJTuRCHUBfo_yRv_VZ5ZF9cUQeWmA5yb5ALQh mLcve35vui3XLiNXXvsdSRfQ3MalnNhVhR9qqZehj8.E4r.nt5fkH4VSGlUw R0oFkXgIsQn2JmUAjizOzbFfzw67MaiM01u48c83dNFER7oK4y6TX4d1VPX6 sPTqoDFn7SQoegP8U2.RUSdZVrESWmPd.qisQE93bC3DC5dYgfZrpKcYTKaB TyXP2F9PXAL3UtQ7xpz4ynKzY9cIueO8lusKsulCwgfUwlx1h2ZntgNb90ZW KVUofJ5RlUqUOZDEh4qEi2ZOXMyQ_OESdDo5zrwA85g.OBG8beyelUJL0bjg 31DA4v6UYOt7LiSxTY1Dosh7g55A9QpgZWkxz8jQ77aaqhk7gMnSjxUeAOXs cDLzzCTR_UZk4Yg-- X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. X-Rocket-Received: from [192.168.119.26] (se@84.154.102.88 with plain [188.125.69.59]) by smtp121.mail.ir2.yahoo.com with SMTP; 14 Dec 2013 22:11:21 +0000 UTC Message-ID: <52ACD783.7030203@freebsd.org> Date: Sat, 14 Dec 2013 23:11:15 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Steve Kargl Subject: Re: SVN commit 259045 breaks -CURRENT References: <52ACD12A.5020906@freebsd.org> <20131214215904.GA24545@troutmask.apl.washington.edu> In-Reply-To: <20131214215904.GA24545@troutmask.apl.washington.edu> X-Enigmail-Version: 1.6 Content-Type: multipart/mixed; boundary="------------080502030700070205040402" Cc: freebsd-current@freebsd.org, kib@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Dec 2013 22:11:29 -0000 This is a multi-part message in MIME format. --------------080502030700070205040402 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Am 14.12.2013 22:59, schrieb Steve Kargl: > On Sat, Dec 14, 2013 at 10:44:10PM +0100, Stefan Esser wrote: >> I noticed a severe slowdown and network problems on my amd64 -CURRENT >> system. By bisecting SVN revisions I identified the following commit >> to be responsible: >> >> ---------------------------------------------------------------------- >> r259045 | kib | 2013-12-06 22:44:13 +0100 (Fri, 06 Dec 2013) | 9 lines >> >> Disallow optimizations which potentially remove boundary checks >> for signed values due to a compiler authors considering integer >> overflow as impossible. >> >> The change follows suit of other projects taking the same measure. >> ---------------------------------------------------------------------- >> >> This commit added the following line to /sys/conf/kern.mk: >> >> CFLAGS+= -fno-strict-overflow >> >> >> The most obvious symptoms of the problem on my system are: >> >> 1) sa-spamd needs > 140 seconds to start >> (instead of a few seconds) >> >> 2) SSH logins are very slow, many seconds of delay between connect >> and password prompt, several seconds after password entry until >> a command prompt appears (normally instantaneous) >> > > Ah, so that explains the behavior I'm see. Just updated a circa Aug 3rd > i386 FreeBSD to top-of-tree. My ssh logins to my work system take 30+ > seconds now. :( You may want to test the attached patch, which reverts the above mentioned commit. Regards, STefan --------------080502030700070205040402 Content-Type: text/plain; charset=windows-1252; name="kern.mk.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kern.mk.patch" Index: /sys/conf/kern.mk =================================================================== --- /sys/conf/kern.mk (revision 259396) +++ /sys/conf/kern.mk (working copy) @@ -148,12 +148,6 @@ CFLAGS+= -ffreestanding # -# Do not allow a compiler to optimize out overflow checks for signed -# types. -# -CFLAGS+= -fno-strict-overflow - -# # GCC SSP support # .if ${MK_SSP} != "no" && ${MACHINE_CPUARCH} != "ia64" && \ --------------080502030700070205040402--