From owner-freebsd-performance@FreeBSD.ORG Wed Feb 6 11:17:15 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5706916A419; Wed, 6 Feb 2008 11:17:15 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id C15FD13C44B; Wed, 6 Feb 2008 11:17:14 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id AEC3F1B10F3B; Wed, 6 Feb 2008 12:17:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on blah.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.6 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 82CDB1B10F29; Wed, 6 Feb 2008 12:17:10 +0100 (CET) Message-ID: <47A99736.8060809@moneybookers.com> Date: Wed, 06 Feb 2008 13:17:10 +0200 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.9 (X11/20071120) MIME-Version: 1.0 To: Kris Kennaway References: <4794E6CC.1050107@moneybookers.com> <47A0B023.5020401@moneybookers.com> <47A3074A.3040409@moneybookers.com> <47A72EAB.6070602@moneybookers.com> <20080204182945.GA49276@heff.fud.org.nz> <47A780C0.2060201@moneybookers.com> <47A799A6.3070502@moneybookers.com> <47A84751.8020109@moneybookers.com> <47A8D233.8020506@FreeBSD.org> <47A8DCD6.3060209@moneybookers.com> <47A8E1F1.4040309@FreeBSD.org> <47A98CDC.2090407@moneybookers.com> <47A993D0.1060901@FreeBSD.org> In-Reply-To: <47A993D0.1060901@FreeBSD.org> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/5710/Wed Feb 6 07:45:46 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-performance@freebsd.org Subject: Re: network performance X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 11:17:15 -0000 Kris Kennaway wrote: > Stefan Lambrev wrote: >> Greetings, >> >> Kris Kennaway wrote: >>> http://www.freebsd.org/~kris/p4-net.tbz is a sys/ tarball from my p4 >>> branch, which includes these and other optimizations. >> I have some problems with compiling new kernel: >> >> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=nocona >> -std=c99 -g -Wall -Wredundant-decls -Wnested-externs >> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline >> -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc >> -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL >> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common >> -finline-limit=8000 --param inline-unit-growth=100 --param >> large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel >> -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow >> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror >> /usr/src/sys/ufs/ufs/ufs_lookup.c >> /usr/src/sys/ufs/ufs/ufs_lookup.c: In function 'ufs_lookup': >> /usr/src/sys/ufs/ufs/ufs_lookup.c:171: error: 'td' undeclared (first >> use in this function) >> /usr/src/sys/ufs/ufs/ufs_lookup.c:171: error: (Each undeclared >> identifier is reported only once >> /usr/src/sys/ufs/ufs/ufs_lookup.c:171: error: for each function it >> appears in.) >> /usr/src/sys/ufs/ufs/ufs_lookup.c:173:45: error: macro "VOP_LOCK" >> passed 3 arguments, but takes just 2 >> /usr/src/sys/ufs/ufs/ufs_lookup.c:173: error: 'VOP_LOCK' undeclared >> (first use in this function) >> *** Error code 1 >> >> > > Sorry, forgot to check in a fix. Apply this patch: > > http://www.freebsd.org/~kris/ufs_lookup.c.diff > > (you'll need to specify the path by hand) > > Kris Now this compiles, but : cc -O2 -fno-strict-aliasing -pipe -march=nocona -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/CORE/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/CORE -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/mac_lomac/../../security/mac_lomac/mac_lomac.c cc1: warnings being treated as errors /usr/src/sys/modules/mac_lomac/../../security/mac_lomac/mac_lomac.c: In function 'lomac_thread_userret': /usr/src/sys/modules/mac_lomac/../../security/mac_lomac/mac_lomac.c:2172: warning: implicit declaration of function 'PROC_LOCK' /usr/src/sys/modules/mac_lomac/../../security/mac_lomac/mac_lomac.c:2172: warning: nested extern declaration of 'PROC_LOCK' /usr/src/sys/modules/mac_lomac/../../security/mac_lomac/mac_lomac.c:2190: warning: implicit declaration of function 'PROC_UNLOCK' /usr/src/sys/modules/mac_lomac/../../security/mac_lomac/mac_lomac.c:2190: warning: nested extern declaration of 'PROC_UNLOCK' *** Error code 1 Stop in /usr/src/sys/modules/mac_lomac. where -Werror is defined - in the Makefile? :) Is it safe to just remove it for security/ and continue with build? BTW I removed "options ADAPTIVE_GIANT" as it is unknown with your sources. -- Best Wishes, Stefan Lambrev ICQ# 24134177