From nobody Mon Sep 16 20:01:32 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X6wmC1GHLz5WrBv for ; Mon, 16 Sep 2024 20:01:47 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X6wmB6g49z4s17 for ; Mon, 16 Sep 2024 20:01:46 +0000 (UTC) (envelope-from zbeeble@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-5356aa9a0afso4969210e87.2 for ; Mon, 16 Sep 2024 13:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726516905; x=1727121705; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3j6e8kx5KAfXcXEFY+eC+0KNbag7oLVjDRlpZYnhXKE=; b=Jr1ZkeampOhaL/n3Dz7D9lA2rTpmCLeBn6LUdfW9xoFwgBGtg/y0d02Pj/XR0UN0Qq O0c+/neEEzOyGV03bkIS6TC48CBFrqn+MjQoZuKhT/Xxbhti7C3nOdQDSt/i0YwASuDi yPXIP2dhUGVaneNWy7m19DQ1mnq0CT8ZfiEdpq1BEgR6FcXvpzYUsSi4VGvp517tleiv 4nHN+f3L/Cwt2Sk/+1BFci2lURptczSke7FFR4xKAd/H3Xeys3+t5YGJD2yAO4mZvfVS s5/t3sQILhk0Qky3r4Tl5AD2u6JVwq72ftOuo/NhQP3sVH2rEngF807T1Y+X+nRMc5ea ifyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726516905; x=1727121705; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3j6e8kx5KAfXcXEFY+eC+0KNbag7oLVjDRlpZYnhXKE=; b=Pl6zxrO1Wb7phjErk1QQd04or+xvfalkn4CJ9hu3rOoLhjcWy9SEns4KgPa42bwImT 58U24VRwsoxUtxrHsnLQ3sndO/dX88E6xUCCUbWZdH1L8RctiO7xQfiyzClX+exEkry+ gR917UE8evoXMwladiIKusfWRpdhwx1OP3KzXqUGJpK5FGG/mX/+l7pVHsJ87E7DitiY XP4M4DkqUFQc37yQ8vce68GFLJJmqSSLePyFrA3Dp9oLnRLIgFRf32jhCOPxiFyb/NVf wRGUnFNeFTAQ8jd7AhZGVenSoGS3aRaXi+gJCDP/De4QmEKsjI9O3OpZOYWXBNFZJbmv H1gg== X-Gm-Message-State: AOJu0YxdSmhbyfkcSe2C0cwl2BQfux5eZBgTzLTbFSon6To1LHEi7QJA sWH9Z3/gk166y2k+3ucso7BTRklgFVd3rZ2IMhMsd8KH36cYD9ghMckzfcvQATMe0A/aVYKwts+ NfnnSX4xGdhM2u2KUE72R6pTHT7Rw X-Google-Smtp-Source: AGHT+IGtRHnwckXzc3p7zLR0+aBmoVOn3Jeq+d6cATi+9JwKTDRz1NhvCkxfdpNuYMcRZ/G7CspsQDt0HHNSwHX2uqs= X-Received: by 2002:a05:6512:33d6:b0:52c:cd77:fe03 with SMTP id 2adb3069b0e04-5367fec8c9bmr7907481e87.14.1726516904178; Mon, 16 Sep 2024 13:01:44 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <4022cbe2-312b-4b47-9d3a-b02c588f47b2@protasenko.com> In-Reply-To: <4022cbe2-312b-4b47-9d3a-b02c588f47b2@protasenko.com> From: Zaphod Beeblebrox Date: Mon, 16 Sep 2024 16:01:32 -0400 Message-ID: Subject: Re: X11 pauses on FreeBSD 14 that are "fixed" by moving the mouse. To: alex@protasenko.com Cc: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c5b9b90622420aae" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4X6wmB6g49z4s17 --000000000000c5b9b90622420aae Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Well... video from utube is fine. I didn't play anything 4k --- heck the display isn't 4k, even. One fun demonstration of what's happening is a list that scrolls. Using the mousewheel --- chunky. Using the scrollbar --- smooth. I don't really know how to play with versions, much. On the nvidia side, going to older versions of the driver don't support this card. Performance, on the whole is fine. Even without moving the mouse, GLXGears seems fine. So it may be something the xscreensaver does --- and/or almost anything in kde (like the filebrowser scrolling) does. On Mon, Sep 16, 2024 at 3:36=E2=80=AFPM Alex Protasenko wrote: > How about video performance in general, does it play 4K video smoothly > or any 3d game, or just firefox autoscroll, is it smooth or jerky? > > Could have something to do with the scheduler even though you have no > efficiency cores. Try setting different timer source in > kern.eventtimer.timer or lower kern.sched.steal_thresh. > > I have no experience with nvidia driver as such, but maybe try a > different version. E.g. i'm using radeon builtit graphics and drm-kmod > 5.15 works pretty much flawless, but 6.1 has freezing/stuttering issues > which appear after some uptime, > > > -Alex > > On 9/16/24 14:47, Zaphod Beeblebrox wrote: > > There may be a rather simple fix to this problem, but I've followed > > any advice that I can find and it's still easily replicable. > > > > So... X is running. Plasma is running. Let's, for a second, start > > xscreensaver which will, in turn, when we access the config, start one > > of it's hacks for us. Something with 3d, perhaps. It's just running > > in the little window inside the xscreensaver-config app. > > > > Then we'll sit back to watch it. Very chunky. lots of pauses. Then > > we watch it while moving the mouse in lazy circles. Very smooth... > > almost perfect. > > > > This is what I'm seeing. > > > > Config: > > > > Threadripper 2950; 64G RAM, 2x 1T Nvme (zfs), nVidia 2080 RTX, 2 > > monitors (3440x1440 and 2560x1440). > > FreeBSD 14p4, nvidia binary driver, nvidia binary dri bit. > > > > I've attached a few logs and configs that seem pertinent, and I accept > > that this is, in all likelihood a misconfiguration of sorts, I need > > help seeing it. > > > > --000000000000c5b9b90622420aae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Well... video from utube is fine.=C2=A0 I didn't = play anything 4k --- heck the display isn't 4k, even.=C2=A0 One fun dem= onstration of what's happening is a list that scrolls.=C2=A0 Using the = mousewheel --- chunky.=C2=A0 Using the scrollbar --- smooth.

=
I don't really know how to play with versions, much.=C2=A0 O= n the nvidia side, going to older versions of the driver don't support = this card.

Performance, on the whole is fine.=C2= =A0 Even without moving the mouse, GLXGears seems fine.=C2=A0 So it may be = something the xscreensaver does --- and/or almost anything in kde (like the= filebrowser scrolling) does.

On Mon, Sep 16, 2024 at 3:36=E2=80= =AFPM Alex Protasenko <alex@prota= senko.com> wrote:
How about video performance in general, does it play 4K video sm= oothly
or any 3d game, or just firefox autoscroll, is it smooth or jerky?

Could have something to do with the scheduler even though you have no
efficiency cores. Try setting different timer source in
kern.eventtimer.timer or lower kern.sched.steal_thresh.

I have no experience with nvidia driver as such, but maybe try a
different version. E.g. i'm using radeon builtit graphics and drm-kmod =
5.15 works pretty much flawless, but 6.1 has freezing/stuttering issues which appear after some uptime,


-Alex

On 9/16/24 14:47, Zaphod Beeblebrox wrote:
> There may be a rather simple fix to this problem, but I've followe= d
> any advice that I can find and it's still easily replicable.
>
> So... X is running.=C2=A0 Plasma is running.=C2=A0 Let's, for a se= cond, start
> xscreensaver which will, in turn, when we access the config, start one=
> of it's hacks for us.=C2=A0 Something with 3d, perhaps.=C2=A0 It&#= 39;s just running
> in the little window inside the xscreensaver-config app.
>
> Then we'll sit back to watch it.=C2=A0 Very chunky.=C2=A0 lots of = pauses.=C2=A0 Then
> we watch it while moving the mouse in lazy circles.=C2=A0 Very smooth.= ..
> almost perfect.
>
> This is what I'm seeing.
>
> Config:
>
> Threadripper 2950; 64G RAM, 2x 1T Nvme (zfs), nVidia 2080 RTX, 2
> monitors (3440x1440 and 2560x1440).
> FreeBSD 14p4, nvidia binary driver, nvidia binary dri bit.
>
> I've attached a few logs and configs that seem pertinent, and I ac= cept
> that this is, in all likelihood a misconfiguration of sorts, I need > help seeing it.
>

--000000000000c5b9b90622420aae--