From owner-cvs-src@FreeBSD.ORG Mon Mar 7 20:50:04 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A07716A4CE; Mon, 7 Mar 2005 20:50:04 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 543EB43D3F; Mon, 7 Mar 2005 20:50:01 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.1/8.13.1) with ESMTP id j27KpNSK069940; Mon, 7 Mar 2005 13:51:24 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <422CBDEE.7020307@samsco.org> Date: Mon, 07 Mar 2005 13:47:42 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: obrien@FreeBSD.org References: <200503021343.j22DhpQ3075008@repoman.freebsd.org> <200503020915.28512.jhb@FreeBSD.org> <4226446B.7020406@freebsd.org> <61ac46c154aa515a692308440dd1141d@FreeBSD.org> <422710DD.1070203@freebsd.org> <422719E0.10703@samsco.org> <20050307195156.GA18850@dragon.nuxi.com> In-Reply-To: <20050307195156.GA18850@dragon.nuxi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: cvs-all@FreeBSD.org cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: David Xu cc: John Baldwin Subject: Re: cvs commit: src/sys/kern kern_sig.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 20:50:04 -0000 David O'Brien wrote: > On Thu, Mar 03, 2005 at 07:06:24AM -0700, Scott Long wrote: > >>a bit. Also, there is talk about increasing the default kstack size due >>to all of the extra inlining that the compiler does with the -O2 option > > > I'd love more details on the extra inlining people are seeing with -O2. > (i.e. specifics) -O2 is not supose to do extra function inlining. That > is suppose to be a -O3 thing. > > From the GCC manual: > > -O3 Optimize yet more. > -O3 turns on all optimizations specified by -O2 and also turns on the > -finline-functions, -fweb and -frename-registers options. > > -O2 Optimize even more. > GCC performs nearly all supported optimizations that do not involve a > space-speed tradeoff. The compiler does not perform loop unrolling or > function inlining when you specify -O2. As compared to -O, this > option increases both compilation time and the performance of the > generated code. > ..snip.. > > The -O2 options that affect size are: > -falign-functions -falign-jumps -falign-loops -falign-labels > -freorder-blocks -fprefetch-loop-arrays Talk to Bill Paul about the massive amount of inlining that is happening in the ieee80211 ioctl code, and the no_inline directives he had to use to kludge around it. Scott