From owner-freebsd-performance@FreeBSD.ORG Tue Jan 24 11:34:17 2012 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 26BD81065674 for ; Tue, 24 Jan 2012 11:34:17 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id E4D518FC18 for ; Tue, 24 Jan 2012 11:34:16 +0000 (UTC) Received: by iagz16 with SMTP id z16so9335802iag.13 for ; Tue, 24 Jan 2012 03:34:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dudu.ro; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:x-gm-message-state:content-type:content-transfer-encoding; bh=XPwzUW1ley8A6M/NJGNInWgLyfxVSsb0SdqwvE39tW8=; b=OJpZftSomft+cwhlBv0xNj8gZN21rpnwe5AB7XzplehWs78ExMrRhIg+eIlUIaGGD3 +sYpZZTkx5K43JiD100DBbA4eGkJohiBQFP89N0YCngUfGXTZoY4u7Sw88hjEMDzCb6R j0qKifbtlFmcCkscDqvxINdedi7QmCfy7TpRE= Received: by 10.50.216.201 with SMTP id os9mr3177744igc.22.1327404856209; Tue, 24 Jan 2012 03:34:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.226.68 with HTTP; Tue, 24 Jan 2012 03:33:35 -0800 (PST) In-Reply-To: References: <52C581907BBB4B4AAF55D14F46BAAF2F@dudu.ro> From: Vlad Galu Date: Tue, 24 Jan 2012 11:33:35 +0000 Message-ID: To: Marcin Markowski X-Gm-Message-State: ALoCoQnns6PdIyWouoJYT2VTH8gsbvUa3Jh08AjGFxwX63279Xwd0aUuOkKAoGaOVxp9zaqhbVrY Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-performance@freebsd.org Subject: Re: Performance problem using Intel X520-DA2 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: Tue, 24 Jan 2012 11:34:17 -0000 On Tue, Jan 24, 2012 at 11:27 AM, Marcin Markowski wro= te: > On 24.01.2012 00:34, Vlad Galu wrote: >> >> -- >> Good, fast and cheap: pick any two. >> >> >> On Monday, January 23, 2012 at 8:20 PM, Marcin Markowski wrote: >> >>> Hello, >>> >>> We use FreeBSD as sniffer (libpcap programs) and we experience >>> performance problems when incoming traffic is greater than 7.5Gbps/s. >>> If we check 'top' we see that first irq from network card is using >>> 100% CPU. I've tested this on FreeBSD 8.2-RELEASE and 9.0-RELEASE >>> (on 9.0 we can see also kernel thread named {ix0 que} using 100% CPU), >>> and both systems behave the same. In logs we see also: >>> interrupt storm detected on "irq268:"; throttling interrupt source >>> >>> Our server platform is Intel SR2600URBRP, 2x Xeon X5650, 6GB RAM and >>> NIC Intel X520-DA2. >>> >>> I'm not sure if problem is with NIC or motherboard in SR2600URBRP, >>> because everything is fine when we use other server configuration: >>> Intel SR1630GP, 1x Xeon X3450, 8GB RAM, NIC X520-DA2 >>> >>> My /boot/loader.conf: >>> kern.ipc.nmbclusters=3D262144 >>> hw.ixgbe.rxd=3D2048 >>> hw.ixgbe.txd=3D2048 >>> hw.ixgbe.num_queues=3D16 >>> >>> /etc/sysctl.conf >>> hw.intr_storm_threshold=3D10000 >>> >> >> Hi Marcin, >> >> Have a look at Luigi's excellent netmap framework [1]. >> >> [1] http://info.iet.unipi.it/~luigi/netmap/ > > > =A0Hi Vlad, > > > I tried to compile the kernel with NETMAP on FreeBSD 8 and 9, but I get > warnings and > the compilation ends. > > cc1: warnings being treated as errors > ../../../dev/netmap/netmap.c: In function 'netmap_memory_init': > ../../../dev/netmap/netmap.c:1557: warning: format '%d' expects type 'int= ', > but argument 7 has type 'size_t' > ../../../dev/netmap/netmap.c:1564: warning: format '%d' expects type 'int= ', > but argument 7 has type 'size_t' > ../../../dev/netmap/netmap.c: In function 'netmap_memory_fini': > ../../../dev/netmap/netmap.c:1607: warning: format '%d' expects type 'int= ', > but argument 2 has type 'size_t' > ../../../dev/netmap/netmap.c: In function 'netmap_init': > ../../../dev/netmap/netmap.c:1636: warning: format '%d' expects type 'int= ', > but argument 2 has type 'size_t' > *** Error code 1 > > I'll try HEAD and see if it will be the same. > Hi Marcin, Yes, I manually patched the sources. The format string should be %zd. --=20 Good, fast & cheap. Pick any two.