From owner-freebsd-net@FreeBSD.ORG Fri Apr 26 19:50:21 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4A714446 for ; Fri, 26 Apr 2013 19:50:21 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Received: from mail-bk0-x22c.google.com (mail-bk0-x22c.google.com [IPv6:2a00:1450:4008:c01::22c]) by mx1.freebsd.org (Postfix) with ESMTP id D29121B20 for ; Fri, 26 Apr 2013 19:50:20 +0000 (UTC) Received: by mail-bk0-f44.google.com with SMTP id jk14so1810096bkc.3 for ; Fri, 26 Apr 2013 12:50:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id:x-gm-message-state; bh=C64S8wnE3fhpfQ4ejBVUbJIbOZOvVrcLKwwzHJPwF4g=; b=HOjXIPT27sQ6wspZVpezD27O039pB7nCyGDvzKU8bgAkxy4bnNcuh3ru2TvrSyy9XO SVv0fanfavEZVoYmxna1fODEq5NLNjfk/NiQH0QePSjWuX2m/HkNfBqcqJsyvmT29VM1 xtcqykS/OnQcsauZ5LXI/LXB11dzsHWofgEXEufxEhzaYaBAVUFhlPIYNEDJ6fGypK0X vcpFMcgvAcyKNeWQuAq6T+ziyC9mlYHoMN6qhX4DvpomlpFsptMwKeOjr3xCwtvPpJ/Z T9IC6UcewuJpkNb2RmqpREHUy8uwGVfV/ecNbd5ut3HiYVD/2dcDA/1fh3MGNuB+w5Cw oSdA== X-Received: by 10.205.108.137 with SMTP id ec9mr19169818bkc.6.1367005818856; Fri, 26 Apr 2013 12:50:18 -0700 (PDT) Received: from zvezda.localnet ([2a02:8108:1440:5b:2677:3ff:fe7b:7648]) by mx.google.com with ESMTPSA id jz9sm3811507bkb.1.2013.04.26.12.50.17 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 26 Apr 2013 12:50:18 -0700 (PDT) From: Kajetan Staszkiewicz To: Erich Weiler Subject: Re: pf performance? Date: Fri, 26 Apr 2013 21:50:17 +0200 User-Agent: KMail/1.13.5 (Linux/3.6.6-vegeta.1; KDE/4.4.5; x86_64; ; ) References: <5176E5C1.9090601@soe.ucsc.edu> <517974DA.5090809@soe.ucsc.edu> <201304260021.11209.vegeta@tuxpowered.net> In-Reply-To: <201304260021.11209.vegeta@tuxpowered.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201304262150.17215.vegeta@tuxpowered.net> X-Gm-Message-State: ALoCoQlSf93+9iOYI6ggWCWFVirOP0wqjAoB1vnel9sG52fZcMg6qlLmLCS2uzGIWdfIYrzyutXF Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2013 19:50:21 -0000 Dnia pi=C4=85tek, 26 kwietnia 2013 o 00:21:11 Kajetan Staszkiewicz napisa= =C5=82(a): > > > How do you count the 140kpps value? One interface, both, in, out? I'd > > > like to relate this somehow to my values. > >=20 > > Well, generally we see 80kpps rx and 40kpps tx. But I have seen the rx > > spike to 150kpps occasionally. >=20 > Unfortunately at this moment I have no single machine with such traffic, > although maybe I can aggregate some traffic later and check the cpu usage > then. OK, got my CPU usage for 30/40kpps, 55/340Mbit/s (public side, in/out). CPU is 4-core E5540 @ 2.53GHz with HT disabled. Cpu usage looks more or less like this: CPU 0: 0.0% user, 0.0% nice, 0.4% system, 3.9% interrupt, 95.7% idle CPU 1: 0.0% user, 0.0% nice, 1.2% system, 18.1% interrupt, 80.7% idle CPU 2: 0.0% user, 0.0% nice, 1.6% system, 5.5% interrupt, 92.9% idle CPU 3: 0.0% user, 0.0% nice, 0.8% system, 26.8% interrupt, 72.4% idle Public network card is pinned to cpu 2, internal to cpu 3, each card has on= ly a=20 single irq. Netisr threads are limited to cpu 0 and 1, I use deferred netis= r.=20 So yes, I have 2x less pps than you, but also I have quite a slower cpu and= =20 there still seems to be much cpu power left. How many interrupts/s do you have? What about the number of states? =2D-=20 | pozdrawiam / greetings | powered by Debian, CentOS and FreeBSD | | Kajetan Staszkiewicz | jabber,email: vegeta()tuxpowered net | | Vegeta | www: http://vegeta.tuxpowered.net | `------------------------^---------------------------------------'