From owner-freebsd-x11@freebsd.org Fri Sep 1 15:42:09 2017 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B39E4E15CE8 for ; Fri, 1 Sep 2017 15:42:09 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 63DEC76DBB for ; Fri, 1 Sep 2017 15:42:09 +0000 (UTC) (envelope-from isoa@kapsi.fi) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=eFuJk9/0Tz3DFCRfWtw9WlQ1Kp4FQySlOCmTvs9M1Eo=; b=Vj6KZ7evg7wikYdgiYX6dI1rYfB5BZw6hJqkMZTHETurvbsR3rrNZnAzytqYT3IFPA1oXg3OuuuyyGzOqIGqFVfzIQRyzoPFNz5Tquvqr3aeYo/rTZtwpsL/ZZRyMY002m1t+h9Yh0Rij3PA6SSrcNxz35NmjtmrvNCjDeGIcb4RF6otC757eE0leYtTlT6D3prTzc/CzDio18/2K2AKgU27pwvvsDvCGRU23aEIJnya7p5wChKxc62RgWJI9VH5rDKC2EzC8DD2NmQRyXkhtulmw17MF1u82qF/0rbu0tStkeolbDwnI68Lzfx+LlYOcO0opqJm+gGWybi9o83czw==; Received: from dsl-jklbng11-54fa5a-207.dhcp.inet.fi ([84.250.90.207] helo=[192.168.255.112]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dno57-0006Ba-65; Fri, 01 Sep 2017 18:42:05 +0300 Subject: Re: OpenCL/OpenGL contention on a device (was Re: x11/nvidia-driver-340 and OpenCL) To: Scott Bennett Cc: freebsd-x11@freebsd.org References: <201708241205.v7OC5wrR016229@sdf.org> <201708271111.v7RBB7Z8005388@sdf.org> <8ti4-udq3-wny@FreeBSD.org> <201708281111.v7SBBVSf000652@sdf.org> <85a52dec-c20d-7869-7019-1564e034aad3@kapsi.fi> <201708310843.v7V8h7Nx006278@sdf.org> From: Arto Pekkanen Message-ID: <88a65451-d2ba-589d-20e0-9ff763ce9052@kapsi.fi> Date: Fri, 1 Sep 2017 18:42:01 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <201708310843.v7V8h7Nx006278@sdf.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="q1JrxXAiG6eEwGgOMeoKjDkJqmQ7kkU5l" X-SA-Exim-Connect-IP: 84.250.90.207 X-SA-Exim-Mail-From: isoa@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 15:42:09 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --q1JrxXAiG6eEwGgOMeoKjDkJqmQ7kkU5l Content-Type: multipart/mixed; boundary="R4LCgSUlS2Fikn15sGD71OPlhB8X8521n"; protected-headers="v1" From: Arto Pekkanen To: Scott Bennett Cc: freebsd-x11@freebsd.org Message-ID: <88a65451-d2ba-589d-20e0-9ff763ce9052@kapsi.fi> Subject: Re: OpenCL/OpenGL contention on a device (was Re: x11/nvidia-driver-340 and OpenCL) References: <201708241205.v7OC5wrR016229@sdf.org> <201708271111.v7RBB7Z8005388@sdf.org> <8ti4-udq3-wny@FreeBSD.org> <201708281111.v7SBBVSf000652@sdf.org> <85a52dec-c20d-7869-7019-1564e034aad3@kapsi.fi> <201708310843.v7V8h7Nx006278@sdf.org> In-Reply-To: <201708310843.v7V8h7Nx006278@sdf.org> --R4LCgSUlS2Fikn15sGD71OPlhB8X8521n Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable I was not talking about working sets that require all of the VRAM on the GPU. I was thinking of a situation where the computing jobs use only a portion of memory, leaving plenty available for graphics operations. In that case me and my friends haven't seen any stuttering on most mid-tier nVidia and AMD cards. I might try running a VRAM hogging computing job on my Windows box, but I assume the driver is smart enough to prioritize graphics resources over computing resources in VRAM and limit the number of fetches from RAM on computing kernels to prevent bus saturation etc. On 31.8.2017 11:43, Scott Bennett wrote: > Arto Pekkanen wrote: >=20 >> If the GPU driver is implemented properly there will be no stutter or >> other problems even when running OpenCL jobs. >=20 > Really! So an OpenCL work item that needs, say, nearly all the av= ailable > memory on a graphics device and a 3D shader that has similar memory > requirements will not interfere with each other? That seems rather mag= ical > somehow, even if the OpenGL stuff always has a higher priority inside t= he GPU > than the OpenCL stuff. >> >> In Windows there is no problem running OpenCL jobs on the same device >> that operates your display. Like running a crypto currency miner while= >> browsing the web. Playing games won't work well, but basic stuff you c= an do. >> > Is that partly because the memory requirements of the "basic stuff= " are > typically tiny when compared to the capacity of today's graphics device= s? >=20 >> TL;DR when the FreeBSD GPU driver and all the userland bits are up to >> date, I'd expect there to be no issues with stuttering. >> > Do you know the driver well enough to explain to me how the schedu= ling > inside a graphics device works? I've never seen a description of the > algorithm(s) anywhere. >=20 >=20 > Scott Bennett, Comm. ASMELG, CFIAG > ********************************************************************** > * Internet: bennett at sdf.org *xor* bennett at freeshell.org * > *--------------------------------------------------------------------* > * "A well regulated and disciplined militia, is at all times a good * > * objection to the introduction of that bane of all free governments * > * -- a standing army." * > * -- Gov. John Hancock, New York Journal, 28 January 1790 * > ********************************************************************** >=20 --=20 Arto Pekkanen --R4LCgSUlS2Fikn15sGD71OPlhB8X8521n-- --q1JrxXAiG6eEwGgOMeoKjDkJqmQ7kkU5l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlmpf8wACgkQTBivhqtJa25zlQEAogDMGr7Jhnn39pgttK1KgWdG GO8ghH0Wr1eE2WIDft0A/0siQf8ILUfw9ug2yJI+4NVsPriO159bAX/vudqqHv3M =/roV -----END PGP SIGNATURE----- --q1JrxXAiG6eEwGgOMeoKjDkJqmQ7kkU5l--