From nobody Fri Nov 17 20:25:23 2023 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 4SX7gm1Gvpz51LVZ for ; Fri, 17 Nov 2023 20:25:24 +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 4SX7gl3hhZz3Wp6 for ; Fri, 17 Nov 2023 20:25:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700252723; 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=jF3Znco8piSPGg7sJ5v5adrLpTaAtckhynTQdws5p6U=; b=YDLh/ByINsCcZW7iDAV70rerVCM4ugfCNe8zYGjwhD25FdKEJ6JcImOKnnEEN4kOlXykvb Ou0fMkYxPdH4m8dlyCbA38VKzMn1bJ1rSsQU90e9c0mOyQAH/xlHVErN2ZAZhFBuvw2fTE NTsASRILM3MX363kYAOL4/rFpaj6kurjSsCk2tTsFyyJiDdZzBY/jhSpWuvOytYSNiQIRu FQjYXP9LgG71a9Pi2X/SQKz+ZnS7HQ98GGDciF0rmTZMcVNBs3lPfsOID/Hdi975zjbqf8 y0DwTohDKHIYBA3UutbW1r5EgSoM9Qozk+5eQ5vQyb16f/TfuWk07WnP+1ShSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700252723; a=rsa-sha256; cv=none; b=pkv5Xb4TNNHN0TPT5R2aqbpJ+Og8KC22K8GkX4Nq4+pUvjzLOmiSnYu9UrP12De4t+m4EP 0R700jlTXNmtZkEulveoOZXSlQkvsuvaDyrLT9e2R6VV0IAldqX3KdEOgrllZOLYxjpgzX 1k4/xUidY/rVCHLLRJSMLM7ZHYmYWgSSj+9XFTr6ndbTwzLaxXF9DBjUJCTqBekqnh8n6y MgfzGm40SLjWocexcVb2CzLOGT6u6jx1NC+kpC/8D1S0onSlFswOn/IWhS3jyk8W16rlCs 7F+ukqZa8lhy2qJwgdaNaU1aHW4TJwuNbT3Z+nR/Fg+wXeVlLF/JMeoFENFr1g== 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 4SX7gl2hS0zxnd for ; Fri, 17 Nov 2023 20:25:23 +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 3AHKPNnU074620 for ; Fri, 17 Nov 2023 20:25:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AHKPNmV074619 for virtualization@FreeBSD.org; Fri, 17 Nov 2023 20:25:23 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 275155] TSC clocksource quickly becomes unstable in ubuntu VMs Date: Fri, 17 Nov 2023 20:25:23 +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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: sean@rogue-research.com 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: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275155 Bug ID: 275155 Summary: TSC clocksource quickly becomes unstable in ubuntu VMs Product: Base System Version: Unspecified Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: sean@rogue-research.com All 3 of my Ubuntu VMs (20.04 and 22.04), shortly after booting, have in th= eir kernel log: ``` clocksource: timekeeping watchdog on CPU1: Marking clocksource 'tsc' as unstable because the skew is too large: clocksource: 'hpet' wd_nsec: 510151922 wd_now: dd0dbd= 1f wd_last: dc8b23ce mask: ffffffff clocksource: 'tsc' cs_nsec: 510575753 cs_now: 41a058cf4fac4e cs_last: 41a0588c680999 mask: ffffffffffffffff clocksource: 'tsc' is current clocksource. tsc: Marking TSC unstable due to clocksource watchdog TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=3Dunstable'. sched_clock: Marking unstable (5085057420454, 3573276862)<-(5088679512297, -48428374) clocksource: Checking clocksource tsc synchronization from CPU 3 to CPUs 0-= 2. clocksource: Switched to clocksource hpet ``` I'm using the bhyve in the latest TrueNAS: FreeBSD freenas.local 13.1-RELEASE-p7 FreeBSD 13.1-RELEASE-p7 n245428-4dfb91682c1 TRUENAS amd64 My host (running TrueNAS) is an Intel Xeon E5-2630 v4 @ 2.2 GHz with SuperM= icro X10 motherboard. It was previously using TSC as its clocksource, but I switched it to HPET. The above log in the guests occurs either way. I'm not certain if these logs are in and of themselves an indication of a problem, but I'm filing this ticket on the assumption that they are. (All = 3 of these VMs also have a problem where their /var/log/kern.log will frequently have a entry about CPU stalls, and then services fail, and a reboot is required. I suspect, but don't know, that the root problem is this clockso= urce issue above, and hence this ticket.) --=20 You are receiving this mail because: You are the assignee for the bug.=