From owner-freebsd-bugs@freebsd.org Fri Jan 29 22:35:42 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4D7F04FB3A0 for ; Fri, 29 Jan 2021 22:35:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DSBxp18fGz4WJF for ; Fri, 29 Jan 2021 22:35:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 174C44FB406; Fri, 29 Jan 2021 22:35:42 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1575E4FAFF2 for ; Fri, 29 Jan 2021 22:35:42 +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 4DSBxn6DrWz4WJD for ; Fri, 29 Jan 2021 22:35:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 8A95027B0 for ; Fri, 29 Jan 2021 22:35:41 +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 10TMZf6C073538 for ; Fri, 29 Jan 2021 22:35:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 10TMZfgJ073537 for bugs@FreeBSD.org; Fri, 29 Jan 2021 22:35:41 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: bugs@FreeBSD.org Subject: [Bug 253087] Timeout of bufdaemon happens at shutdown time with -CURRENT amd64 and VirtulaBox VM Date: Fri, 29 Jan 2021 22:35:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yasu@utahime.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 cc 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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2021 22:35:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253087 Bug ID: 253087 Summary: Timeout of bufdaemon happens at shutdown time with -CURRENT amd64 and VirtulaBox VM Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: yasu@utahime.org CC: kib@FreeBSD.org [Host] CPU: Intel Core i7 9700 3.00GHz OS: 64bit Windows 10 20H2 VirtualBox: 6.1.18 [VM] CPU: 4 core Mem: 8GB HDD: 100GB Since December I've been experiencing the problem that timeout of bufdaemon happens at shutdown time with -CURRENT amd64 and VirtualBox VM under above conditions. The problem happens when I login the VM and do something to cer= tain extent. For example the problem is reproducible by doing `make buildworld`. The same problem was reported by AMD Ryzen users at freebsd-current ML and = fix for the CPU was already committed. But in my case CPU is Intel and fix for = AMD Ryzen doesn't solve the problem of course. So I tried bisect of source tree= and found that following commit is the source of the problem. ---------------------------------------------------------------------- commit 84eaf2ccc6aa05da7b7389991d3023698b756e3f Author: Konstantin Belousov Date: Mon Dec 21 19:02:31 2020 +0200 x86: stop punishing VMs with low priority for TSC timecounter I suspect that virtualization techniques improved from the time when we have to effectively disable TSC use in VM. For instance, it was report= ed (complained) in https://github.com/JuliaLang/julia/issues/38877 that FreeBSD is groundlessly slow on AWS with some loads. Remove the check and start watching for complaints. Reviewed by: emaste, grehan Discussed with: cperciva Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27629 ---------------------------------------------------------------------- I confirmed that the problem still happens with f17fc5439f517d06ac8976f53354789cde5a7427 committed at Fri Jan 29 09:34:27 2= 021 -0500 but reverting above one fixes the problem. Moreover same problem happ= ens with 40cb0344eb27e0bb9a112ff50812a7e77816d6be of stable/13 committed at Thu= Jan 28 18:59:57 2021 -0500 and and reverting above one also fixes the problem. Cc-ing the committer of 84eaf2ccc6aa05da7b7389991d3023698b756e3f --=20 You are receiving this mail because: You are the assignee for the bug.=