From owner-freebsd-pf@FreeBSD.ORG Fri Oct 4 18:20:34 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 5C05B202; Fri, 4 Oct 2013 18:20:34 +0000 (UTC) (envelope-from bryanv@daemoninthecloset.org) Received: from torment.daemoninthecloset.org (torment.daemoninthecloset.org [94.242.209.234]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E25652DE8; Fri, 4 Oct 2013 18:20:33 +0000 (UTC) Received: from sage.daemoninthecloset.org (unknown [70.114.209.60]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "sage.daemoninthecloset.org", Issuer "daemoninthecloset.org" (verified OK)) by torment.daemoninthecloset.org (Postfix) with ESMTPS id 8EE5442C0908; Fri, 4 Oct 2013 20:19:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at daemoninthecloset.org X-Virus-Scanned: amavisd-new at daemoninthecloset.org Date: Fri, 4 Oct 2013 13:12:01 -0500 (CDT) From: Bryan Venteicher To: Stephane D'Alu Message-ID: <2036273502.48911.1380910321146.JavaMail.root@daemoninthecloset.org> In-Reply-To: <524EE5C1.6070508@insa-lyon.fr> References: <524EBFDD.7090604@insa-lyon.fr> <524EDE9E.2010109@insa-lyon.fr> <524EE5C1.6070508@insa-lyon.fr> Subject: Re: virtio problems (was: pf deadly slow) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.51.1.6] X-Mailer: Zimbra 8.0.2_GA_5569 (ZimbraWebClient - GC30 (Mac)/8.0.2_GA_5569) Thread-Topic: virtio problems (was: pf deadly slow) Thread-Index: Gn0sT4j2mTppfvAqt6BsYLDdbeh5Hw== Cc: freebsd-virtualization@freebsd.org, freebsd-pf@freebsd.org 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 18:20:34 -0000 ----- Original Message ----- > Now that I switched from virtio to 82545EM all my networking problems > disappeared. > > Appart from pf, I had also some other small networking problems that I > thought were apache/php related, but were in fact due to virtio. > > virtio is clearly the culprit, but I can't say if it is FreeBSD or > VirtualBox related > > Guest: FreeBSD 9.2 amd64 > Host : FreeBSD 9.2 amd64 > VM : VirtualBox 4.2.18 > > I can provide more information, if you tell me what to look for. > > Disable Tx/Rx checksum offload. The current state of the network stack doesn't work well with forwarding offloaded VirtIO frames. > > On 10/04/13 17: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) > > > >> > >> > >> OpenBSD is currently completly rewriting the queing system > >> and improving performance. > >> > >> > >> > >> > >> 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? > >> > >> > >> PS: > >> - I have the same kind of configuration FreeBSD 9.2, pf + ALTQ > >> and real firewall rules on a non virtualized server and everything > >> is fine. > >> - I will try to remove ALTQ and use em driver instead, to see if there > >> is a performance improvement > >> > >> Sincerly > >> -- > >> Stephane D'Alu -- Ingenieur Recherche > >> Laboratoire CITI / INSA-Lyon > >> Tel: +33 47243 6483 > >> _______________________________________________ > >> freebsd-pf@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-pf > >> To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org > >> " > >> > >> > >> > >> > >> -- > >> --------------------------------------------------------------------------------------------------------------------- > >> () ascii ribbon campaign - against html e-mail > >> /\ > > > > > > > -- > Stephane D'Alu -- Ingenieur Recherche > Laboratoire CITI / INSA-Lyon > Tel: +33 47243 6483 > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscribe@freebsd.org" >