From owner-freebsd-xen@freebsd.org Fri Feb 14 02:59:16 2020 Return-Path: Delivered-To: freebsd-xen@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 1952823E255 for ; Fri, 14 Feb 2020 02:59:16 +0000 (UTC) (envelope-from buhrow@lothlorien.nfbcal.org) Received: from lothlorien.nfbcal.org (ns.NFBCAL.ORG [157.22.230.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "nfbcal.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48JdPs1Ybzz3xWq for ; Fri, 14 Feb 2020 02:59:12 +0000 (UTC) (envelope-from buhrow@lothlorien.nfbcal.org) Received: from lothlorien.nfbcal.org (localhost [127.0.0.1]) by lothlorien.nfbcal.org (8.15.2/8.14.1-NFBNETBSD) with ESMTPS id 01E2wsGE009036 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 13 Feb 2020 18:58:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.97.3 at lothlorien.nfbcal.org Received: (from buhrow@localhost) by lothlorien.nfbcal.org (8.15.2/8.12.11) id 01E2wrpj018654; Thu, 13 Feb 2020 18:58:53 -0800 (PST) Message-Id: <202002140258.01E2wrpj018654@lothlorien.nfbcal.org> From: Brian Buhrow Date: Thu, 13 Feb 2020 18:58:53 -0800 X-Mailer: Mail User's Shell (7.2.6 beta(4.pl1)+dynamic 20000103) To: freebsd-xen@freebsd.org Subject: Slow networking speeds with Freebsd 12.0 and Xen-4.12.1, freebsd-12.0 as dom0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (lothlorien.nfbcal.org [127.0.0.1]); Thu, 13 Feb 2020 18:58:55 -0800 (PST) X-Rspamd-Queue-Id: 48JdPs1Ybzz3xWq X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of buhrow@lothlorien.nfbcal.org designates 157.22.230.125 as permitted sender) smtp.mailfrom=buhrow@lothlorien.nfbcal.org X-Spamd-Result: default: False [-2.24 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.987,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:ns.nfbcal.org]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[nfbcal.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-0.25)[ip: (-0.00), ipnet: 157.22.0.0/16(-0.68), asn: 7091(-0.54), country: US(-0.05)]; FORGED_SENDER(0.30)[buhrow@nfbcal.org,buhrow@lothlorien.nfbcal.org]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7091, ipnet:157.22.0.0/16, country:US]; FROM_NEQ_ENVFROM(0.00)[buhrow@nfbcal.org,buhrow@lothlorien.nfbcal.org]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2020 02:59:16 -0000 Hello. I'm noticing that network performance on guest VN's whether they're pv or hvm is very slow when using FreeBSD-12.0 as dom0 as compared with older versions of Xen and NetBSD as dom0. For example, I have the following two comparisons, both with the same domu running: FreeBSD-12.0/Xen 4.12.1, 60 mbits/sec from the vm in question. NetBSD-5.2/xen 3.3, 781 mbits/sec with the same vm as above. The NetBSD installation is running single CPU for the dom0, with 4GB of RAM, as opposed to FreeBSD, which is running 8GB of RAM and 4 CPU's. By contrast, disk performance under FreeBSD using zfs zvols' as virtual disks is quite fast. As a work around, I tried turning on msi interrupt handling on dom0 on FreeBSD, using msi=false on the xen command line at boot time, but that only resulted in a panic from FreeBSD because it couldn't get enough disk interrupts to mount the root filesystem. Has anyone else noticed this abysmal network performance with FreeBSD-12 as dom0? If so, has anyone come up with fixes? -thanks -Brian