From nobody Sun Nov 03 17:11:35 2024 X-Original-To: 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 4XhLjn0TNdz5cSrn for ; Sun, 03 Nov 2024 17:11:41 +0000 (UTC) (envelope-from Stephan.Althaus@Duedinghausen.eu) Received: from mo4-p05-ob.smtp.rzone.de (mo4-p05-ob.smtp.rzone.de [81.169.146.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.smtp.rzone.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhLjl45zMz4dbZ for ; Sun, 3 Nov 2024 17:11:38 +0000 (UTC) (envelope-from Stephan.Althaus@Duedinghausen.eu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hoewweken.de header.s=strato-dkim-0002 header.b=UuBJtLAg; dkim=pass header.d=hoewweken.de header.s=strato-dkim-0003 header.b=iXe3WiMA; spf=none (mx1.freebsd.org: domain of Stephan.Althaus@Duedinghausen.eu has no SPF policy when checking 81.169.146.181) smtp.mailfrom=Stephan.Althaus@Duedinghausen.eu; dmarc=none; arc=pass ("strato.com:s=strato-dkim-0002:i=1") ARC-Seal: i=1; a=rsa-sha256; t=1730653896; cv=none; d=strato.com; s=strato-dkim-0002; b=cXR628suzV7pgNPCBHO08mB1pA5x3TI9izVE3jBvb6MKHLGlnQp/pL121VScqRcwkq zN0ek6uF+PT2RvnPGFsKlX9VG6KPyRBkyMmwMdT4jhUeE8P35AXDfRZpEdA/YFCFT1gi iQV3lbZkKRYol3LggkWph8izb63wIfahn83OJOgeHkI5jsZytro63vc9kToI3rc03Q5l 2PJyFoa196m4wg6DbkakUeBFVYVD0ctZ6fOGTh9Ylsfb2WQvyLEXLVkZI9uA3vTpmsJR aKvFa3QeJ3bmXcBtm1pFPITp6NN29I/16uFvMXoGfmRsuJy5xyw6KPVb17Yw3FnqU8EW 1r4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1730653896; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=huBWkSUrzHf3Qw+Eni4CrGBGZHFmKoBs4fIpiIm2KjA=; b=prIw6Q08jqrWMvmjXiHJYRq2Kiep8gve/fQIFmCDrTXAA4hAHWdGNTazyEEipxWdnE ePjTXoUi67s2QeTpjpbq2AB+NNrfF+Afr6PxQ8MGIu2//UNhAJT62ckEVkF+vPds074M J4cZZuLHDR/OUpWAq35+KF7um0PnIdWF1fhcCW11o6muwVM36OskEznFxcNylJUzExDP o7+VCPlF79NV5raeI3GC20TqpGuRIpSby+bmn9uSHDBXt3sE11kq0JiP42EQDtztObsR 3w03ULpaDoJGZRL3X2BQ3SYl46iGcOOi5hYfSdBNa1iRMiXy/ryeD3s5OyYG7gdaMSrS HBxQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1730653896; s=strato-dkim-0002; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=huBWkSUrzHf3Qw+Eni4CrGBGZHFmKoBs4fIpiIm2KjA=; b=UuBJtLAglXQCUPtu9dQZNCrBx/hRc/L4yVURCUjoO3+CByyJaNcsFfIOou1TczpRZL UZ5w09iTH1DzDpwGWWqvb6J0J8kHPF5PuNs/FDJ31cTK/ZTTrfAAng+7iGCFSdvZML+V LkDWlLQAwMRUD7BqhZTZ0MDSxKP/egIvEIXjiBKW85PQwxGTmyCUbHCXm8flaPb2w3ls FtH02jB1C8MN/eyBCYEeZKbCeMH+5alejWoz5LcqZHtGc8tWPzBObo3k9/NAVC1H/EGX GF3+KsqZLH8LrAUq71AsKXmEfcrrrMs4Uj1C7q9WTDeYWmfyqVd6Ql4spWkgJkhstbmB Ksag== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1730653896; s=strato-dkim-0003; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=huBWkSUrzHf3Qw+Eni4CrGBGZHFmKoBs4fIpiIm2KjA=; b=iXe3WiMA716G0rEmYv5Esd8t3SlUFbj/eQlE17acf5nHeZ6tlHLwBb1y34pGsmTcrf 9pw7ZUEozmUo8H9GhoBQ== X-RZG-AUTH: ":O2kGeEG7b/pS1EW2TmikjLDsYYueHLp2aWg0q38nsxvThUrH35SBpgREu1WSr0eTdsy8FQ==" X-RZG-CLASS-ID: mo05 Received: from www.duedinghausen.eu by smtp.strato.de (RZmta 51.2.11 DYNA|AUTH) with ESMTPSA id qd219d0A3HBaBX3 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Sun, 3 Nov 2024 18:11:36 +0100 (CET) Received: from [192.168.2.63] (speedport.ip [192.168.1.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) (Authenticated sender: steven) by www.duedinghausen.eu (Postfix) with ESMTPSA id 8762F100B82 for ; Sun, 03 Nov 2024 18:10:54 +0100 (CET) Content-Type: multipart/alternative; boundary="------------nlyEUxqc7cJXlztHYnhOHnno" Message-ID: <9ac8a62b-8630-45a9-984f-d6f53913934b@Duedinghausen.eu> Date: Sun, 3 Nov 2024 18:11:35 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: CPU count and slow Windows VM To: virtualization@freebsd.org References: Content-Language: en-US From: Stephan Althaus In-Reply-To: Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.29 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[strato.com:s=strato-dkim-0002:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[hoewweken.de:s=strato-dkim-0002,hoewweken.de:s=strato-dkim-0003]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:6724, ipnet:81.169.144.0/22, country:DE]; DMARC_NA(0.00)[duedinghausen.eu]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[hoewweken.de:+] X-Rspamd-Queue-Id: 4XhLjl45zMz4dbZ X-Spamd-Bar: ---- This is a multi-part message in MIME format. --------------nlyEUxqc7cJXlztHYnhOHnno Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/3/24 16:45, Chuck Tuffli wrote: > I'm helping someone trouble-shoot a sluggish Windows 11 VM running > under bhyve (FreeBSD 14.1) related to the number of vCPUs. With 1-2 > vCPUs, the VM's performance is reasonable, but adding 8 or more vCPUs > makes the VM nearly unusable because even moving the mouse takes minutes. > > Before I dig into this, do these symptoms sound familiar? I did find a > mention on the wiki (1): > >     Only one or two VCPUs should be used during installation but this > number >     can be increased once Windows is installed > > Is there something missing from bhyve's emulation that causes this? > TIA > > --chuck > > (1) https://wiki.freebsd.org/bhyve/Windows Hi! I am using Win10 on bhyve (FreeBSD 14.1-RELEASE-p5) with 20 vCPU and no problem here.. I would suggest first going back zu 2 vCPUs and updating all related drivers (bhyve-virtio*...) and let windows doing its internal things like searching for updates... How are you accessing the vm, via VNC or RDP ? Maybe theres some network problem.. just my 2 cents.. Regards, Stephan --------------nlyEUxqc7cJXlztHYnhOHnno Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 11/3/24 16:45, Chuck Tuffli wrote:
I'm helping someone trouble-shoot a sluggish Windows 11 VM running under bhyve (FreeBSD 14.1) related to the number of vCPUs. With 1-2 vCPUs, the VM's performance is reasonable, but adding 8 or more vCPUs makes the VM nearly unusable because even moving the mouse takes minutes.

Before I dig into this, do these symptoms sound familiar? I did find a mention on the wiki (1):

    Only one or two VCPUs should be used during installation but this number
    can be increased once Windows is installed

Is there something missing from bhyve's emulation that causes this?
TIA

--chuck

Hi!

I am using Win10 on bhyve (FreeBSD 14.1-RELEASE-p5) with 20 vCPU and no problem here..

I would suggest first going back zu 2 vCPUs and updating all related drivers (bhyve-virtio*...) and let windows doing its internal things like searching for updates...

How are you accessing the vm, via VNC or RDP ? Maybe theres some network problem..

just my 2 cents..

Regards,
Stephan


--------------nlyEUxqc7cJXlztHYnhOHnno--