From owner-freebsd-x11@freebsd.org Sun Jan 17 01:35:11 2021 Return-Path: Delivered-To: freebsd-x11@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 AB05E4D5004 for ; Sun, 17 Jan 2021 01:35:11 +0000 (UTC) (envelope-from Mathias.Picker@virtual-earth.de) Received: from www94.your-server.de (www94.your-server.de [213.133.104.94]) (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 4DJHXt1hJFz3hyH for ; Sun, 17 Jan 2021 01:35:09 +0000 (UTC) (envelope-from Mathias.Picker@virtual-earth.de) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtual-earth.de; s=default_1811; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:In-reply-to:Subject:To:From:References:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=/nslLZaPWOAidwhrJjk3+n8iRZrNrkeOf5whFzHanEw=; b=mcEthoEMpp3AFuqe//COu3oP85 yJVla7WRS7kVfOg8fOsgAcC8Y1G6OttJIDYddOPy/8nxcVtYro+RY6tg9Abr+ZNqeQy4eY2Z4yCrQ 5cKlalVw3as05q0lHfTg9h2TLnKsZEN5nekLQd/9U0Nj2rnarnLUmXAhHf6Jm96zBYFJovsVyg3Cf wUkBTQ2t8MBJa4SXTrk23vhsE1jZ5IRJUIag5EkzWN6U0K7F2owdLmevtGtAUDblncFzYwKVWPYJC xYUioGuH04qzVK4+8gHR+O21sBQnkVIkydc6YaAH/sDEtPMevu2wO8CY99iDfyst8Vyj/1yehyWHl PR6UufoA==; Received: from sslproxy06.your-server.de ([78.46.172.3]) by www94.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1l0wyB-0003kX-Qr for freebsd-x11@freebsd.org; Sun, 17 Jan 2021 02:35:07 +0100 Received: from [2a01:c22:760f:7300:1a1d:eaff:fe16:cc77] (helo=Danton.virtual-earth.de) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0wyB-000Pmu-MV for freebsd-x11@freebsd.org; Sun, 17 Jan 2021 02:35:07 +0100 References: <86mtxk8xb8.fsf@virtual-earth.de> <86lfd4tvc4.fsf@virtual-earth.de> <86bldsd7dw.fsf@virtual-earth.de> User-agent: mu4e 1.2.0; emacs 27.1 From: Mathias Picker To: freebsd-x11@freebsd.org Subject: SOLVED Re: Sloow blender on FreeBSD (vs Ubuntu) In-reply-to: <86bldsd7dw.fsf@virtual-earth.de> Date: Sun, 17 Jan 2021 02:35:07 +0100 Message-ID: <86bldowdkk.fsf@virtual-earth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: Mathias.Picker@virtual-earth.de X-Virus-Scanned: Clear (ClamAV 0.102.4/26051/Sat Jan 16 13:33:31 2021) X-Rspamd-Queue-Id: 4DJHXt1hJFz3hyH X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=virtual-earth.de header.s=default_1811 header.b=mcEthoEM; dmarc=pass (policy=none) header.from=virtual-earth.de; spf=pass (mx1.freebsd.org: domain of Mathias.Picker@virtual-earth.de designates 213.133.104.94 as permitted sender) smtp.mailfrom=Mathias.Picker@virtual-earth.de X-Spamd-Result: default: False [-4.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[virtual-earth.de:s=default_1811]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[213.133.104.94:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[virtual-earth.de:+]; DMARC_POLICY_ALLOW(-0.50)[virtual-earth.de,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_LOW(-0.10)[213.133.104.94:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[213.133.104.94:from]; ASN(0.00)[asn:24940, ipnet:213.133.96.0/19, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-x11]; HAS_X_AS(0.00)[] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2021 01:35:11 -0000 Mathias Picker writes: > Mathias Picker writes: > >> Well, I forgot to include some info about the system: >> >> dmesg https://pastebin.com/RGA3VLiB >> xorg.log https://pastebin.com/8C49UGKk >> >> anything else, just ask. >> >> Mathias Picker writes: >> >>> Hi all, >>> >>> the last days I tried to get blender into working state on a=20 >>> 2nd gen Thinkpad >>> X1 Yoga. >>> >>> tl;dr >>> >>> blender is stuttering and jerky on my X1 running an I7-8550U /=20 >>> UHD620 >>> (4-core, >>> 2/4Ghz) and FreeBSD, while it works like a charm on my Surface=20 >>> Go Pentium >>> Gold >>> 4415Y/HD615 (2-core, 1.6Ghz) with Ubuntu. >>> This is both on 12-STABLE and -CURRENT. It=E2=80=99s a bit better on=20 >>> -CURRENT, but >>> still horrible. >>> >>> Is there any way to speed blender up on FreeBSD? >>> >>> >>> Long version: >>> I wanted to try out blenders Grease Pencil, up until now I=20 >>> only used blender >>> for video editing. >>> >>> GP or rotating 3D-Scenes in blender 2.90 on 12-STABLE was=20 >>> abysmally slow and >>> crashed repeatedly after a few strokes with grease pencil or a=20 >>> few minutes >>> work in the 3D-view with: >>> Jan 4 23:04:17 Danton kernel: drmn0: GPU HANG: ecode=20 >>> 9:1:0x87f99eb9, in >>> blender [100824], hang on rcs0 >>> Jan 4 23:04:17 Danton kernel: drmn0: Resetting rcs0 for hang=20 >>> on rcs0 >>> >>> The GPU reset did not work, machine hangs, reboot via ssh. >>> >>> Recompiled blender, tried older version, all with the same=20 >>> result,=20 >>> although 2.8x seemed a bit faster, but still slow & crashes. >>> >>> Searched the web, found similar problems by others on Linux,=20 >>> suggested KMS >>> update. >>> >>> So I switched to -CURRENT with drm-current-kmod (5.4 instead=20 >>> of 4.5) >>> >>> Same GPU hang, but here the reset works. Performance=20 >>> *slightly* better, but >>> every hang takes about 2 sec, no way to work with this. >>> >>> Updating X1 bios - now the error did not happen for quite some=20 >>> time.=20 >>> >>> But still, quite slow. Stuttering when rotating the default=20 >>> cube in simple >>> solid or wireframe mode. On a I7-8550U running full speed=20 >>> (hwpstate_intel >>> with epp=3D0), cpu freq between 2500 and 3900). >>> >>> Installed mesa-devel=EF=BC=9Athe GPU hang is back. >>> >>> Recompiled blender to 2.91.0_2, mesa-devel, drm everything. No=20 >>> more GPU hang >>> for now, but still stuttering motions, Grease Pencil strokes=20 >>> hang back 1-2 >>> seconds from my stylus. >>> >>> Then I tried my 1st gen Surface Go 8Gb running Ubuntu: Blender=20 >>> is=20 >>> blazing fast for these simple tasks. Fluid rotation, allmost=20 >>> real=20 >>> time grease pencil=EF=BC=9AWTF? >>> >>> This is an i7-8550U quad core running 2/4Ghz with an UHD620=20 >>> GPU against a >>> Pentium Gold, and the Pentium wins hands down? >>> >>> I would really *love* to get blender up even only to Pentium=20 >>> speed. Blender >>> with simple models in solid mode should *fly* on my X1, same=20 >>> with a few >>> Grease Pencil strokes=E2=80=A6 >>> >>> >>> Any ideas, help, suggestion? >>> >>> Thanks, Mathias > > Just tried a live CD of Ubuntu on the same machine, with the=20 > demo Race Spaceship=20 > https://download.blender.org/demo/eevee/race_spaceship/race_spaceship.ble= nd > > This is a compley scene and can be rotated with ubuntu in real=20 > time in material > mode, and is only very slightly lagging in rendered mode. > > On FreeBSD that spaceship rotates about as slow and stuttery as=20 > the default > cube. > So it does not seem to be dependent on the complexity of the=20 > scene. > > Any ideas where to look? > > Any ideas whom to ask? > > Thanks, Mathias Using either vblank_mode=3D0 blender or LIBGL_DRI3_DISABLE=3D1 blender gives me the speed I need. Now it=E2=80=99s faster than the surface go ;) / Mathias --=20 Mathias Picker=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 Gesch=C3=A4ftsf=C3=BChrer Mathias.Picker@virtual-earth.de virtual earth Gesellschaft f=C3=BCr Wissens re/pr=C3=A4 sentation mbH http://www.virtual-earth.de/ HRB126870 support@virtual-earth.de Westendstr. 142 089 / 1250 3943=20=20=20=20=20=20=20=20=20=20=20=20