From nobody Sat Mar 18 13:59:44 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 4Pf2gf0hspz3ybnq for ; Sat, 18 Mar 2023 13:59:58 +0000 (UTC) (envelope-from julie@koubova.net) Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (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 4Pf2gd1Jksz4Dy6 for ; Sat, 18 Mar 2023 13:59:57 +0000 (UTC) (envelope-from julie@koubova.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=koubova.net header.s=google header.b=f3Zd3Bm0; spf=pass (mx1.freebsd.org: domain of julie@koubova.net designates 2607:f8b0:4864:20::531 as permitted sender) smtp.mailfrom=julie@koubova.net; dmarc=pass (policy=reject) header.from=koubova.net Received: by mail-pg1-x531.google.com with SMTP id y19so4367081pgk.5 for ; Sat, 18 Mar 2023 06:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koubova.net; s=google; t=1679147995; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=wrD37fbXSiMpoOZqXwCWKoWHZvlYUtlJUHk3xId809o=; b=f3Zd3Bm0FF+6MzW+oFoY/rIt33OprMS46g8MlYiq8a6QNzZYUGJoOApUlwLVRkV42J iXCWZC5Y+OUUQnE7d0ZOXFns/HpQYGPFpslwIV87fc/SX4KUn4Lf4ihrK85C8XCUKWpr TaGsvTFe6eAQhdWze5JuEZVp6HAmmgvqVvrZ6VUqbiKIVk9uSi8iTa9xM/EGqS8NyOTx iHu5LsYeTBEnQBhSyXveAxaHC6EbDPruOJcZi9PYmGxr6GPRJQyKrQjGYQyEpkXU5Ys7 qJQHNo2ayKhTZK8dHFnkWFU9RuXECqddCSQMp880kANII/dCoXmFbZutaRMUeR5/k7ut uprQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679147995; 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=wrD37fbXSiMpoOZqXwCWKoWHZvlYUtlJUHk3xId809o=; b=SlbReDX2e6jpct8eVd3CMx+dcNSqPlj3mxH6zBCjNpvrtDYpsR1OhLZuzDPx9Ds7Kk gDvH4yJSAfZw5/vjfgBMzsCCrHr4Ph+ygq6zKbSksvUOjI2+LPGb3h/fH8sIFDtLx4tD eqGvq8GZZ17B48UVh6Z4zajrN3rZ6pMCKw4huIPvtGVSDRAexOUlwnHMBBTVF+eH3MIF U0BVf/kdYG9cnLqN8SJ3YV8A1wYnLOZ/vJtDm/jZATVUwyEh1gYdu1NcCA+Mejonr+hC Zi7QBChfVxYEo3eYiV0dHBVCIqQFnfLdnUxRfPOCJGkVoVqxfPXejXUiEybIYPGOF+MT WSVQ== X-Gm-Message-State: AO0yUKVIFQEaMJaOMUZy4sBxq2N4/SCIVZEDleBKcW3whCa9BLT8KpfJ 4/iY2p0InFNJMXyMlbND5fV/H2M0bLF9VFeJBRnXQbkO0QDELVgzBTk= X-Google-Smtp-Source: AK7set+uTWw3XwpJ7SfECUCBdibekeGJs64QkvxAVipzdtajeVXXa67tryQMYbSrYpw/2DM3MDlLIpBqe8mmhaDf6jc= X-Received: by 2002:a65:528b:0:b0:50b:dfd4:b56f with SMTP id y11-20020a65528b000000b0050bdfd4b56fmr423416pgp.5.1679147995611; Sat, 18 Mar 2023 06:59:55 -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: In-Reply-To: From: =?UTF-8?Q?Julie_Koubov=C3=A1?= Date: Sat, 18 Mar 2023 14:59:44 +0100 Message-ID: Subject: Bhyve process consumes way too much CPU To: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000cde49c05f72d1bfd" X-Spamd-Result: default: False [-3.44 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; R_MIXED_CHARSET(0.56)[subject]; DMARC_POLICY_ALLOW(-0.50)[koubova.net,reject]; R_DKIM_ALLOW(-0.20)[koubova.net:s=google]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::531:from]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DKIM_TRACE(0.00)[koubova.net:+]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Pf2gd1Jksz4Dy6 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --000000000000cde49c05f72d1bfd Content-Type: text/plain; charset="UTF-8" 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 GB 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 way 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 the host, vm-bhyve to manage the virtual machines, and I don't have a swap partition. Thanks for your help, Julie --000000000000cde49c05f72d1bfd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey= everyone,

I'm running Linux (Home Assistant OS= ) in Bhyve on FreeBSD 13.1. I use PCI passthrough to allow the VM to=C2=A0a= ccess a USB card with a couple of radio dongles. The host machine is an Int= el Core i3 13100 with 64 GB of RAM. The CPU has 4 physical cores (8 hyper-t= hreaded). The virtual machine is assigned four cores.=C2=A0

The host load averages are 0.39 0.39 0.4= 0 right now, which seems way too much. The same workload was previously han= dled by a Raspberry Pi 4, and the CPU usage there was under 10% when not do= ing 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 swa= p partition.
Thanks for y= our help,
Julie=
--000000000000cde49c05f72d1bfd--