From nobody Tue Jul 22 21:06:11 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 4bmqYv6Gjkz623bw for ; Tue, 22 Jul 2025 21:06:11 +0000 (UTC) (envelope-from xyzzy@sysabend.org) Received: from moo.sysabend.org (moo.sysabend.org [74.116.249.130]) by mx1.freebsd.org (Postfix) with ESMTP id 4bmqYv347fz3fZC for ; Tue, 22 Jul 2025 21:06:11 +0000 (UTC) (envelope-from xyzzy@sysabend.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of xyzzy@sysabend.org designates 74.116.249.130 as permitted sender) smtp.mailfrom=xyzzy@sysabend.org; dmarc=none Received: by moo.sysabend.org (Postfix, from userid 1001) id 2412213815; Tue, 22 Jul 2025 14:06:11 -0700 (PDT) Date: Tue, 22 Jul 2025 14:06:11 -0700 From: Tom Arnold To: freebsd-virtualization@freebsd.org Subject: Running FreeBSD 14.3 under XCP-NG performance issues Message-ID: <20250722210611.GC27456@moo.sysabend.org> Reply-To: xyzzy@sysabend.org 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: The Sysabend Dump X-Operating-System: CPM2.2 User-Agent: Mutt/1.10.1 (2018-07-13) X-Spamd-Result: default: False [-0.06 / 15.00]; NEURAL_SPAM_LONG(1.00)[0.996]; NEURAL_HAM_SHORT(-0.97)[-0.975]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+ip4:74.116.249.128/29:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; NEURAL_HAM_MEDIUM(-0.08)[-0.077]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:40475, ipnet:74.116.248.0/22, country:US]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; HAS_REPLYTO(0.00)[xyzzy@sysabend.org]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[sysabend.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[] X-Rspamd-Queue-Id: 4bmqYv347fz3fZC X-Spamd-Bar: / I've been trying to get FreeBSD happy under our new XCP-NG setup. The biggest problem I'm seeing right now is disk performance. 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. 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. Doing a simple performance test with dd ( if=/dev/zero of=file bs=1m ) on anything with a /dev/ada# entry I get a transfer rate of something around 6777 MB/s. Doing the same test on a device that is /dev/xbd# I get around half that. 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. 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. Any suggestions? Thanks. -Tom -- -------------------------------------------------------------------- - Tom Arnold - "...is it a virus, a drug, or a religion?" - Sysabend Caretaker - Juanita Shrugs. "What's the difference?" ------------------------ -- Neal Stephenson, Snow Crash