From owner-freebsd-pf@FreeBSD.ORG Fri Oct 4 15:40:30 2013 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 49759C68 for ; Fri, 4 Oct 2013 15:40:30 +0000 (UTC) (envelope-from mcdouga9@egr.msu.edu) Received: from mail.egr.msu.edu (boomhauer.egr.msu.edu [35.9.37.167]) by mx1.freebsd.org (Postfix) with ESMTP id 1B08424E1 for ; Fri, 4 Oct 2013 15:40:29 +0000 (UTC) Received: from boomhauer (localhost [127.0.0.1]) by mail.egr.msu.edu (Postfix) with ESMTP id 959F728CE8 for ; Fri, 4 Oct 2013 11:31:43 -0400 (EDT) X-Virus-Scanned: amavisd-new at egr.msu.edu Received: from mail.egr.msu.edu ([127.0.0.1]) by boomhauer (boomhauer.egr.msu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hYJo2gBNXDG8 for ; Fri, 4 Oct 2013 11:31:43 -0400 (EDT) Received: from EGR authenticated sender Message-ID: <524EDF5F.20601@egr.msu.edu> Date: Fri, 04 Oct 2013 11:31:43 -0400 From: Adam McDougall User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: freebsd-pf@freebsd.org Subject: Re: pf deadly slow References: <524EBFDD.7090604@insa-lyon.fr> <524EDE9E.2010109@insa-lyon.fr> In-Reply-To: <524EDE9E.2010109@insa-lyon.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Oct 2013 15:40:30 -0000 On 10/04/13 11:28, Stephane D'Alu wrote: > On 10/04/13 16:48, sven falempin wrote: >> configure ALTQ (maybe the absence of configurating is not nicely working), >> i think freebsd has virtio support , > > Yes, since 9.2 virtio drivers are included in base distribution > >> >> i am interested in the result :-) > > I switched from virtio to 82545EM (with em driver), and performance are > back to normal. > > Look like a bug / bad interraction between virtio and pf. > (I don't know if VirtualBox as also a part in it) > >> On Fri, Oct 4, 2013 at 9:17 AM, Stephane D'Alu >> > wrote: >> >> I'm running FreeBSD 9.2 inside VirtualBox with virtio for the nework >> card. pf is compiled with ALTQ support. >> >> My pf.conf file is as follow, which do nearly nothing: >> set skip on lo0 >> set skip on vnet0 >> >> If pf is enabled, bandwith drop by a 1000 factor! >> From 10Mb/s to 4Kb/s >> >> Any idea, what's going on? If vnet0 has TSO enabled, can you try disabling it? Possibly with all other optimizations too. Example: ifconfig vnet0 -tso