From nobody Tue Mar 21 17:04:43 2023 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 4PgyfC6YVVz40Xky for ; Tue, 21 Mar 2023 17:05:23 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PgyfC4dZsz3t44 for ; Tue, 21 Mar 2023 17:05:23 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x52c.google.com with SMTP id o12so62411029edb.9 for ; Tue, 21 Mar 2023 10:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679418322; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=2wf9yYWLvgCtnFesh+PpuiuZopeN2eLGl8UMewRZEDU=; b=C1XzVZlttWg0vfrO9kNBDOoQ7sFVP6ALQ63qsqZ7d7OmRRI8fx5n5dwrIcOuz+pKWc TaI3KvLKcKxxAW5RQdLw5i7JztL+F8KMH6Jfg6JB0vsBYb9H89NBTbUh6Z/JOsZai6s4 yAfzjAwIR6Y/c25hAHmVJ5HirSI1d9iOVNEWcFk/HxH/zvAxfGo92YGOlZpFW+ixSU6G pJl+PEOv+mrlN51CfIslsvJagfEPmflxMfLZCsjhvQGHX/ggzCYkDUDum1ustFxaGl7p eTr8MSomuc6Ng+wx7id5XV8pbN74BHhizOCyaEnZ/wc0xJ7EV8GwUO+oRBWdaT6U3Plu syEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679418322; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2wf9yYWLvgCtnFesh+PpuiuZopeN2eLGl8UMewRZEDU=; b=7pqPFB3JOBVUCxmWbbamQk2YB7Jrfb4JP4SvOMxVkzJLXt2mXdtTKTWjIOTz1ckRe3 aS7g5bZeK851bczodjMDoFapD6Ib9+9FKO/R8iQaBFl54ReDzAXrczlNATf0No+tvKfp XzPVvG4yD8odoCSjYswv02ZXQwRGcpzHznTH8vjbJPSE+/l3NXydL7DwV3+Ox6xjvtzU UOVI33Uj4mjq3FLziYHkHKEAG1grEsGsChLBXOlLQI1wHum/m1vKhDuoeThrpAh12iJk 4jahoZ3ji+4tp9SKHbNCbba4xfwxBP9eEyJH0KktCnp3T9K7sAOWmhYmibQYWKUUOcPc x2JA== X-Gm-Message-State: AO0yUKW0oJdT1tm/UrIjZBfwOLZnvj9X5m3LaPt9Ful/7XUBF4c9GjUq d1lYi4ylclCC3rF+B/lOtpBStJbGwYdQayY7w6c= X-Google-Smtp-Source: AK7set9gJR8Tari0Cu7Fl7dWqPpdgBAAWTgyn7J1JXdBxEd04rTBmheh6za6cDIOFWjT/tcc9reDTKrHhRqmv+PG3Ys= X-Received: by 2002:a17:906:f1d9:b0:8b1:3c31:efe6 with SMTP id gx25-20020a170906f1d900b008b13c31efe6mr6572062ejb.3.1679418322192; Tue, 21 Mar 2023 10:05:22 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: <343e827b-a1dc-b69b-9dcc-c6675deac070@quip.cz> In-Reply-To: From: Mario Marietto Date: Tue, 21 Mar 2023 18:04:43 +0100 Message-ID: Subject: Re: Bhyve process consumes way too much CPU To: Nikita Olenets , =?UTF-8?Q?Julie_Koubov=C3=A1?= , Miroslav Lachman <000.fbsd@quip.cz>, FreeBSD virtualization Content-Type: multipart/alternative; boundary="000000000000860cb005f76c0cec" X-Rspamd-Queue-Id: 4PgyfC4dZsz3t44 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --000000000000860cb005f76c0cec Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yeah,that's another project that I will work on soon. So speak please. I use bhyve every day. On Tue, Mar 21, 2023 at 6:00=E2=80=AFPM Nikita Olenets = wrote: > Hey Mario, > > Yeah, sorry. I was thinking that you were the topic starter and you were > trying to make things work under bhyve. > > Have a goo day. > > =E2=80=94 Nikita > > On Tue, Mar 21, 2023 at 12:54 Mario Marietto > wrote: > >> Are you talking with me ? I can install Home Assistant only on the >> hardware that I already have. Actually the best piece of hardware that I >> can use for my project (installing the chat gpt module on Home Assistant= + >> a speech recognition software to give a voice to chat gpt) is the nvidia >> jetson nano. And If I remember correctly,it supports only Ubuntu. I can = do >> the same on my Workstation,but I prefer to have the ability to move the >> smaller nano within a plastic container. At the end of the day It will b= e >> almost the same as a vocal assistant,but uch more programmable. >> >> On Tue, Mar 21, 2023 at 5:41=E2=80=AFPM Nikita Olenets wrote: >> >>> Hi, >>> >>> Is there any specific reason you want it to be installed under Ubuntu? >>> I=E2=80=99m asking this because I use HasOS(home assistant OS) which is= based on >>> Linux (can=E2=80=99t recall the distribution) and I=E2=80=99m running t= his for three years >>> now. No issues at all. I do have even passed through ZigBee usb stick a= nd >>> it works just fine. >>> >>> On Mon, Mar 20, 2023 at 11:12 Mario Marietto >>> wrote: >>> >>>> Hello Julie. >>>> >>>> As I said some days ago,I'm trying to install homeassistant. For the >>>> moment I'm using Ubuntu 20.04 that I have installed on the Jetson nano= ,but >>>> later I will use Ubuntu within bhyve on FreeBSD. Unfortunately,a >>>> developer,I suppose,told me that homeassistant is not supported on ubu= ntu. >>>> In Fact I tried to do that following this tutorial : >>>> >>>> https://vikoky.medium.com/jetson-nano-powered-house-29ce73f11de4 >>>> >>>> but I've got a lot of errors. I've started a thread on reddit,asking >>>> for help,here : >>>> >>>> >>>> https://www.reddit.com/r/homeassistant/comments/11wglx7/homeassisant_c= ant_be_installed_on_ubuntu_2004_the/ >>>> >>>> and he/she told me that ubuntu is not supported. So,which linux >>>> distribution have you used within bhyve ? thanks. >>>> >>>> On Sun, Mar 19, 2023 at 7:12=E2=80=AFPM Miroslav Lachman <000.fbsd@qui= p.cz> >>>> wrote: >>>> >>>>> On 18/03/2023 14:59, Julie Koubov=C3=A1 wrote: >>>>> > Hey everyone, >>>>> > >>>>> > I'm running Linux (Home Assistant OS) in Bhyve on FreeBSD 13.1. I >>>>> use >>>>> > PCI passthrough to allow the VM to access a USB card with a couple >>>>> of >>>>> > radio dongles. The host machine is an Intel Core i3 13100 with 64 G= B >>>>> of >>>>> > RAM. The CPU has 4 physical cores (8 hyper-threaded). The virtual >>>>> > machine is assigned four cores. >>>>> > >>>>> > The host load averages are 0.39 0.39 0.40 right now, which seems wa= y >>>>> too >>>>> > much. The same workload was previously handled by a Raspberry Pi 4, >>>>> and >>>>> > the CPU usage there was under 10% when not doing anything special. >>>>> > Inside the guest OS, the CPU usage is reported around 5%, which >>>>> seems >>>>> > reasonable. >>>>> > >>>>> > What's wrong? How can I start debugging this issue? I use ZFS on th= e >>>>> > host, vm-bhyve to manage the virtual machines, and I don't have a >>>>> swap >>>>> > partition. >>>>> >>>>> I had similar problem few years ago. Never solved. Exhibited on bhyve >>>>> and VirtualBox too. The problem was "the more vCPU for VM, the slower >>>>> VM". >>>>> Can you try to set just 1 vCPU to your VM? In my case, VM with 1 vCPU >>>>> was fast, almost no overhead, 2 v CPUs slightly slower but 4 or more >>>>> was >>>>> slow as hell. >>>>> I would also recommend not to overprovision real CPU core count to >>>>> vCPU >>>>> and not use multi/hyper threading cores as real cores. With your CPU, >>>>> use only 4 cores to assign to all your VMs (4 VMs with 1 vCPU each, o= r >>>>> 2 >>>>> VMs with 2 vCPU each, 1 VM with 4 vCPU) >>>>> >>>>> Miroslav Lachman >>>>> >>>>> >>>>> >>>> >>>> -- >>>> Mario. >>>> >>> -- >>> Nikita Olenets >>> >>> >> >> -- >> Mario. >> > -- > Nikita Olenets > > --=20 Mario. --000000000000860cb005f76c0cec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yeah,that's another project that I will work on soon. = So speak please. I use bhyve every day.

