Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2025 09:24:35 +0300
From:      Oleksandr Kryvulia <shuriku@shurik.kiev.ua>
To:        virtualization@freebsd.org
Subject:   Re: Win 11 Pro has high CPU usage on idle in bhyve
Message-ID:  <99eeb9d5-3348-4af1-8fd9-69fa68b00190@shurik.kiev.ua>
In-Reply-To: <8A3D6173-9699-4CA4-A882-4B152EF4E298@gmail.com>
References:  <95CDB4A8-D05C-4BB8-8049-FBA967E40D60@gmail.com> <CAN6yY1vRmEHxbDp6kAcJ_se2JS2VwTv=j87c3NVc24HKFduwMQ@mail.gmail.com> <694B4BDB-A871-4140-A5B2-672A07EAAFE6@gmail.com> <CAGGgMJdfnnQ%2BgKtWevWs4%2BzbdPuj_SDzJdPc_FKFBKnTvf2h3w@mail.gmail.com> <8A3D6173-9699-4CA4-A882-4B152EF4E298@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Try also to change disk0_type="nvme"

17.04.25 20:45, Marco Orsatti:
> I actually connect to the VM via RDP (from another PC), but when I 
> took the screenshot and looked at the CPU, there is no active 
> connection, neither VNC nor RDP.
>
> I have tested the various editions of Win11, Pro, LTSC, IoT, and they 
> all have the same CPU problem.
>
>
>
>
>> Marco Orsatti
>> direttore
>> I.T. Museum
>> Museo dell’evoluzione Informatica
>>
>> www.itmuseum.it
>> p.zza Municipio, 15 - 46022 Felonica (MN)
>> Tel. +39 320 26 92 994
>> Mail. info@itmuseum.it   -   Skype.marco.orsatti
>
>> Il giorno 17 apr 2025, alle ore 19:32, Mark Peek <mp@freebsd.org> ha 
>> scritto:
>>
>> On Thu, Apr 17, 2025 at 10:19 AM Marco Orsatti 
>> <marco.dmc12@gmail.com> wrote:
>>
>>     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%
>>
>>
>> Since you're running in graphics mode you likely have a VNC client 
>> running to connect to it. Try disconnecting the VNC connection and 
>> check the bhyve CPU usage. Screen updates need to be sent over VNC so 
>> even little changes (blinking cursors, clock, etc.) will generate 
>> traffic and use CPU.
>>
>> Mark
>

[-- Attachment #2 --]
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Try also to change disk0_type="nvme"<br>
    <br>
    <div class="moz-cite-prefix">17.04.25 20:45, Marco Orsatti:<br>
    </div>
    <blockquote type="cite"
      cite="mid:8A3D6173-9699-4CA4-A882-4B152EF4E298@gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>
        <div>I actually connect to the VM via RDP (from another PC), but
          when I took the screenshot and looked at the CPU, there is no
          active connection, neither VNC nor RDP.</div>
        <div><br>
        </div>
        <div>I have tested the various editions of Win11, Pro, LTSC,
          IoT, and they all have the same CPU problem.</div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <br id="lineBreakAtBeginningOfMessage">
      <div>
        <meta charset="UTF-8">
        <div dir="auto"
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
          <div dir="auto"
style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
            <div>
              <blockquote cite="mid:5407162C.5060603@mcrservice.net"
                type="cite"
style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal;"><font
                  color="#1b1b1b">Marco Orsatti<br>
                  direttore<br>
                </font></blockquote>
              <blockquote cite="mid:5407162C.5060603@mcrservice.net"
                type="cite"
style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal;"><font
                  color="#1b1b1b">I.T. Museum<br>
                </font></blockquote>
              <blockquote cite="mid:5407162C.5060603@mcrservice.net"
                type="cite"
style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal;"><font
                  color="#1b1b1b">Museo dell’evoluzione Informatica<br>
                  <br>
                  <a class="moz-txt-link-abbreviated" href="http://www.itmuseum.it">www.itmuseum.it</a><br>;
                  p.zza Municipio, 15 - 46022 Felonica (MN)<br>
                  Tel. +39 320 26 92 994  <br>
                  Mail. <a class="moz-txt-link-abbreviated" href="mailto:info@itmuseum.it">info@itmuseum.it</a>   -   Skype.marco.orsatti</font></blockquote>
            </div>
          </div>
        </div>
      </div>
      <div><br>
        <blockquote type="cite">
          <div>Il giorno 17 apr 2025, alle ore 19:32, Mark Peek
            <a class="moz-txt-link-rfc2396E" href="mailto:mp@freebsd.org">&lt;mp@freebsd.org&gt;</a> ha scritto:</div>
          <br class="Apple-interchange-newline">
          <div>
            <div dir="ltr">
              <div dir="ltr">On Thu, Apr 17, 2025 at 10:19 AM Marco
                Orsatti &lt;<a href="mailto:marco.dmc12@gmail.com"
                  moz-do-not-send="true" class="moz-txt-link-freetext">marco.dmc12@gmail.com</a>&gt;
                wrote:</div>
              <div class="gmail_quote gmail_quote_container">
                <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                  <div>Thanks Kevin for the info.
                    <div>
                      <div><br>
                      </div>
                      <div>I checked, but there is no Outlook Classic in
                        the VM, I also used this script (<a
                          href="https://github.com/Raphire/Win11Debloat"
                          target="_blank" moz-do-not-send="true"
                          class="moz-txt-link-freetext">https://github.com/Raphire/Win11Debloat</a>)
                        to remove unnecessary components, but the CPU is
                        still very much in use.</div>
                      <div><br>
                      </div>
                      <div>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%</div>
                    </div>
                  </div>
                </blockquote>
                <div><br>
                </div>
                <div>Since you're running in graphics mode you likely
                  have a VNC client running to connect to it. Try
                  disconnecting the VNC connection and check the bhyve
                  CPU usage. Screen updates need to be sent over VNC so
                  even little changes (blinking cursors, clock, etc.)
                  will generate traffic and use CPU.</div>
                <div><br>
                </div>
                <div>Mark</div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
  </body>
</html>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99eeb9d5-3348-4af1-8fd9-69fa68b00190>