From nobody Thu Apr 17 17:18:27 2025 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 4Zdl3l5D6Fz5sT5k for ; Thu, 17 Apr 2025 17:18:43 +0000 (UTC) (envelope-from marco.dmc12@gmail.com) Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Zdl3l21bSz3YWF for ; Thu, 17 Apr 2025 17:18:43 +0000 (UTC) (envelope-from marco.dmc12@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-ac29fd22163so160935966b.3 for ; Thu, 17 Apr 2025 10:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744910321; x=1745515121; darn=freebsd.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=Y6teDpoUJKnnHv/uNj45p4iccOG9gBmrYJWUQPgUh2s=; b=eCdf0iCjisQz0hiqeaATyDvIaiVMZaPFfnuHZ0kOZrHuj/B5x8882cB/GRb+4ui9IX NhzqT1YHCDKrfw/JOQVQwa0fuRTrwj8JkNlRgG2+JBsGxSbWrgbTt/cz7JYfP2GxTu1x 6OugmvEI48P0zt+bHhwnmLlso1alFtbNmGWg7+l5y/qG0lmIygGQtBYLuPM2vukMok9U Zxwb+2j1PKw2m0+ngohv73/FwT1Na1a+XlWbCuPSfM3KInZ1xBWXp+21gvoBSiq1/3UJ 8W03jl2wno0dgEqog5y/LJ7WVKkAS7QTgNDWC5WNJIUj+TY7fDK4u5qRLp53qHvnk6M2 Tdtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744910321; x=1745515121; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Y6teDpoUJKnnHv/uNj45p4iccOG9gBmrYJWUQPgUh2s=; b=RM2MVWxlk1RUviC4JwRZ+k7eD1bOYzTGutbBrMQ8Uc00wyFt5eXEwKL7K9kE5IsEZx 2Uahq2ZFvULCS7mfVpLsZxOHzAKE72AmMmBwfLzcXH8hgznv0ZJ4vDjkKla25r8b6w55 SK7YitL1GSgYaLUKFqTvJiu6c1nSujpaPUFqiC5+htWp3zuh9+KXECvVH+tZWYjvmy8h /1tYY1ffmkRaMBHd1DDE8RPamOjKqJwZYnh3TOHylbFERGjelPFaY+0achdihSVh5Nzx t+bG98gyKpTZ4oRldXRdeTatMQbxtCcghqArq1EYGlFM7QWU0kuYXtVTZDiLXUD7dGfE MJIg== X-Gm-Message-State: AOJu0YypAtG57Sw4X/hGc/xOqNb/06CNcwScZjGbGygCbVA/dw3QzOsL 4wxerpxekDMKN74qyQWLMjWlQUXDFWmO9mLMd3eYCXsp/Fly6Ed+pLZ7ZTk5 X-Gm-Gg: ASbGncvI+4Z5/upyGGeaCJEH/j1QQpwWsT5buGa/q2sipbOBezsiHA5PTTOQpFE1O/1 6IeseGgBNWMPhw2vB/Qhb+yCu6I6MLVIa9612xUYGoW8MZycaxx/DWhJf4eZkm6INpbuRmPozt1 3zctRgNa6mWObxYKKAYbZT3oBCMIkx3WFMQmtpCM2eO8nShcWK9w/pn7P8F4DDDzA/Yygujp55d t4ZLEEWA2p6b1ygbmdSEcS7M+W8yWibQb2j0d+VW0NocLd867tzaKd91GMCb72PiXWVw5Ghx3FM 5o/PmV1cVASLdXbGbae1oKbVr+PW8MuxIS5tzlIWpWh+xqXj8Qn9qRoDQ8YaRoqljgEwDKHGxKO WnPZhcDH+koHNUzhYfHU= X-Google-Smtp-Source: AGHT+IGbS5s/KALM6AY8+GgJqCSYmqi+7UYOXV2/ThBwK/BZFG3H5+6FtTAcMORzEXgiynx5lTocqg== X-Received: by 2002:a17:907:25c6:b0:ac7:cfcb:c3e3 with SMTP id a640c23a62f3a-acb42b6ba25mr602141266b.45.1744910320691; Thu, 17 Apr 2025 10:18:40 -0700 (PDT) Received: from smtpclient.apple (u-3y-178-175-197.4bone.mynet.it. [178.175.197.122]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-acb6ec4c6b5sm19621766b.49.2025.04.17.10.18.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Apr 2025 10:18:40 -0700 (PDT) From: Marco Orsatti Message-Id: <694B4BDB-A871-4140-A5B2-672A07EAAFE6@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_EB6106BB-965E-4777-9130-4BF9939FC5AF" 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: Win 11 Pro has high CPU usage on idle in bhyve Date: Thu, 17 Apr 2025 19:18:27 +0200 In-Reply-To: Cc: "virtualization@freebsd.org" To: Kevin Oberman References: <95CDB4A8-D05C-4BB8-8049-FBA967E40D60@gmail.com> X-Mailer: Apple Mail (2.3776.700.51.11.1) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4Zdl3l21bSz3YWF X-Spamd-Bar: ---- --Apple-Mail=_EB6106BB-965E-4777-9130-4BF9939FC5AF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks Kevin for the info. I checked, but there is no Outlook Classic in the VM, I also used this = script (https://github.com/Raphire/Win11Debloat) to remove unnecessary = components, but the CPU is still very much in use. It's really a strange behavior because from inside the VM the CPU usage = is around 3% while at the same time from the Host it is at 240% > Marco Orsatti > direttore > I.T. Museum > Museo dell=E2=80=99evoluzione Informatica >=20 > www.itmuseum.it > p.zza Municipio, 15 - 46022 Felonica (MN) > Tel. +39 320 26 92 994 =20 > Mail. info@itmuseum.it=20 > Il giorno 17 apr 2025, alle ore 14:47, Kevin Oberman = ha scritto: >=20 > On Thu, Apr 17, 2025 at 2:16=E2=80=AFAM Marco Orsatti = > wrote: >> G=E2=80=99day >>=20 >> I installed a windows 11 virtual machine with bhyve on FreeBSD 14.2 = x64 and I always have a very busy CPU even when windows is in Idle. >> I tried different CPU configurations for the VM, but without success. >>=20 >> This is the current configuration (vm-bhyve): >>=20 >> loader=3D"uefi" >> graphics_port=3D"5950" >> graphics=3D"yes" >> graphics_res=3D"1024x768" >> xhci_mouse=3D"yes" >> cpu=3D8 >> cpu_sockets=3D4 >> cpu_cores=3D2 >> #cpu_threads=3D1 >> memory=3D16G >> ahci_device_limit=3D"8" >> network0_type=3D"virtio-net" >> network0_switch=3D=E2=80=9Cfirewall" >> disk0_type=3D"ahci-hd" >> disk0_name=3D"/dev/zvol/vm/win11" >> disk0_dev=3D"custom" >> utctime=3D"no" >> bhyve_options=3D"-AP" >>=20 >> The first VM is Windows 11, the second is FreeBSD, the third is = Debian, and the others are Windows 10: >>=20 >>=20 >>=20 >>=20 >>=20 >> Could it be an incompatibility between windows 11 and my CPU (E5-2690 = v4)? >>=20 >> Thanks >>=20 >> Marco > =20 > This is a long shot, but Microsoft has admitted that Outlook Classic = can cause Windows to spike CPU use that is significant. THey have no fix = and your problem is likely not this, but it is a possibility. Obviously, = if you don't run Outlook Classic, this is not the problem. You can see = the article at = https://www.theregister.com/2025/04/16/classic_outlook_cpu_spike/ > -- > Kevin Oberman, Part time kid herder and retired Network Engineer. > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --Apple-Mail=_EB6106BB-965E-4777-9130-4BF9939FC5AF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks Kevin = for the info.

I checked, but there is no Outlook = Classic in the VM, I also used this script = (https://github.com/Raphire/Win11Debloat) to remove unnecessary = components, but the CPU is still very much in = use.

It's really a strange behavior because = from inside the VM the CPU usage is around 3% while at the same time = from the Host it is at 240%




Marco = Orsatti
direttore
I.T. Museum
Museo dell=E2=80=99evoluzione = Informatica

www.itmuseum.it
p.zza Municipio, 15 - 46022 = Felonica (MN)
Tel. +39 320 26 92 994 =  
Mail. info@itmuseum.it 

Il giorno 17 apr 2025, alle ore = 14:47, Kevin Oberman <rkoberman@gmail.com> ha scritto:

On Thu, Apr 17, = 2025 at 2:16=E2=80=AFAM Marco Orsatti <marco.dmc12@gmail.com> = wrote:
G=E2=80=99day

I installed a windows 11 virtual machine with bhyve on FreeBSD 14.2 x64 = and I always have a very busy CPU even when windows is in Idle.
I tried different CPU configurations for the VM, but without = success.

This is the current configuration (vm-bhyve):

loader=3D"uefi"
graphics_port=3D"5950"
graphics=3D"yes"
graphics_res=3D"1024x768"
xhci_mouse=3D"yes"
cpu=3D8
cpu_sockets=3D4
cpu_cores=3D2
#cpu_threads=3D1
memory=3D16G
ahci_device_limit=3D"8"
network0_type=3D"virtio-net"
network0_switch=3D=E2=80=9Cfirewall"
disk0_type=3D"ahci-hd"
disk0_name=3D"/dev/zvol/vm/win11"
disk0_dev=3D"custom"
utctime=3D"no"
bhyve_options=3D"-AP"

The first VM is Windows 11, the second is FreeBSD, the third is Debian, = and the others are Windows 10:





Could it be an incompatibility between windows 11 and my CPU (E5-2690 = v4)?

Thanks

Marco
 
This is a long shot, but Microsoft has admitted = that Outlook Classic can cause Windows to spike CPU use that is = significant. THey have no fix and your problem is likely not this, but = it is a possibility. Obviously, if you don't run Outlook Classic, this = is not the problem. You can see the article at https://www.theregister.com/2025/04/16/classic_outlook_cpu_spike/
=
--
Kevin Oberman, = Part time kid herder and retired Network Engineer.
E-mail= : rkoberman@gmail.com
PGP Fingerprint: = D03FB98AFA78E3B78C1694B318AB39EF1B055683

= --Apple-Mail=_EB6106BB-965E-4777-9130-4BF9939FC5AF--