From owner-freebsd-current@freebsd.org Sat Mar 27 10:55:01 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 554685C038E for ; Sat, 27 Mar 2021 10:55:01 +0000 (UTC) (envelope-from SRS0=LBxMbF=IZ=codenetworks.net=sm@eigbox.net) Received: from bosmailout08.eigbox.net (bosmailout08.eigbox.net [66.96.189.8]) (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 4F6wj02hJqz3JHc for ; Sat, 27 Mar 2021 10:54:59 +0000 (UTC) (envelope-from SRS0=LBxMbF=IZ=codenetworks.net=sm@eigbox.net) Received: from bosmailscan04.eigbox.net ([10.20.15.4]) by bosmailout08.eigbox.net with esmtp (Exim) id 1lQ6ap-0004yb-0m for freebsd-current@freebsd.org; Sat, 27 Mar 2021 06:54:59 -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:References:To:From: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=iy5vsHSLySwSLUaij+GBhovnE2KEgYCRMH3qN3MmsXM=; b=1T2Ju04W53Bj69pSGoyZAe1xXv OMZrIDDTMWid1iSusepik6FU2wc6VEe0RBdYlxLBY5yh1dAg9WghnEZ/wt1IbLMivOp44Pmxk3ChI CPARVnzXuZ6UgotO5acrGcDazg6RRB38YLs50+HZMublwVdcjsr5+TtGsvXqyGiYxOs3VATSdqHxJ BoMeHQl+nFgvVt5XIKk50LVDXeXmvovfsXXztNxAzngv7coGfrQtIt4o+Yvf7ViohzWWA1lK8BGoY f9GS0LhaNPUOx0BGwtf3loaxP0o1xbyM1/Kck60NwSE+7egds45ECJaj8j/RJqu2T9XmzF1DuiFCb McyKW8rw==; Received: from [10.115.3.33] (helo=bosimpout13) by bosmailscan04.eigbox.net with esmtp (Exim) id 1lQ6ao-00042D-NN for freebsd-current@freebsd.org; Sat, 27 Mar 2021 06:54:58 -0400 Received: from bosauthsmtp19.yourhostingaccount.com ([10.20.18.19]) by bosimpout13 with id lNuv240030QhFXN01Nuyq3; Sat, 27 Mar 2021 06:54:58 -0400 X-Authority-Analysis: v=2.3 cv=RNUo47q+ c=1 sm=1 tr=0 a=9UqFsMnAB6EOkiq4MrOclQ==:117 a=Q8lLzpqWiUYMAFMncj8R3w==:17 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=qdpMxSC4MgKboo4-wXgA:9 a=QEXdDO2ut3YA:10 a=BCkOo-lpFCIA:10 a=B_RyunTPg8udlmYm5Cu2:22 a=qBExKzQAi2vkqq_k2JMc:22 a=IjZwj45LgO3ly-622nXo:22 a=RBBcRewTFc8P4JkPnay6:22 Received: from [5.159.171.182] (port=27517 helo=[192.168.4.100]) by bosauthsmtp19.eigbox.net with esmtpa (Exim) id 1lQ6al-00065E-HW for freebsd-current@freebsd.org; Sat, 27 Mar 2021 06:54:55 -0400 Subject: Re: freebsd 13 ryzen micro stutter From: Santiago Martinez To: freebsd-current@freebsd.org References: <20210323101146.18c9a969@bsd64.grem.de> <677da81d7af9781be6b46c7cba4efd05@riseup.net> <54768f44-c110-d58a-1e7b-61843cde754e@codenetworks.net> Message-ID: <9638abfe-fd9e-6855-b3c7-ee796d1c5ce5@codenetworks.net> Date: Sat, 27 Mar 2021 10:54:53 +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: <54768f44-c110-d58a-1e7b-61843cde754e@codenetworks.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: 4F6wj02hJqz3JHc X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none (invalid DKIM record) header.d=codenetworks.net header.s=dkim header.b=1T2Ju04W; dmarc=none; spf=pass (mx1.freebsd.org: domain of SRS0=LBxMbF=IZ=codenetworks.net=sm@eigbox.net designates 66.96.189.8 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:c]; 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.8: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.8:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[66.96.189.8:from]; R_DKIM_PERMFAIL(0.00)[codenetworks.net:s=dkim]; RWL_MAILSPIKE_POSSIBLE(0.00)[66.96.189.8: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:55:01 -0000 Hi, i have the same output as @Nils B. If i run with steal =2 and dtrace the micro stutter doesn't happen but as soon as i stop the dtrace script it the stutters come back again. Santi On 3/27/21 10:39 AM, Santiago Martinez wrote: > 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"