From owner-freebsd-current@freebsd.org Wed Jan 20 14:22:23 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 2EA714F753F for ; Wed, 20 Jan 2021 14:22:23 +0000 (UTC) (envelope-from SRS0=Efj8N1=GX=codenetworks.net=sm@eigbox.net) Received: from bosmailout03.eigbox.net (bosmailout03.eigbox.net [66.96.186.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DLSQk468Pz4nGv for ; Wed, 20 Jan 2021 14:22:22 +0000 (UTC) (envelope-from SRS0=Efj8N1=GX=codenetworks.net=sm@eigbox.net) Received: from bosmailscan05.eigbox.net ([10.20.15.5]) by bosmailout03.eigbox.net with esmtp (Exim) id 1l2ENK-0008Pj-2p for freebsd-current@freebsd.org; Wed, 20 Jan 2021 09:22:22 -0500 Received: from [10.115.3.31] (helo=bosimpout11) by bosmailscan05.eigbox.net with esmtp (Exim) id 1l2ENJ-0005qL-QF for freebsd-current@freebsd.org; Wed, 20 Jan 2021 09:22:21 -0500 Received: from bosauthsmtp03.yourhostingaccount.com ([10.20.18.3]) by bosimpout11 with id K2NJ2401003yW76012NMot; Wed, 20 Jan 2021 09:22:21 -0500 X-Authority-Analysis: v=2.3 cv=DtjNBF3+ c=1 sm=1 tr=0 a=6uKCkKhFq2wXOH2GoQX8aA==:117 a=BXB5eCltbCg0Q+nSw1Bwcw==:17 a=EmqxpYm9HcoA:10 a=jXMol9EDn2QA:10 a=13zjGPudsaEWiJwPRgMA:9 a=6I5d2MoRAAAA:8 a=ir_SxBTIcT3EMyWmvfQA:9 a=QEXdDO2ut3YA:10 a=kDb1y1on7dRCu8Z9Cl4A:9 a=FfaGCDsud1wA:10 a=IjZwj45LgO3ly-622nXo:22 Received: from cm-81-9-160-236.telecable.es ([81.9.160.236]:44872 helo=[192.168.1.100]) by bosauthsmtp03.eigbox.net with esmtpa (Exim) id 1l2ENG-0003Kv-K3 for freebsd-current@freebsd.org; Wed, 20 Jan 2021 09:22:18 -0500 Subject: Re: Waiting for bufdaemon From: Santiago Martinez To: freebsd-current@freebsd.org References: <1d675d77-8bdb-c285-ffa2-28330b839734@alvermark.net> <60599f75-7206-9269-ac0c-934f8f31ae26@gwdg.de> <3885bc2a-3924-cc3f-6cad-99dc6f803b0d@gwdg.de> Message-ID: <9d2858a4-8036-0b0d-90fe-115bfe267409@codenetworks.net> Date: Wed, 20 Jan 2021 14:22:16 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="w2sUocPzL4UmedI0KuzAv56idb7eoBsMZ" X-EN-UserInfo: d3bdfab0736480cedf04ed92aaea2ef5:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: sm@codenetworks.net Sender: Santiago Martinez X-EN-OrigIP: 81.9.160.236 X-EN-OrigHost: cm-81-9-160-236.telecable.es X-Rspamd-Queue-Id: 4DLSQk468Pz4nGv X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.96.128.0/18:c]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[codenetworks.net:~]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[sm@codenetworks.net,SRS0=Efj8N1=GX=codenetworks.net=sm@eigbox.net]; RECEIVED_SPAMHAUS_PBL(0.00)[81.9.160.236:received]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.96.186.3:from]; ASN(0.00)[asn:29873, ipnet:66.96.128.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[sm@codenetworks.net,SRS0=Efj8N1=GX=codenetworks.net=sm@eigbox.net]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; DMARC_NA(0.00)[codenetworks.net: no valid DMARC record]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[66.96.186.3:from:127.0.2.255]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[66.96.186.3:from]; R_DKIM_PERMFAIL(0.00)[codenetworks.net:s=dkim]; RWL_MAILSPIKE_POSSIBLE(0.00)[66.96.186.3:from]; MAILMAN_DEST(0.00)[freebsd-current] 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 14:22:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --w2sUocPzL4UmedI0KuzAv56idb7eoBsMZ Content-Type: multipart/mixed; boundary="SfxMYtCuFiSQjBhv0UEkcmut1kSOAUkmb"; protected-headers="v1" From: Santiago Martinez To: freebsd-current@freebsd.org Message-ID: <9d2858a4-8036-0b0d-90fe-115bfe267409@codenetworks.net> Subject: Re: Waiting for bufdaemon References: <1d675d77-8bdb-c285-ffa2-28330b839734@alvermark.net> <60599f75-7206-9269-ac0c-934f8f31ae26@gwdg.de> <3885bc2a-3924-cc3f-6cad-99dc6f803b0d@gwdg.de> In-Reply-To: --SfxMYtCuFiSQjBhv0UEkcmut1kSOAUkmb Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Hi, excellent the patch clear the problem for me when rebooting after a kern compile, etc, etc. Also seems that Firefox and pycharm or any other java related tools are not freezing any more, but its maybe to early to confirm this 100%. Will keep you posted. Santiago On 1/20/21 1:58 PM, Santiago Martinez wrote: > Hi Everyone, i have exactly the same behavior as Rainer described. > > "After a high system load, several programs only react very slowly (e.g= =2E > Firefox)......" > > I will try with the patch and see if it also clear this on my machine > (AMD R7). > > Santiago > > > On 1/20/21 1:52 PM, Konstantin Belousov wrote: >> 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 b= etter 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 impressio= ns? >>>>>>> I should mention, that beside the already discussed timing proble= m 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. c= onky do >>>>>>> not update their windows anymore, they freeze. After some time, F= irefox >>>>>>> updates its screen content only after switching back from another= window ... >>>>>>> >>>>>>> When such frozen programs are killed and restarted, they run norm= ally >>>>>>> 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 a= re in >>>>> /boot/loader.conf >>>>> >>>>> cpu_microcode_load=3D"YES" >>>>> cpu_microcode_name=3D"/boot/firmware/intel-ucode.bin" >>>>> >>>>> But isn't this just for Intel (i387 and amd64), not AMD cpus? >>>> You need microcode_update_enable=3D"YES" in /etc/rc.conf for late mi= crocode >>>> 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 q= uestion. >>> Ah, ok. Thanks for clarification. I also put cpu_microcode_load=3D"YE= S" 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. >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.= org" --SfxMYtCuFiSQjBhv0UEkcmut1kSOAUkmb-- --w2sUocPzL4UmedI0KuzAv56idb7eoBsMZ Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEk06QWJzNAs9NTrFjWBFqYkyC55EFAmAIPJgFAwAAAAAACgkQWBFqYkyC55ES tg/+NMU8gixr5RFE959o87TtIYxmBSCCO+IWDz73JQIOaQwKCMFtpdWZKbokEu16X2DFUEmjSqLS m3wJNbTcnSeIopF6drRDlxwN7wzTiGE0vUOXwZ+c5AdTK655xmIxQu80Mv4esD2mrWssXyczG42j 6gHKia+b1iFWZ67AxLVLi4ASIr4XPovt0stDx3L0TEV9sQG0/8yG32mI5g7/Z7UBIrKyQGysiBGn zHrGZbWiWL2G4GQrgTHAsg/erGnFMROIO8fNrFjZGALQEUt/pKKKVdyieAk1GlKNs1qM5pfYzHOd E4DtCohPKcgYVpmnq0VYhamYKDtClwwRuxjPa3os267RRTzoZZscYRn7iJaV4G5PmBJSlm9xdxkD ba2oQMO/KH73vERbiJEZfU8SH8AzpNKn4yBFwuKMISNGD8hddj+DaKA40mocsQNqrXbbWwfIIFeL DciUHARz/0bzi3qnbNF+NJSiR/gsh5L0SvoZNbPATl5g1cX29YTGgSQ9PKliXdCDowxsTUNp+CWP w8DWaTnjxpNoAvWBUo0PqvWSuF5f+K2BeVwb7WGmKEIlv9A7Vd0XcO/Oo13x6co7QymaPz6ICIsb 3ZY4EKCK2DfenzIufKE165nyJZCtgjRe9WEzpPn2+ef8AX4nLSeSrw9R/c7Ulvcv45jIQQOR8UYF /yU= =vjQg -----END PGP SIGNATURE----- --w2sUocPzL4UmedI0KuzAv56idb7eoBsMZ--