From owner-freebsd-current@FreeBSD.ORG Fri Nov 4 16:51:04 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32D7E1065672 for ; Fri, 4 Nov 2011 16:51:04 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id B6AE98FC0C for ; Fri, 4 Nov 2011 16:51:03 +0000 (UTC) Received: by faar19 with SMTP id r19so4224327faa.13 for ; Fri, 04 Nov 2011 09:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dudu.ro; s=google; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=PcHpmasFXK9kr9c010JFnnusOvSInVEhWOWaA5N5Kho=; b=VaNs0BTzQ21YaQeVbEdIsRq/AaSGe1uXyWHkBZ6Y+MF4SMpQ+GFZA0w0ncz0dYk0SY kk4NiWdrdEp3GR2W8468BLu2oH32d+UiB/4uUekwVMgrPR6Hb/gcqFKJQanBaPMhl/7h CY5AambqCSjHOFJdPU2Vxgjzqh1EzeW4Pk9KM= Received: by 10.152.132.72 with SMTP id os8mr1104685lab.4.1320425462711; Fri, 04 Nov 2011 09:51:02 -0700 (PDT) Received: from [192.168.10.3] ([82.76.253.74]) by mx.google.com with ESMTPS id me18sm26085lab.10.2011.11.04.09.51.00 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Nov 2011 09:51:01 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Vlad Galu In-Reply-To: Date: Fri, 4 Nov 2011 16:50:57 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <89098B91-49DE-4316-81C6-12AAB1849B44@dudu.ro> References: To: Archy Cho X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-current@freebsd.org, rizzo@iet.unipi.it Subject: Re: Netmap for routers (em0 device) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 04 Nov 2011 16:51:04 -0000 On Nov 4, 2011, at 4:06 PM, Archy Cho wrote: > Hello >=20 > I am very happy to see freebsd could have such network performance = with > netmap , > since I am currently using freebsd as core routers instead of cisco. >=20 > I tried to re-compile the freebsd 8.2 kernel to test , > however , I could not complete the task ( both i386 and amd64 ), > I could only success at 9.0-RC-1. >=20 > Here is my task and error message, >=20 > cp /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/Netmap-Router > echo "device netmap" >> /usr/src/sys/i386/conf/Netmap-Router > cd /tmp/netmap/sys/ > cp -R * /usr/src/sys/ > cd /usr/src/ > patch -p < /tmp/netmap/head-netmap.diff > echo "WITHOUT_MODULES =3D bge re igb" >> /etc/make.conf > make buildkernel KERNCONF=3DNetmap-Router > make installkernel KERNCONF=3DNetmap-Router >=20 > -Werror ../../../dev/e1000/if_em.c -I../../../dev/e1000 > ../../../dev/e1000/if_em.c: In function 'em_setup_receive_ring': > ../../../dev/e1000/if_em.c:4012: error: 'j' undeclared (first use in = this > function) > ../../../dev/e1000/if_em.c:4012: error: (Each undeclared identifier is > reported only once > ../../../dev/e1000/if_em.c:4012: error: for each function it appears = in.) > *** Error code 1 >=20 > Stop in /usr/src/sys/i386/compile/Netmap-Router >=20 >=20 > Any hint of error message ? >=20 It's fairly easy to remove the offending code, AFAIK there were a few = unused variable and signed vs unsigned comparisons. > More questions , > I seldom facing DDOS , whatever using polling or not , > 1Gbps link with 64bytes packet will cause CPU 100% , > if a freebsd box compile with netmap , > could it have performance boost of routed / ipfw / pf ? Not yet. In order to do that, ipfw or pf need to be ported to userspace. = I believe that was on Luigi's agenda, though. -- Good, fast & cheap: pick any two.