From owner-freebsd-net@freebsd.org Thu Jul 16 07:57:50 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EF6E0359E06 for ; Thu, 16 Jul 2020 07:57:50 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from sender4-of-o53.zoho.com (sender4-of-o53.zoho.com [136.143.188.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B6mnn4qpGz4C97 for ; Thu, 16 Jul 2020 07:57:49 +0000 (UTC) (envelope-from patfbsd@davenulle.org) ARC-Seal: i=1; a=rsa-sha256; t=1594886266; cv=none; d=zohomail.com; s=zohoarc; b=PK3ZasDu2YppcIoT60gZ962sUGG5diQd95dhjcDOnVsMBlnDmw4m/vq1X7niZtoErhKKSPvHSkJXbSpuDy9o6sGSytfbz9Hi9RbEz27qae+vnvj5RIQREFVh7i0avM8T1Gcl14UXJV9EolRMqTFLeqOQLPAoaE39d2mVC1i8q6g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594886266; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=OXCHXLFrCMjwq/C+ju5efcube0njUBbFJAovQun8BXA=; b=B+7OKQe5G1NUpHtfdtPdkFfcNvItyFTGlceVYBDckX73ZK6o5ZpQ9nuTZRVHrevv7ht62BFxzdA+Y9Bzlr3QlyCDQ1sWcDEMS+W76N7IGRKDeK5ogwwmGoJCv6jhud7ybJo8wUrnHa8fcEc2uL0PKn2v8Vi0GIJzamtSedGxbXY= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass smtp.mailfrom=patfbsd@davenulle.org; dmarc=pass header.from= header.from= Received: from mr185033.univ-rennes1.fr (mr185033.univ-rennes1.fr [129.20.185.33]) by mx.zohomail.com with SMTPS id 1594886261641985.6271089460537; Thu, 16 Jul 2020 00:57:41 -0700 (PDT) Date: Thu, 16 Jul 2020 09:57:32 +0200 From: Patrick Lamaiziere To: Eugene Grosbein Cc: freebsd-net@freebsd.org Subject: Re: poor performance with Intel X520 card Message-ID: <20200716095732.728c0917@mr185033.univ-rennes1.fr> In-Reply-To: <7b994967-17cd-8f4f-cb4d-8fcff349f7e9@grosbein.net> References: <20200710084530.777ce321@mr185033.univ-rennes1.fr> <7b994967-17cd-8f4f-cb4d-8fcff349f7e9@grosbein.net> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ZohoMailClient: External X-Rspamd-Queue-Id: 4B6mnn4qpGz4C97 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of patfbsd@davenulle.org has no SPF policy when checking 136.143.188.53) smtp.mailfrom=patfbsd@davenulle.org X-Spamd-Result: default: False [-3.57 / 15.00]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.003]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.91)[-0.908]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[davenulle.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.56)[-0.563]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[136.143.188.53:from]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2639, ipnet:136.143.188.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; RWL_MAILSPIKE_VERYGOOD(0.00)[136.143.188.53:from]; ARC_ALLOW(-1.00)[zohomail.com:s=zohoarc:i=1] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 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, 16 Jul 2020 07:57:51 -0000 On Wed, 15 Jul 2020 17:07:23 +0700 Eugene Grosbein wrote: Hello, > > That is mostly for the record but it looks like the intel X520 is > > not very good and generates a high level of interrupts. > > > > On a router / firewall with 500 Kpps in input (dropped by pf) is > > enough to put the CPUs at 100% busy. > > [skip] > > > Well, do you think another NIC cards can help to reach a better pps > > rate ? I think 500 Kpps is quite low for such a machine. > > I'm sure pf is the bottle-neck. Try testing such card without any > packet filter enabled and you'll see great difference definitely. That's not a good news as I don't see how to simplify the ruleset :( But thanks anyway :) Regards,