From owner-freebsd-net@freebsd.org Thu Jul 4 08:39:46 2019 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 111D915CCE84; Thu, 4 Jul 2019 08:39:46 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from smtp.krpservers.com (smtp.krpservers.com [62.13.128.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.krpservers.com", Issuer "RapidSSL RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AA14086B88; Thu, 4 Jul 2019 08:39:44 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from [10.12.30.106] (host165-120-77-244.range165-120.btcentralplus.com [165.120.77.244]) (authenticated bits=0) by smtp.krpservers.com (8.15.2/8.15.2) with ESMTPSA id x648db7Y057371 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 4 Jul 2019 09:39:38 +0100 (BST) (envelope-from kpielorz_lst@tdx.co.uk) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tdx.co.uk; s=krpdkim; t=1562229579; bh=vBUCabX76MGhYGJhCK52Q6mlTpZreRDLYUzOOcKeL1I=; h=Date:From:To:Subject; b=DCjNN+8lS9/X6IaVqEgbKenS8b4TAkrgu3ay7pe4pdKkHJHj/fBfHhPYTjTgTijQ2 FYlCVk+KUa7EhlhUxaUIzVK3qh4dGOe5fdP5afLJS6h4Pd5NZi69swrcocFit5aH/x I69sXtfPjzkWJXO/kluuvMC3hZC/Gkd8aDo0pUGmUwyEfzLdKwNNh0l56ikFBqWqgH xwCieAj44cF0/cccIt7EJcVPzI3F1I8fl3pQM/vO4gkBBIAZxbXWWL7FEGqI/HjshM PVAWAa/J/siTPZajvqXfE/GrXu1TbvLsLkB5FXXnyWRXMVIxmI8SSZ6v16NajtRXhW Uj5x4oOIOPTHw== Date: Thu, 04 Jul 2019 09:39:27 +0100 From: Karl Pielorz To: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Christian M cc: freebsd-xen@freebsd.org, Eugene Grosbein , freebsd-net@freebsd.org Subject: Re: Very slow and inconsistent internal network speed (between, VM's on the same host) for FreeBSD 11.0+ as guest on, XCP-ng/XenServer Message-ID: In-Reply-To: <20190704072354.6ycduisiidz5iy2x@Air-de-Roger> References: <9c377fe7-5546-9e0b-fac9-076dd094cbac@grosbein.net> <47bb1bfe-ac39-78d3-c9b9-17ff1896e0ec@grosbein.net> <20190627101901.3szaaxhp4xzjiay5@MacBook-Air-de-Roger.local> <20190704072354.6ycduisiidz5iy2x@Air-de-Roger> X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Rspamd-Queue-Id: AA14086B88 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tdx.co.uk header.s=krpdkim header.b=DCjNN+8l; dmarc=pass (policy=none) header.from=tdx.co.uk; spf=pass (mx1.freebsd.org: domain of kpielorz_lst@tdx.co.uk designates 62.13.128.145 as permitted sender) smtp.mailfrom=kpielorz_lst@tdx.co.uk X-Spamd-Result: default: False [-2.28 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[tdx.co.uk:s=krpdkim]; NEURAL_HAM_MEDIUM(-0.97)[-0.975,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:smtp.krpservers.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_IP_LITERAL(0.50)[]; DKIM_TRACE(0.00)[tdx.co.uk:+]; MX_GOOD(-0.01)[mx0.krpservers.com]; DMARC_POLICY_ALLOW(-0.50)[tdx.co.uk,none]; NEURAL_SPAM_SHORT(0.22)[0.220,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.02)[country: GB(-0.09)]; ASN(0.00)[asn:60969, ipnet:62.13.128.0/24, country:GB]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 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, 04 Jul 2019 08:39:46 -0000 --On 04 July 2019 09:23 +0200 Roger Pau Monn=C3=A9 = wrote: > As a workaround you can switch to the emulated network card by > setting 'hw.xen.disable_pv_nics=3D1' in /boot/loader.conf. That will > give you worse performance than a fully working PV network card, but > at least should be consistent. There are others that have switched to > virtio-net, but I have no idea how to do that with XCP. Just to add my $0.02's to the conversation... As Roger knows we've had numerous issues with Xen xn based networking and=20 FreeBSD guests over the years. We currently run VirtIO (vtnet) on XenServer = 7.1 and it solves all these issues (it's probably not quite as 'performant' = as xn - but it's close for what we're using it with - it is miles better=20 than e1000 performance). Unfortunately in XenServer 7.6 virtio is no longer compiled into Qemu from=20 what I can see. XCP-ng has the same issue (as it's based on XenServer) - so = virtio is currently not an option with XCP-ng either. e1000/rtl8139 will solve 'weirdness' (think of VM's routing traffic, doing=20 DHCP or VPN duties) - but virtio solves the same issues, with much better=20 performance. I've posted to the XCP-ng forums asking if virtio can be enabled in XCP-ng=20 builds (as this is probably more likely that getting XenServer to release=20 with it enabled). Aside from getting Xen xn 'fixed' for the cases it currently fails (no=20 small undertaking from what I understand) - it leaves FreeBSD pretty much=20 stuck, at least for some usage cases. Regards, -Karl