From owner-freebsd-current@freebsd.org Sat Mar 27 10:39:45 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 D9D335BFC0C for ; Sat, 27 Mar 2021 10:39:45 +0000 (UTC) (envelope-from SRS0=LBxMbF=IZ=codenetworks.net=sm@eigbox.net) Received: from bosmailout06.eigbox.net (bosmailout06.eigbox.net [66.96.189.6]) (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 4F6wMP04wfz3H53 for ; Sat, 27 Mar 2021 10:39:44 +0000 (UTC) (envelope-from SRS0=LBxMbF=IZ=codenetworks.net=sm@eigbox.net) Received: from bosmailscan08.eigbox.net ([10.20.15.8]) by bosmailout06.eigbox.net with esmtp (Exim) id 1lQ6M4-0005KK-4o for freebsd-current@freebsd.org; Sat, 27 Mar 2021 06:39:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codenetworks.net; s=dkim; h=Sender:Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Reply-To: Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=a7ofF00y9Y5XG6wHGEerCQ5CSS6NdxVlrLDKwH40XY4=; b=UnzbQB9a+Ztpd9bXC2APJcupWG zDXg0IXH6BmkbwRR0O9IgXQRgYjKTBs6OjtoFeFWw2aCMG6GTHrGXKLJGDziuS1ryfgMiCIDOxgSe aqN/RbiQ7OoMuWAnFVlVoXBuiCtt7wfQ/B+ikOXTyURxHplgGiTRzMYhV1A7hbmA2+qkktPAB56+c Ed14AlKgboq9o7tAWI4XJUfVA+e3bD0N3TdUtdq6ym86lrnz9ZldLDyYmISH3PKnSuDW7V32jaH2j n1KKlaj+o8km5Rc3/b4IQ2M0fNWcmAw0o3H2E0guz/lHM56kW4zyBW1Cm3iPVjBE8byODGgHv6o7G N1Y0cKtg==; Received: from [10.115.3.34] (helo=bosimpout04) by bosmailscan08.eigbox.net with esmtp (Exim) id 1lQ6M3-0006DM-RJ for freebsd-current@freebsd.org; Sat, 27 Mar 2021 06:39:43 -0400 Received: from bosauthsmtp19.yourhostingaccount.com ([10.20.18.19]) by bosimpout04 with id lNfg240020QhFXN01NfjCE; Sat, 27 Mar 2021 06:39:43 -0400 X-Authority-Analysis: v=2.1 cv=Jo5/raIC c=1 sm=1 tr=0 a=9UqFsMnAB6EOkiq4MrOclQ==:117 a=Q8lLzpqWiUYMAFMncj8R3w==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=dESyimp9J3IA:10 a=zW0gRWPTQUEA:10 a=ayC55rCoAAAA:8 a=PjuYqXk4AAAA:8 a=q56oFxeYAAAA:8 a=zGQ2cdmsAAAA:20 a=6I5d2MoRAAAA:8 a=LpsLJlUivWnC_dEsoY0A:9 a=QEXdDO2ut3YA:10 a=BCkOo-lpFCIA:10 a=B_RyunTPg8udlmYm5Cu2:22 a=qBExKzQAi2vkqq_k2JMc:22 a=IjZwj45LgO3ly-622nXo:22 Received: from [5.159.171.182] (port=32087 helo=[192.168.4.100]) by bosauthsmtp19.eigbox.net with esmtpa (Exim) id 1lQ6M0-0001fg-KO for freebsd-current@freebsd.org; Sat, 27 Mar 2021 06:39:40 -0400 Subject: Re: freebsd 13 ryzen micro stutter To: freebsd-current@freebsd.org References: <20210323101146.18c9a969@bsd64.grem.de> <677da81d7af9781be6b46c7cba4efd05@riseup.net> From: Santiago Martinez Message-ID: <54768f44-c110-d58a-1e7b-61843cde754e@codenetworks.net> Date: Sat, 27 Mar 2021 10:39:38 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <677da81d7af9781be6b46c7cba4efd05@riseup.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-EN-UserInfo: d3bdfab0736480cedf04ed92aaea2ef5:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: sm@codenetworks.net Sender: Santiago Martinez X-EN-OrigIP: 5.159.171.182 X-EN-OrigHost: unknown X-Rspamd-Queue-Id: 4F6wMP04wfz3H53 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none (invalid DKIM record) header.d=codenetworks.net header.s=dkim header.b=UnzbQB9a; dmarc=none; spf=pass (mx1.freebsd.org: domain of SRS0=LBxMbF=IZ=codenetworks.net=sm@eigbox.net designates 66.96.189.6 as permitted sender) smtp.mailfrom=SRS0=LBxMbF=IZ=codenetworks.net=sm@eigbox.net X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.96.128.0/18]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[codenetworks.net:~]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[sm@codenetworks.net,SRS0=LBxMbF=IZ=codenetworks.net=sm@eigbox.net]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.96.189.6: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=LBxMbF=IZ=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.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[codenetworks.net: no valid DMARC record]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[66.96.189.6:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[66.96.189.6:from]; R_DKIM_PERMFAIL(0.00)[codenetworks.net:s=dkim]; RWL_MAILSPIKE_POSSIBLE(0.00)[66.96.189.6: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: Sat, 27 Mar 2021 10:39:45 -0000 Hi there, my pause are not that often ( with steal_thresh=2) , maybe is around 30 secs or so. If i set the thresh to 1 or 0 they go away. Now im trying with =2 and schedgraph.d. Santi On 3/25/21 10:04 AM, Alastair Hogge wrote: > On 2021-03-23 17:34, myfreeweb wrote: >> On March 23, 2021 9:11:46 AM UTC, Michael Gmelin wrote: >>> >>> On Mon, 22 Mar 2021 23:50:52 -0400 >>> monochrome wrote: >>> >>>> After about 8 months of struggling to narrow this down I did another >>>> search and saw this: >>>> >>>> https://www.reddit.com/r/freebsd/comments/lc8fwo/freebsd_13_vega_64_micro_stutter_in_x/ >>>> >>>> I haven't seen this come up here so I thought I would bring it up. >>>> >>>> My story started sometime before around August last year when synergy >>>> started getting really annoying with stuttering. Pretty sure it >>>> wasn't like that when I first started tracking 13-current in around >>>> May 2020 (I was on 12 with scfb for a long time before that with no >>>> issues), but since then I have tried to eliminate as many variables >>>> as possible. First I switched to barrier instead of synergy. Shortly >>>> after that I realized it was happening all the time and not just a >>>> network problem, I started using foobillard to verify during tests. I >>>> tried different RAM combinations, different network cards, a variety >>>> of RAM timings, stripping rc.conf etc, powerd settings, also scfb, >>>> with no effect. It is observable with ping -f, a dot or two appears >>>> every time it glitches. It seemed much better with RC2, but now with >>>> RC3 it seems to be back with a vengeance, and since its my main >>>> workstation and barrier/synergy server host for several machines, it >>>> is unbearable to use. Both Win10 and devuan3 on the same machine are >>>> smooth with no issues. Any feedback or info would be appreciated. >>>> >>>> Hardware: >>>> ASRock B450M Pro4 >>>> Ryzen 2400G, no OC >>>> 32M DDR4-2933 >>>> Onboard Vega GPU, drm-fbsd13-kmod >>>> _______________________________________________ >>> Without knowing much about the issue at hand, just a few ideas: >>> >>> Sysctls I would look at: >>> - raising *.cx_lowest >>> - different kern.eventtimer.timer >> None of these should be an issue, but: >> >> sysctl kern.sched.steal_thresh=1 >> >> For some reason with the default value of 2, I'm seeing weird >> stuttering in youtube videos, games, etc. on a 5950X system. 1 (or 0, >> IIRC) works fine. > I have noticed this too, firefox exhibits the issue frequently, however > I have > found it most noticeable in games/dhewm3[0] or Yamagi Quake 2[1]. There > is a distinct pause every 3 or 4 seconds where the simulation advances > significantly. Thanks for the kern.sched.steal_thresh pointer that has > sorted > the issue out for now. > > $ dmesg | egrep '(CPU:|avail memory)' > CPU: AMD Ryzen 9 3950X 16-Core Processor (3500.02-MHz > K8-class CPU) > avail memory = 66779394048 (63685 MB) > With an AMD NAVI 8GiB GPU, the host should be able to play either game > well enuf, > Quake 2 came out in 1997 and Doom 3 2004. I am sure Quake 2 used to play > without issues on my old AMD bulldozer. > > > 0: https://www.freshports.org/games/dhewm3/ > 1: https://github.com/yquake2/yquake2 > _______________________________________________ > 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"