Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3041354pxk; Mon, 21 Sep 2020 03:53:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+rdYhzichJbU6XgzmEADrAHBvsLsgv08CtH541hGhT59Ps2NFEz0aUArvQ7Xa8Ws8FjmI X-Received: by 2002:a17:906:2b83:: with SMTP id m3mr31113579ejg.456.1600685597970; Mon, 21 Sep 2020 03:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600685597; cv=none; d=google.com; s=arc-20160816; b=d4bFq8vx+IsDW4rXs3wgQ1gG5idYOMP0THdW5BUgvTNgCqFDbmBWAg7h9xKQpbuqwx Qouucnud5xlj4lVQzXl58GIAULewTtUprofBB8wWD1f+YVEisYRbxvenq1E4fv9kC1ci k8aJjc52TqK69XVwIZ1UauwxlJxCTkSwRprlpxGGUAdt9PkzyqZnZyB7/chlTYgoBFzT 6OsnD5N95cfc9w1qhcr7mYMJvbI1IoWE6wmKELBIfCCPo8AaHPKnnQzagSSBQpwdFqCJ J7i1rd5Oc8TKgsFS8EOOhONPrKPuxLHq+aYpXgwwrm299DF01PDaEe625GfV6qASbLfb dpVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=+Ce2j6BK4131uYjorGXmkaktnjo2xDWmD45iu81+eGY=; b=uY9GlIvxbxNQNwo4qREcMyUgCX8ObbZ7fRA8ZkGymcZ+MFJJSvxk4BLtdAcQ7YOcdU NckOaKpmke2Goj9ZcacdPc0MREOW0CCLoz6nvDLJFhjNvZtRnO5J8Khn/Y41GNFeIcSD 28tT2Za/lhsWviw82n4zw5UXCdkDGVmZhfkidFOB/RC+YYFk1eVPFka16e1riC1a0vWj ZL1kn7Ne6RLv3mKVw2hNLgVdSq+0Terhvk6vZwUhRiI8tJzYXgG5xlkL3TZm2CfgYSlW 7c11KymnEMOYj60uhlb+e8jFFoiDjPDz8Abu3TTCs3wfaBsaMQM8kvur+O061reo6ZNO PlSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="WBss3/+L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si9607149ejs.91.2020.09.21.03.52.54; Mon, 21 Sep 2020 03:53:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="WBss3/+L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726473AbgIUKt5 (ORCPT + 99 others); Mon, 21 Sep 2020 06:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbgIUKt5 (ORCPT ); Mon, 21 Sep 2020 06:49:57 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4DCBC061755; Mon, 21 Sep 2020 03:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+Ce2j6BK4131uYjorGXmkaktnjo2xDWmD45iu81+eGY=; b=WBss3/+LJn25tf2jl2Kd4BllMI We3aM8pS1bHk+lP+j+FgiErzPOP5101rI+iEOmhIiBWuEclNOK8yjXeMc8p2hvO66DyHQqRG+ibdj fNxQM2TO9oPahOrflU5CGkUoPhPyktIfZxoWHOY3bCCiIiJip2uorUCAcIJ2/5F4nuohyg/YUHlNc d5O5AVK+rnqDUnKxbfw+9B12rKUynM8ObjyYjNOPdklvEWrciu+346Xxd6P1M8ap9VwFZ/Hd4PL88 Vr3wsnD98TRmaevM03kBW8JZcL8svKW7/HBzjsWyHFHP01ZNBq6xW7/V+e56JiWbSDZ5VukELoex3 jH5DmECw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKJOK-0008Ei-4J; Mon, 21 Sep 2020 10:49:52 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4F336301478; Mon, 21 Sep 2020 12:49:47 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 89B2A243FFC0F; Mon, 21 Sep 2020 12:49:47 +0200 (CEST) Date: Mon, 21 Sep 2020 12:49:47 +0200 From: peterz@infradead.org To: Rob Clark , dri-devel@lists.freedesktop.org, Rob Clark , linux-arm-msm@vger.kernel.org, open list , timmurray@google.com, Tejun Heo Subject: Re: [PATCH 0/3] drm: commit_work scheduling Message-ID: <20200921104947.GQ1362448@hirez.programming.kicks-ass.net> References: <20200919193727.2093945-1-robdclark@gmail.com> <20200921092154.GJ438822@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921092154.GJ438822@phenom.ffwll.local> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 11:21:54AM +0200, Daniel Vetter wrote: > So question to rt/worker folks: What's the best way to let userspace set > the scheduling mode and priorities of things the kernel does on its > behalf? Surely we're not the first ones where if userspace runs with some > rt priority it'll starve out the kernel workers that it needs. Hardcoding > something behind a subsystem ioctl (which just means every time userspace > changes what it does, we need a new such flag or mode) can't be the right > thing. > > Peter, Tejun? So regular workqueues do not support RT priorities, but you can set their nice value somewhere in /sys. The kthread_work stuff used in these patches result in a regular kthread and as such the user interface for changing its scheduling class or priority is that of any other 'random' task.