From nobody Wed Jul 23 21:21:35 2025 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bnRsd713Vz6328H for ; Wed, 23 Jul 2025 21:21:57 +0000 (UTC) (envelope-from rainer@ultra-secure.de) Received: from connect.ultra-secure.de (connect.ultra-secure.de [88.198.71.201]) by mx1.freebsd.org (Postfix) with ESMTP id 4bnRsb6jsTz3qMy for ; Wed, 23 Jul 2025 21:21:55 +0000 (UTC) (envelope-from rainer@ultra-secure.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of rainer@ultra-secure.de designates 88.198.71.201 as permitted sender) smtp.mailfrom=rainer@ultra-secure.de; dmarc=none Received: (Haraka outbound); Wed, 23 Jul 2025 23:21:48 +0200 Received-SPF: SoftFail (connect.ultra-secure.de: domain of ultra-secure.de does not designate 212.71.103.5 as permitted sender) receiver=connect.ultra-secure.de; identity=mailfrom; client-ip=212.71.103.5; helo=smtpclient.apple; envelope-from= Received-SPF: None (connect.ultra-secure.de: domain of smtpclient.apple does not designate 212.71.103.5 as permitted sender) receiver=connect.ultra-secure.de; identity=helo; client-ip=212.71.103.5; helo=smtpclient.apple; envelope-from= Received: from smtpclient.apple ([212.71.103.5]) by connect.ultra-secure.de (Haraka/2.6.2-toaster) with ESMTPSA id 49230C1F-7045-4FD6-846C-4145B0BCAE36.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 verify=NO); Wed, 23 Jul 2025 23:21:46 +0200 Content-Type: text/plain; charset=utf-8 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Re: Running FreeBSD 14.3 under XCP-NG performance issues From: Rainer Duffner In-Reply-To: <20250722210611.GC27456@moo.sysabend.org> Date: Wed, 23 Jul 2025 23:21:35 +0200 Cc: freebsd-virtualization@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8533E4AC-3B62-47EC-91D1-4EFB8767B241@ultra-secure.de> References: <20250722210611.GC27456@moo.sysabend.org> To: xyzzy@sysabend.org X-Mailer: Apple Mail (2.3776.700.51.11.1) X-Haraka-GeoIP: EU, CH, 451km X-Haraka-ASN: 24951 X-Haraka-GeoIP-Received: 212.71.103.5:CH X-Haraka-ASN: 24951 212.71.96.0/20 X-Haraka-ASN-CYMRU: asn=24951 net=212.71.96.0/20 country=CH assignor=ripencc date=1999-11-18 X-Haraka-p0f: os="Mac OS X " link_type="DSL" distance=13 total_conn=5 shared_ip=N X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on spamassassin X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, SPF_HELO_NONE,SPF_SOFTFAIL,URIBL_BLOCKED,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=no autolearn_force=no version=3.4.1 X-Haraka-Karma: score: 6, good: 4249, bad: 0, connections: 4515, history: 4249, asn_score: 114, asn_connections: 122, asn_good: 114, asn_bad: 0, pass:all_good, asn, asn_all_good, relaying X-Spamd-Result: default: False [-0.20 / 15.00]; NEURAL_SPAM_LONG(0.95)[0.952]; NEURAL_HAM_SHORT(-0.95)[-0.949]; NEURAL_HAM_MEDIUM(-0.70)[-0.700]; MV_CASE(0.50)[]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; ASN(0.00)[asn:24940, ipnet:88.198.0.0/16, country:DE]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; DMARC_NA(0.00)[ultra-secure.de]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bnRsb6jsTz3qMy X-Spamd-Bar: / > Am 22.07.2025 um 23:06 schrieb Tom Arnold : >=20 > I've been trying to get FreeBSD happy under our new XCP-NG setup. >=20 > The biggest problem I'm seeing right now is disk performance. >=20 > I built the VM on a 200gig LUN mapped from a Dell MD5. This disk = happened to > show up as /dev/ada0 and was installed with ZFS on Root. >=20 > After rebooting I added some more LUNs and put ZFS on them. These = disks happen to > show up with /dev/xbd# as Xen seems to be being detected after the = reboot. >=20 > Doing a simple performance test with dd ( if=3D/dev/zero of=3Dfile = bs=3D1m ) on anything > with a /dev/ada# entry I get a transfer rate of something around 6777 = MB/s. >=20 > Doing the same test on a device that is /dev/xbd# I get around half = that. >=20 > If I fight a bit and disable xenguest and get one of the "newer" LUNs = over to a > /dev/ada# device the performance goes up into the 6777 MB/s range. >=20 > I figure I'm doing something wrong here but docs seem to be sparse on = this and > Vates doesn't fully support FreeBSD so its a YMMV sorta thing. >=20 > Any suggestions? >=20 XCP-NG is Xen, right? Many, many years ago, I had similar problems with XenServer and FreeBSD. I opened a PR or two but nothing ever came out of it (you can find them We switched to KVM with Openstack and the problem was more or less the = same - until about FreeBSD 14.2, when I seemed to see a remarkable = performance-increase - though I haven=E2=80=99t benchmarked it.