From owner-freebsd-current@freebsd.org Wed Jan 20 13:52:22 2021 Return-Path: Delivered-To: freebsd-current@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 49A624F6756 for ; Wed, 20 Jan 2021 13:52:22 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4DLRm50hdfz4lSL; Wed, 20 Jan 2021 13:52:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.16.1/8.16.1) with ESMTPS id 10KDqCbU030095 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 20 Jan 2021 15:52:15 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 10KDqCbU030095 Received: (from kostik@localhost) by tom.home (8.16.1/8.16.1/Submit) id 10KDqCfQ030094; Wed, 20 Jan 2021 15:52:12 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 20 Jan 2021 15:52:12 +0200 From: Konstantin Belousov To: rhurlin@freebsd.org Cc: freebsd-current Subject: Re: Waiting for bufdaemon Message-ID: References: <1d675d77-8bdb-c285-ffa2-28330b839734@alvermark.net> <60599f75-7206-9269-ac0c-934f8f31ae26@gwdg.de> <3885bc2a-3924-cc3f-6cad-99dc6f803b0d@gwdg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3885bc2a-3924-cc3f-6cad-99dc6f803b0d@gwdg.de> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on tom.home X-Rspamd-Queue-Id: 4DLRm50hdfz4lSL X-Spamd-Bar: - X-Spamd-Result: default: False [-1.00 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:470:d5e7:1::1:from]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : No valid SPF, No valid DKIM,none]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_SOFTFAIL(0.00)[~all:c]; NEURAL_SPAM_SHORT(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[2001:470:d5e7:1::1:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[freebsd-current]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2021 13:52:22 -0000 On Wed, Jan 20, 2021 at 02:35:59PM +0100, Rainer Hurling wrote: > Am 20.01.21 um 14:12 schrieb Konstantin Belousov: > > On Wed, Jan 20, 2021 at 01:56:57PM +0100, Rainer Hurling wrote: > >> Am 20.01.21 um 13:34 schrieb Konstantin Belousov: > >>> On Wed, Jan 20, 2021 at 01:17:51PM +0100, Rainer Hurling wrote: > >>>> Am 20.01.21 um 11:18 schrieb Konstantin Belousov: > >>>>> On Wed, Jan 20, 2021 at 11:02:21AM +0100, Jakob Alvermark wrote: > >>>>>> This patch hides the problem for me. The system seems to work better now. > >>>>>> > >>>>>> No waiting on reboot, and the webcam works better. > >>>>> I am curious what do you mean by the above reference to webcam. > >>>>> Can you explain it with more details, even if only the impressions? > >>>> > >>>> I should mention, that beside the already discussed timing problem with > >>>> bufdaemon, I also have problems with several apps: > >>>> > >>>> > >>>> After a high system load, several programs only react very slowly (e.g. > >>>> Firefox). Several dockable apps from WindowMaker, but also e.g. conky do > >>>> not update their windows anymore, they freeze. After some time, Firefox > >>>> updates its screen content only after switching back from another window ... > >>>> > >>>> When such frozen programs are killed and restarted, they run normally > >>>> again for an indefinite time before they freeze again. > >>>> > >>>> These symptoms completely disappeared, after I patched the Ryzen box as > >>>> suggested on 01/17: > >>> > >>> Do you load latest microcode update from devcpu-data? > >> > >> Yes, sysutils/devcpu-data is installed and the following to lines are in > >> /boot/loader.conf > >> > >> cpu_microcode_load="YES" > >> cpu_microcode_name="/boot/firmware/intel-ucode.bin" > >> > >> But isn't this just for Intel (i387 and amd64), not AMD cpus? > > You need microcode_update_enable="YES" in /etc/rc.conf for late microcode > > update. > > > > I think that early boot update should work on AMD, bit for this you need to > > select and put right blob. It is enough to load late to answer my question. > > Ah, ok. Thanks for clarification. I also put cpu_microcode_load="YES" in > /etc/rc.conf for a late update. > > Should I try again without your patch of sys/x86/tsc.c, whether the > problem still occurs? Yes. > > > And for the early boot update, how do I know about the right blob? I am not aware of the mechanism. My best suggestion is that you match the blob against your CPU family/model id manually. > > > > >> > >>> It might be not enough, which means that additionally latest BIOS needs > >>> to be flushed. > >>> > >> > >> I am running latest Firmware F31 on a "Gigabyte\ Aorus\ X570\ Elite" > >> mainboard.