From owner-freebsd-net@FreeBSD.ORG Thu Jul 17 03:47:07 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C9471065670 for ; Thu, 17 Jul 2008 03:47:07 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id 100338FC1C for ; Thu, 17 Jul 2008 03:47:06 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so135926ana.13 for ; Wed, 16 Jul 2008 20:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=CtdQEN1f8Cmbr3iy6AIgAB40Lrs7z7Xr3hAXnzZUldQ=; b=vo5ThikVye2pzCe9FFzrDC21G51g8qrzLJFZaKURTgS7W33X2dq7R5rm9j/vcxSDzD PTHKxRRFZl3lU7s3pU6kAvGkDHht+fL67Gi6sqzG4204MiEncVBrencNoEgmhbe6x9bT 8iy12+0R+oStxVzPOP0AB5zXH4LyH1OnCw4Lg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=IF62SSvWKYwwYTBRiq8zl953Q71vIWMfNfqWXcBT/5q4SvvPvrPeeEH89jAFC47W1A E0jenOhxLuYGX8860JVVB5wSbShoNy1sMh8eUA3c7gro5qeFG9yl4iqmscwcYLyR9HJK kb8KAwsocSkzlXs5pIq+7hBjd4LotdrE/eiys= Received: by 10.100.126.19 with SMTP id y19mr3394471anc.106.1216266426158; Wed, 16 Jul 2008 20:47:06 -0700 (PDT) Received: by 10.100.107.6 with HTTP; Wed, 16 Jul 2008 20:47:06 -0700 (PDT) Message-ID: Date: Thu, 17 Jul 2008 11:47:06 +0800 From: "Sepherosa Ziehau" To: "Bruce Evans" In-Reply-To: <20080717131000.K2693@besplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5D267A3F22FD854F8F48B3D2B52381932677F1A0C3@IRVEXCHCCR01.corp.ad.broadcom.com> <20080717131000.K2693@besplex.bde.org> Cc: "freebsd-net@freebsd.org" , David Christensen Subject: Re: Enabling MSI-X on -CURRENT for New Network Driver X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 03:47:07 -0000 On Thu, Jul 17, 2008 at 11:15 AM, Bruce Evans wrote: > On Wed, 16 Jul 2008, David Christensen wrote: > >> I'm working on adding MSI-X support for a new network driver >> and having some difficulty in actually getting an interrupt. >> Does this look right? > > I don't know, but on FreeBSD cluster machines running RELENG_8 bce > generates too many interrupts -- approx. 46000/second to deliver On dfly, I set the bce_rx_quick_cons_trip to 24 and bce_rx_ticks to 125, else live lock (>40000/sec) is promised when sinking packets @800kpps. I think bce uses the same coal logic as bge, so bce_rx_quick_cons_trip probably could be set to a larger value like 128; didn't have time to test 128 yet. Best Regards, sephe -- Live Free or Die