From nobody Mon Apr 22 20:50:01 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 4VNcnj4y1lz5HsbV for ; Mon, 22 Apr 2024 20:50:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VNcnj3DpZz520Y for ; Mon, 22 Apr 2024 20:50:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713819001; a=rsa-sha256; cv=none; b=ZqWyaNtADQ8vUKlbjuf/nIH7vHlAQbNP2oMMCPqakvakXq4NfyMBqa5y3YpD8BowxFw6/1 WnCta1Z6QxBBApL0S7sQIRsp57EowzVMtCe6Hceny6NBt149caVOMltd2aCIfIwi4s37GH r2/1ch8XqHu12V/Mrg46R0GhVh6eaEywlI5ffmhe4NOtQEMrwyJcxtUmxVjxtmYJYvQ8UV 0oLEk3mflvkMF3l/vtkBg4tsdGZfEZ1AiUmroUX0/dtdYGbY+Mfb3gta4LXIQEDXRLrP2G WMYnaSA9nZllMfRoEHX6tXcoI6q8c14ayStW6+EdXHPKmeyLr78wOEAt/X1vGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713819001; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FqrOhLMiefRALaiJ/E7E2pYDAx1mL9/ZaSNp3jBTXM8=; b=KxrmQxDrCrGQ94HkfegEIH/jIxn0eetO2BfPQecLOjqm+6lyyLmZykrHXVrB/p01vTFtME NmO/4grQh+mEk6Y6FhLyXkrcVfE84/za6ocyhr1e2RQlQaIt8ZvoT6+3P0PXy7mtMJWWUP C/61A6TXZmym3bu+4pfMEX3WLiLQRKBjkbcmjDYy8maJkDSdjcuCFJfXWZfrXh6yfpXLQu 6bRRoTjX60lUWBsXwB+AmQKaBf9PdX44nGDG4Vx0/0kgO7OyK55aKhqAED6sBBc/fMNTcm mdxDSgjwIR97GTbtcWxhGSNvSBeVZ98wA7nAvsG4oRVxKMKSO1fKs3vlOLmCww== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VNcnj2rZGz13fN for ; Mon, 22 Apr 2024 20:50:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43MKo17f098197 for ; Mon, 22 Apr 2024 20:50:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43MKo1rA098196 for virtualization@FreeBSD.org; Mon, 22 Apr 2024 20:50:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 278535] bhyve: occasional long delays during boot Date: Mon, 22 Apr 2024 20:50:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lexi.freebsd@le-fay.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278535 Bug ID: 278535 Summary: bhyve: occasional long delays during boot Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: lexi.freebsd@le-fay.org when testing on bhyve, i've noticed that the kernel will sometimes hang dur= ing boot. console output: ?cLoading kernel... /boot/kernel/kernel text=3D0x1852c8 text=3D0xec48a8 text=3D0x4852bc data=3D= 0x180+0xe80 data=3D0x199700+0x466900 0x8+0x19db08+0x8+0x1c80cb| Loading configured modules... /etc/hostid size=3D0x25 /boot/entropy size=3D0x1000 Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... staging 0xb4000000 (not copying) tramp 0xbe278000 PT4 0xbe26f000 Start @ 0xffffffff80386000 ... GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb ---<>--- Copyright (c) 1992-2024 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 15.0-CURRENT #3 lf/bridge-inet-n269607-75357a4ae2c4: Mon Apr 22 20:24:11 BST 2024 =20=20=20 lexi@ilythia.eden.le-fay.org:/src/obj/src/freebsd/src/bridge-inet/amd64.amd= 64/sys/GENERIC amd64 FreeBSD clang version 18.1.4 (https://github.com/llvm/llvm-project.git llvmorg-18.1.4-0-ge6c3289804a6) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. CPU: AMD Ryzen 7 5800X3D 8-Core Processor (3541.95-MHz K8-class = CPU) Origin=3D"AuthenticAMD" Id=3D0xa20f12 Family=3D0x19 Model=3D0x21 Step= ping=3D2 =20 Features=3D0x1783fbff =20 Features2=3D0xfed83203 AMD Features=3D0x26500800 AMD Features2=3D0x444231fb Structured Extended Features=3D0x201403a9 Structured Extended Features2=3D0x600 XSAVE Features=3D0x1 AMD Extended Feature Extensions ID EBX=3D0x7 TSC: P-state invariant Hypervisor: Origin =3D "bhyve bhyve " real memory =3D 8589934592 (8192 MB) avail memory =3D 8256217088 (7873 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 4 package(s) x 1 core(s) random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" random: unblocking device. ioapic0 irqs 0-31 Launching APs: 3 2 1 [hang here...] the VM does eventually recover, after several minutes, and finishes booting= .=20 however when this happens, the boot is very slow -- in the case i just noti= ced, it took about 15 minutes to boot to a multiuser login prompt. this may be related to high CPU load on the host, since i normally use bhyve when working on src, so i'm testing and building at the same time. i have = not noticed this issue on production bhyve instances where the host is mostly i= dle. host: FreeBSD 15.0-CURRENT #29 lf/main-n269030-a8c2ee4fe736: Thu Apr 18 19:57:54 BST 2024=20=20=20=20 srcmastr@daphne.eden.le-fay.org:/src/obj/src/freebsd/lf/main/amd64.amd64/sy= s/LF guest: FreeBSD 15.0-CURRENT #3 lf/bridge-inet-n269607-75357a4ae2c4: Mon Apr= 22 20:24:11 BST 2024=20=20=20=20 lexi@ilythia.eden.le-fay.org:/src/obj/src/freebsd/src/bridge-inet/amd64.amd= 64/sys/GENERIC --=20 You are receiving this mail because: You are the assignee for the bug.=