On Tue, Mar 21, 2023 at 6:00=E2= =80=AFPM Nikita Olenets <zeon@zeon.kiev.ua> wrote:
Hey Mario,

Yeah, sorry. I was thinking that you were the= topic starter and you were trying to make things work under bhyve.

Have a goo day.

=E2=80=94 Nikita

On Tue, Mar 21, = 2023 at 12:54 Mario Marietto <marietto2008@gmail.com> wrote:
Are you talking wi= th me ? I can install Home Assistant only on the hardware that I already ha= ve. Actually the best piece of hardware that I can use for my project (inst= alling the chat gpt module on Home Assistant + a speech recognition softwar= e to give a voice to chat gpt) is the nvidia jetson nano. And If I remember= correctly,it supports only Ubuntu. I can do the same on my Workstation,but= I prefer to have the ability to move the smaller nano within a plastic con= tainer. At the end of the day It will be almost the same as a vocal assista= nt,but uch more programmable.

On Tue, Mar 21, 2023 at 5:41=E2=80=AFPM N= ikita Olenets <ze= on@zeon.kiev.ua> wrote:
Hi,

Is there any specific reason you want it to be installed under= Ubuntu?
I=E2=80=99m asking this because I use HasOS= (home assistant OS) which is based on Linux (can=E2=80=99t recall the distr= ibution) and I=E2=80=99m running this for three=C2=A0years now. No issues a= t all. I do have even passed through ZigBee usb stick and it works just fin= e.

On Mon, Mar 20, 2023 at 11:12 Mario Marietto= <marietto20= 08@gmail.com> wrote:
Hello Julie.

As = I said some days ago,I'm trying to install homeassistant. For the momen= t I'm using Ubuntu 20.04 that I have installed on the Jetson nano,but l= ater I will use Ubuntu within bhyve on FreeBSD. Unfortunately,a developer,I= suppose,told me that homeassistant is not supported on ubuntu. In Fact I t= ried to do that following this tutorial :


but I've got a lot of errors. I've = started a thread on reddit,asking for help,here :


and he/she told me that ubu= ntu is not supported. So,which linux distribution have you used within bhyv= e ? thanks.

On Sun, Mar 19, 2023 at 7:12=E2=80=AFPM Miroslav Lachm= an <000.fbsd@quip.= cz> wrote:

--
Mario.
--
Niki= ta Olenets



--
Mario.
--
Niki= ta Olenets



--
Mario.
--000000000000860cb005f76c0cec--