From owner-freebsd-x11@freebsd.org Thu Aug 31 08:43:28 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 068D4E1942B for ; Thu, 31 Aug 2017 08:43:28 +0000 (UTC) (envelope-from bennett@sdf.org) Received: from mx.sdf.org (mx.sdf.org [205.166.94.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ol.sdf.org", Issuer "ol.sdf.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E05026ED5C for ; Thu, 31 Aug 2017 08:43:27 +0000 (UTC) (envelope-from bennett@sdf.org) Received: from sdf.org (norge.freeshell.org [205.166.94.17]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id v7V8h7j3014469 (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO); Thu, 31 Aug 2017 08:43:08 GMT Received: (from bennett@localhost) by sdf.org (8.15.2/8.12.8/Submit) id v7V8h7Nx006278; Thu, 31 Aug 2017 03:43:07 -0500 (CDT) From: Scott Bennett Message-Id: <201708310843.v7V8h7Nx006278@sdf.org> Date: Thu, 31 Aug 2017 03:43:07 -0500 To: isoa@kapsi.fi Subject: OpenCL/OpenGL contention on a device (was Re: x11/nvidia-driver-340 and OpenCL) 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> In-Reply-To: <85a52dec-c20d-7869-7019-1564e034aad3@kapsi.fi> User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Thu, 31 Aug 2017 08:43:28 -0000 Arto Pekkanen wrote: > If the GPU driver is implemented properly there will be no stutter or > other problems even when running OpenCL jobs. Really! So an OpenCL work item that needs, say, nearly all the available memory on a graphics device and a 3D shader that has similar memory requirements will not interfere with each other? That seems rather magical somehow, even if the OpenGL stuff always has a higher priority inside the 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 can do. > Is that partly because the memory requirements of the "basic stuff" are typically tiny when compared to the capacity of today's graphics devices? > 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 scheduling inside a graphics device works? I've never seen a description of the algorithm(s) anywhere. 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 * **********************************************************************